-
Notifications
You must be signed in to change notification settings - Fork 974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JW7 support for RTMP source file via RSS playlist #965
Comments
Alex helped to identify this was being caused by
Removing the jwplayer().getPlaylist()[0].sources[0].type // rtmp (after) vs. mp4 (before) However, what I don't understand is why this should be required? It seems like a workaround to a greater issue. This is otherwise completely valid XML. Even the JW example Media RSS shows this approach. The difference? RTMP vs. HTTP. In summary: Defining Shouldn't we be able to declare our mp4 videos as |
The player uses either the type or the file extension to determine which provider will load and play the media. Some types like mp4 have flash and html5 providers. RTMP is only supported in Flash and the player does not look at the protocol first to infer the type. It sees an explicit type of video/mp4 or the extension and expects a progressive download. Once down that route, it chokes on the url provided. It's likely the browser changing the url after setting video.src. |
With multiple providers for some types (e.g. mp3, mp4) does this model suggest this is the expected behavior (404 error against incorrect domain), that RTMP sourced content should not / can not declare their type via |
It's certainly unexpected and is caused by setting type. This can be fixed here https://github.com/jwplayer/jwplayer/blob/master/src/js/playlist/source.js#L34 or better yet when setting source.type, we should consider the url and run isRTMP and isYoutube, ignoring config type when there is a match: In the mean time I'd remove type from your feed. Do you need it for anything else? |
Thanks for confirming @robwalch. I've renamed the attribute in the XML to something that won't conflict for now. |
This issue is being tracked internally (JW7-1782) and is scheduled to be fixed in 7.3. |
Fixed by #997. Thanks! |
I may have stumbled upon a bug with JW Player 7.2.4 and RTMP source files in RSS playlists...
I am facing the following error, however it's only occurring on RTMP URLs within an RSS playlist:
The playlists in question adhere to the RSS Playlist embed documentation for JW 7.
When monitoring the browser console, a
404 error
is being thrown. The entire RTMP URL is being incorrectly fetched local to the website domain, and not from the CDN (e.g. Ignoring the RTMP Application Path / streamer)In the 404 error log, it seems the double slash in the RTMP URL has been converted to a single slash...
e.g:
Beyond that, I'm not sure why it is even attempting to load over http(s) when the protocol is explicitly RTMP. I have tried both
flash
andhtml5
mode to see if that made a difference, but it is resulting in the same error.See forum thread for more detail: https://support.jwplayer.com/customer/en/portal/questions/15980772-does-jw7-still-support-rtmp-source-file-via-rss-playlist-
The text was updated successfully, but these errors were encountered: