Comments (11)
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.
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.
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.
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.
Hi I would need debug logs from JS console to help u
from flashls.
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.
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.
[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.
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.
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.
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)
- Can this flash plugin support videojs version 6?
- probe fragment type fails on encrypted audio only .m4a files
- how to disabled auto level?
- Set custom referer and useragent
- I build an app with "adobe air", flashls support ios ? HOT 1
- Mute stream?
- CEA-608/EIA-608 Closed-captions are not getting rendered in v0.4.4.24 HOT 2
- video playback stutters in a specific scenario with alternative audio playlist
- setting new AudioTrack HOT 1
- Audio Track switch in FlashHls HOT 16
- What is relation between releases? HOT 2
- Video is buffering (or freezes) after Audio Track change HOT 1
- Any plan to support Subtitles in the official release? HOT 1
- M3u8 Not Playing after first ts segment
- Downloaded .ts (AES-128) doesn't play, probably still encrypted
- How to retrieve id3 tags through opencv
- how can i set query string on ts request?
- Issue with ABR switching to highest variant available HOT 1
- flashls doesn't play stream with AES-128 Encryption. It tries to load only the first segment HOT 2
- Subtitles are missing...
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flashls.