Code Monkey home page Code Monkey logo

Comments (11)

scan avatar scan commented on August 26, 2024 1

I encountered a similar problem with the plugin in the Grind player. It might not be related, but I could fix it by adding secure="false" to the crossdomain.xml, like so:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
    <allow-access-from domain="*" secure="false" />
    <allow-http-request-headers-from domain="*" headers="*" secure="false"/>
</cross-domain-policy>

But the reason in my case was that my .m3u8 was served over HTTPS, while the plugin was locally loaded via HTTP.

from flashls.

barryallott avatar barryallott commented on August 26, 2024

Here is the cross domain from the other domain if you need it

cross-domain-policy><allow-http-request-headers-from domain="" headers="" /cross-domain-policy

Sorry, this does have proper xml but the comment hides it

from flashls.

barryallott avatar barryallott commented on August 26, 2024

Also all tried hosting the first m3u8 file locally and reference that. What I saw in the Chrome network log is that the m3u8 file is retreived but then again,, nothing...

from flashls.

barryallott avatar barryallott commented on August 26, 2024

I also found this on another site:

Hi Ian i am the developer of the plugin. This is usual responses from you guys I'm afraid and its much deeper than just the player. The issue is your system uses akamai which you redirect to. Flash cannot handle redirected urls to obtain the real url for generating the base url from so a redirect proxy is required to handle that. On top of that the akamai urls use session cookies. If third party cookies or cookies is blocked completely it will fail to work because when loading the urls via flash the cookie does not get added, if third party cookies are enabled the cookie will get added. In research people building mobile apps have similar issues with the akamai HLS streams. I have someone who is a pro customer trying to use this for flash I hope that is ok, however this cookie issue has been a problem. If you may is there a way to generate the auth tokens when requesting the urls ? There is zero documentation anywhere about this.

So it might be due to the host and flash redirects?

from flashls.

mangui avatar mangui commented on August 26, 2024

Hi I would need debug logs from JS console to help u

from flashls.

barryallott avatar barryallott commented on August 26, 2024

I've set flowplayer to debug as well as the flash var. I get

$f.fireEvent ["onBeforeLoad"] flowplayer-3.2.12.min.js:24
$f.fireEvent ["onLoad", "httpstreaming", null, null, null, null] flowplayer-3.2.12.min.js:24
$f.fireEvent ["onLoad", "controls", null, null, null, null] flowplayer-3.2.12.min.js:24
$f.fireEvent ["onLoad", "player", null, null, null, null] flowplayer-3.2.12.min.js:24
$f.fireEvent
["onBeforeBegin", 0, Object, null, null, null]
flowplayer-3.2.12.min.js:24
$f.fireEvent ["onStageVideoStateChange", 0, null, null, null, null] flowplayer-3.2.12.min.js:24
$f.fireEvent
["onBegin", 0, Object, null, null, null]
flowplayer-3.2.12.min.js:24
$f.fireEvent ["onLoad", "play", null, null, null, null] flowplayer-3.2.12.min.js:24
$f.fireEvent ["onBeforePluginEvent", "controls", "onBeforeHidden", null, null, null] flowplayer-3.2.12.min.js:24
$f.fireEvent ["onResized", 0, null, null, null, null] flowplayer-3.2.12.min.js:24
$f.fireEvent ["onPluginEvent", "controls", "onHidden", null, null, null] flowplayer-3.2.12.min.js:24

For remote m3u8 and

$f.fireEvent ["onBeforeLoad"] flowplayer-3.2.12.min.js:24
$f.fireEvent ["onLoad", "httpstreaming", null, null, null, null] flowplayer-3.2.12.min.js:24
$f.fireEvent ["onLoad", "controls", null, null, null, null] flowplayer-3.2.12.min.js:24
$f.fireEvent ["onLoad", "player", null, null, null, null] flowplayer-3.2.12.min.js:24
$f.fireEvent
["onBeforeBegin", 0, Object, null, null, null]
flowplayer-3.2.12.min.js:24
$f.fireEvent ["onStageVideoStateChange", 0, null, null, null, null] flowplayer-3.2.12.min.js:24
$f.fireEvent
["onBegin", 0, Object, null, null, null]
flowplayer-3.2.12.min.js:24
$f.fireEvent ["onLoad", "play", null, null, null, null] flowplayer-3.2.12.min.js:24
$f.fireEvent ["onBeforePluginEvent", "controls", "onBeforeHidden", null, null, null] flowplayer-3.2.12.min.js:24
$f.fireEvent ["onResized", 0, null, null, null, null] flowplayer-3.2.12.min.js:24
$f.fireEvent ["onPluginEvent", "controls", "onHidden", null, null, null] flowplayer-3.2.12.min.js:24

When the initial m3u8 is hosted locally

Code I used to init the player

flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.12.swf", {
// configure the required plugins
live: true,
debug: true,
wmode: 'direct',
plugins: {
httpstreaming: {
url: 'http://boxlistsdev.com/boxlists/scripts/flowplayer/flashlsFlowPlayer.swf',
hls_debug: true,
hls_debug2: true
}
},
clip: {
accelerated: true,
//url: Url,
url: "local/master.m3u8",
urlResolvers: ["httpstreaming", "brselect"],
provider: "httpstreaming",
autoPlay: true
}
});

from flashls.

mangui avatar mangui commented on August 26, 2024

Hi @barryallott
I dont see any flashls debug logs below (just flowplayer ones).
could you first ensure your stream is playing as expected with chromeless player ?

check it on the following page : www.flashls.org/latest/examples/chromeless
enable debug/debug2 traces, and then load your URL, and hit play.
if it is not working plz share JS console logs.
Cheers,
Mangui

from flashls.

barryallott avatar barryallott commented on August 26, 2024

[20:23:4] load URL https://webstream-vh.akamaihd.net/i/007/067/667/155/audio.mp4/master.m3u8?r…mp4*~hmac=6bba6b12544365b3db3c8002a67fcbf0af1d6d8fc99302bfcb0e01fb90e143b5 (index):202
ERROR:HLSError(code/url/msg)=1/https://webstream-vh.akamaihd.net/i/007/067/667/155/audio.mp4/master.m3u8?r…ac=6bba6b12544365b3db3c8002a67fcbf0af1d6d8fc99302bfcb0e01fb90e143b5/Cannot load M3U8: crossdomain access denied:Error #2048 VM92:1
INFO:HLSNetStream:close VM93:1
[20:23:4] onError():error code:1 url:https://webstream-vh.akamaihd.net/i/007/067/667/155/audio.mp4/master.m3u8?r…mp4*~hmac=6bba6b12544365b3db3c8002a67fcbf0af1d6d8fc99302bfcb0e01fb90e143b5 message:Cannot load M3U8: crossdomain access denied:Error #2048

Logs from that player.. I checked and I could get at the file through chrome browser but not the player

from flashls.

mangui avatar mangui commented on August 26, 2024

there is a permission issue : it looks like your crossdomain.xml is not set correctly.
refer to http://kb2.adobe.com/cps/142/tn_14213.html

from flashls.

barryallott avatar barryallott commented on August 26, 2024

Hmmm... From the link you sent an example cross domain is

cross-domain-policy>
  allow-access-from domain="www.company.com" />
/cross-domain-policy> 

And I can see the crossdomain.xml located at https://webstream-vh.akamaihd.net/crossdomain.xml

cross-domain-policy>
allow-access-from domain=""/> (there is a * between the quotes - message board is hiding it)
allow-http-request-headers-from domain="
" headers="*"/> (there is a * between the quotes - message board is hiding it)
/cross-domain-policy>

note: again - had to remove the leading < or the text was removed

It looks ok to me and I cannot change this anyway.

from flashls.

mangui avatar mangui commented on August 26, 2024

yes, it looks correct at a first sight, but this error is returned by Flash Player, so definitely there should be something wrong around the cross domain policy. basically this error is returned when flashls does a simple URL load on the playlist ...

from flashls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.