Wowza Community

JW Player - Playing live stream on iphone and Flash with one player

I have read alot on both the Wowza and JWplayer forums (as well as several others). I have the most recent JWplayer 5.4. I am able to play an RTMP live stream and iphone live stream on there own, but I am looking for a way to have the player play the “correct” live stream based on the browser/device. The current JWPlayer does this with a file, but I can’t figure out how to do it with a live stream. I would appreciate any guidance

For this Player specific question you would need to go back to the JWPlayer website and asked in their support area. It may be a current limitation of the player or something else is required.

Shamrock

I don’t think there is any difference between vod and live streams from the client (JW Player) point of view. It’s the same.

Richard

Take a look at the JW Player mode method

http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/18530/embedding-an-rtmp-stream-with-an-html5-fallback

Richard

I tryed the script but I could not stream (on demand) to the Iphone from the wowza server.

Any update? I am looking for a solution to this problem too !

Thanks

Paolo

This is what I did to make it work. There is some sort of bug right now with the player though. Something having to do with RTMPT.

<div id="container" >Loading the player ...</div> 
			 
			<script type="text/javascript"> 
			    jwplayer("container").setup({
			        flashplayer: "player.swf",
			        autoplay: "false",
			        height: 360,
			        width: 640,
			        
			        
			    }).onReady(function() {
			  if (this.container.tagName.toLowerCase() == "object") {
			    // Flash case
			    this.load({
			        file: "streamname",
			        streamer: "rtmp://servername:1935/live",
			        provider:"rtmp",
			        
			        image: "/_img/uploads/thumb.jpg"
			    });
			  } else {
			    // HTML5 case
			    this.load({
			       
			        file: "http://servername:1935/live/streamname/playlist.m3u8",
			        image: "/_img/uploads/thumb.jpg"
			     });
			  }
			 
			});
			</script> 

I tryed the script but I could not stream (on demand) to the Iphone from the wowza server.

Any update? I am looking for a solution to this problem too !

Thanks

Paolo

To make this work with, say the sample Extremists.m4v file that comes with a standard Wowza install, try:

<div id="container" >Loading the player ...</div> 
			 
			<script type="text/javascript"> 
			    jwplayer("container").setup({
			        flashplayer: "player.swf",
			        autoplay: "false",
			        height: 360,
			        width: 640,
			        
			        
			    }).onReady(function() {
			  if (this.container.tagName.toLowerCase() == "object") {
			    // Flash case
			    this.load({
			        file: "Extremists.m4v",
			        streamer: "rtmp://servername:1935/vod/_definst_",
			        provider:"rtmp",
			        
			        image: "/_img/uploads/thumb.jpg"
			    });
			  } else {
			    // HTML5 case
			    this.load({
			       
			        file: "http://servername:1935/vod/Extremists.m4v/playlist.m3u8",
			        image: "/_img/uploads/thumb.jpg"
			     });
			  }
			 
			});
			</script> 

hello,

I have tried to make this work for live streaming, however, iOS device does not play the stream…could you please advise on what is wrong below with the code

Loading the player ...