Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Android fallback to RTSP not working


I'm trying to stream from Wowza to everything. I have the playlist.m3u8 URL working for HTML5, and jwplayer.smil working for Flash. But, I can't seem to get an Android device to fallback to an RTSP stream. When I load the following code, Android just displays a blank page (no errors). I anonymized the URLs but you get the idea. I verified the RTSP link works by just typing it into the Android browser and the stream plays fine. I even went to a store and tried it on multiple Android devices.

What am I doing wrong?

bc.. <!doctype html>
<head>
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
</head>
<body>
<div id='my-video'>
<a href="rtsp://example.com:1935/live/mp4:mystream_360p"></a>
</div>
<script type='text/javascript'>
jwplayer('my-video').setup({
playlist: [{
sources : [
{ file: 'http://example.com:1935/live/ngrp:mystream_all/playlist.m3u8' },
{ file: 'http://example.com:1935/live/ngrp:mystream_all/jwplayer.smil' }
],
title: "Title"
}],
width: '640',
height: '360',
fallback: false
});
</script>
</body>

12 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link?

JW Player

User  
0 rated :

http://149.20.80.202

Ethan Feldman

JW Player Support Agent  
0 rated :

Change:

fallback: false

To:

fallback: false,
primary: “flash”

I would also reverse the sources order to make the smil the 1st source.

JW Player

User  
0 rated :

I have made the changes you suggested, and they are now reflected in the link above. But, it still behaves the same way. Do you have an Android device that this works for?

Do you have any live stream example that falls back to RTSP on Android correctly, so that I can at least see it working?

I understand that there are many different flavors of Android out there. Do you have a list of "known to work" or "known not to work" devices?

Ethan Feldman

JW Player Support Agent  
0 rated :

I think a better way here would be to detect android via a JS UserAgent detection and simply show a link, else show the player.

JW Player

User  
0 rated :

Hello! I have used a desktop and server PseudoStreaming wowza for Android and iOS mobile device. To build a simple and call the jwplayer individually videos play normally. I wonder if it is possible in just a code with javascript jwplayer determine various protocols such as HTTP links (desktop), RTSP (for android), so that jwplayer come play link supported by the device that accesses? A sort of level with several access options to one single video. I have a PRO license jwplayer. Thank you.

JW Player

User  
0 rated :

So, Ethan, it sounds like the bottom line here is that fallback doesn't work. It would be greatly appreciated by all if the documentation reflected reality a little better. I have wasted a lot of time and energy trying to implement precisely what was documented and it just doesn't do what the documentation says.

Perhaps the documentation should show how to implement a JS User Agent instead?

Ethan Feldman

JW Player Support Agent  
0 rated :

@Rafael – We don’t do device detection in the setup code.

@Chris – Will pass along updating the docs, thanks.

JW Player

User  
0 rated :

Ethan, is possible to use external subtitles in the video, or SRT format VTT for iOS devices and Android mobiles with jwplayer 6x?

Ethan Feldman

JW Player Support Agent  
0 rated :

For devices, the subtitles need to be encoded into the media file itself.

JW Player

User  
0 rated :

I would like to offer two qualities of the same video for mobiles devices. This switch is possible qualities of video on mobiles devices as well as desktop?

Ethan Feldman

JW Player Support Agent  
0 rated :

It is not possible yet.

This question has received the maximum number of answers.