Foliovision › Forums › FV Player › Bug Reports › detailedErrorCode: 315 on casting to chromecast
-
-
This is on MacOS 10.15.5, Chrome 86.0.4240.80, WordPress plugins FV Player 7.4.34.727, FV Player Pro 7.4.33.727
Attempting to cast to chromecast from (eg) here – https://streamthescene.net/_streams/i-love-acid-17-10-20/ – gives that error in the browser console and it would just be good to know what it means as we can never get casting to work.
Thanks.
Hi Colin,
We’ve tested the given video and the error comes up for any device (not only MacOS). We think it may be a plugin interference since it seems to try to start but then gets blocked, however we’d like to look into it further.
Could you please post a new page to your website with a bare MP4 file using FV Player and see if the Chromecast works there?
A sample MP4 video could be this one: s3-eu-west-1.amazonaws.com/fv-player-unprotected/dominika-960-31_HD.mp4 If that one works, then it’s some problem with the video you’re using or it doesn’t work with the player feature which you’re using. Otherwise it must be some plugin conflict.
Thanks,
ChiaraHi,
We’ve tried and the mp4 casts fine, however other HLS examples we’ve tried (not just ours) play but do NOT cast, eg:
https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8
The second of those is currently on this page for ref – https://streamthescene.net/_streams/test/
I tried with the examples on this page of yours – https://foliovision.com/player/demos/hls-stream – results were:
1st video – plays, does not cast
2nd video – doesn’t play at all
3rd – *plays AND casts successfully*
4th – plays, does not castCan you tell me what the difference between the 3rd video and the others is that might be causing it to cast successfully? There’s no comment on it in the page.
Thanks
One more thing, I found the source of the working file to be – https://playertest.longtailvideo.com/adaptive/bipbop/bipbop.m3u8 – when I put this into our test page it also casts successfully.
Hello Colin,
Chromecast reports this error:
onMediaError code: "session_error", description: description: "LOAD_FAILED" details: {type: "LOAD_FAILED", detailedErrorCode:315, itemId: 1}
We found that the error 315 is HLS_NETWORK_INVALID_SEGMENT which means that the video segment is not using TS or AAC format: https://developers.google.com/cast/docs/web_receiver/error_codes
Looking at https://playertest.longtailvideo.com/adaptive/bipbop/bipbop.m3u8 I can see the video segments are using the h264 (Constrained Baseline) codec, while your HLS stream is using Video: h264 (Main). Both of which should work with Chrome Cast, even the old versions. And both streams are using TS segments obviously.
I tried to put in some fixes based on https://stackoverflow.com/questions/55385491/why-is-chromecast-unable-to-stream-this-hls-video-neither-id3-nor-adts-header but it wouldn’t work so far.
I also tested that video in JW Player and it wouldn’t cast either.
—
Regarding https://foliovision.com/player/demos/hls-stream – thank you for letting us know about that playback issue. It’s due to our new Stream Loader technology to serve HLS streams with URL tokens. We will fix it to work with different file extensions and then that broken video will play.
Thanks,
MartinHi,
This still doesn’t work for us – I’d really like to focus on your demo files on the page https://foliovision.com/player/demos/hls-stream – you must be able to tell me what the difference is between the one that casts
https://playertest.longtailvideo.com/adaptive/bipbop/bipbop.m3u8
and the others that don’t cast?
Hello Crawford,
we did the basic check of the h264 codec already, I posted about it in my last message.
I also run into the exact same issue with JW Player.
So it’s hard for us to guess what could be the issue with Chromecast. We can only try some more players until we found which one is able to cast that m3u8 file.
Thanks,
MartinHello, I don’t know if this stream has changed since the thread was open but I’m testing it on a build-in Chromecast on a Sony Bravia and it works fine. There is a weird message after check it through the MediaStreamValidator app:
Error: Illegal MIME type
–> Detail: MIME type: application/x-mpegURL
–> Source: https://playertest.longtailvideo.com/adaptive/bipbop/bipbop.m3u8
But I thought this is the correct mime type for hls streams…Hello Gus,
we are now fixing a similar issue here, we did some more tests with other players too: https://foliovision.com/support/fv-wordpress-flowplayer/bug-reports/chromecast-2#post-135148
Thanks,
Martin