mangui / mangui/flashls

HLSJS with Secure Key and Api Load

Open
#581 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
ActionScript
Stars
744
Forks
259
PR merge metrics
No merged PRs in 30d

Description

Hi.

I have a working page with flowplayer + HLSJS + Secure Key.
Everything is working fine ;)

But now i want to add an external button to launch ( play ) the video.
If i know how to do it for a normal video :

$(function () {
// load clip object
$("button:first").click(function () {
flowplayer(0).load({
sources: [
{ type: "application/x-mpegurl",
src: "//source" }
]
});
});
});

I dont success to load the secure stream.
Firefox Dev Console show me that the keyfile is not loaded ( access forbiden )
But i dont know why.

On a same test page i have classic script and button load script.
first one works, second one not.

So how can i use Hlsjs secure with load button ?

Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the external button's flowplayer(0).load call and compare it with the working classic script on the same test page. Use the Firefox Dev Console to reproduce the forbidden keyfile request and determine why loading the secure stream differs; done means the secure stream loads and plays through the button without the access error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.