mangui / flashls

HLS Flash Plugin/Player (Chromeless,OSMF,FlowPlayer,mediaelement.js,video.js,Clappr)
http://www.flashls.org
Mozilla Public License 2.0
751 stars 264 forks source link

HLSJS with Secure Key and Api Load #581

Open N0WayH0me opened 6 years ago

N0WayH0me commented 6 years ago

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

phloxic commented 6 years ago

Hi @N0WayH0me - hlsjs is not flashls, one of its main purposes is to get rid of the need of flashls ;-)

I presume you asked in the Flowplayer forum and I answered here.