Wowza Community

Using JW Player 5.x with Wowza Server

It looks well formed. Do you see any useful errors in the access or error log?

Is there a subfolder name “wl” of the content location specified in the /conf/vod/Application.xml /StorageDir? And is there a video named “plewa_H264.mov” in that folder?

Look at the logs for a clue.

Richard

I meant the Wowza logs:

/logs/wowzamediaserver_access.log

/logs/wowzamediaserver_error.log

You might see a WARN line something like:

WARN server comment wl/plewa_H264.mov MediaReaderH264.open[1]: java.io.FileNotFoundException: C:\Program Files (x86)\Wowza Media Systems\Wowza Media Server 2\content\wl\plewa_H264.mov (The system cannot find the path specified)

Or some other clue. If you do not see any clue, then you are not connecting to the server.

Richard

Is the player.swf file alongside the html page, in the same location?

Richard

Testing in Wowza example player, I get a “stream not found” message.

Richard

Yes, I see the live stream now using the Wowza example player. The JW Player flashvars you posted are correct.

I notice the SWF is loaded from absolute url, which is unusual, but should work.

Review the JW player setup. Use their wizard to help:

http://www.longtailvideo.com/support/jw-player-setup-wizard

But Wowza and your live stream are working. I tested with the Wowza LiveVideoStreaming example:

Server: rtmp://ec2-174-129-80-242.compute-1.amazonaws.com

Stream: myStream

Richard

Great! Glad it’s working, thanks for the update

Richard

@bobmax48,

It’s okay to do it like that. Whatever works.

Richard

Change “localhost” to the Wowza IP.

Richard

Check the Wowza access and error log for a clue.

Try using the SimpleVideoStreaming example player [wowza-install-dir]/examples/SimpleVideoStreaming/client/simplevideostreaming.html

Server: rtmp://[wowza-address]:1935/

Stream: mp4:Extremists.m4v

If that doesn’t work, check the Wowza access and error log again. Is the Extremists.m4v in the content folder?

Richard

Make sure that the player.swf is alongside the html page or that you have correct path to its location.

Richard

Try putting an absolute url to player.swf. Using http://[webserver-address]/…/player.swf, to the exact location.

You can also ask for help on JW Forum.

Richard

The Wowza example players can be run from the file explorer. Not sure about JW player, some Flash apps do not have the security setting that allows them to run from file system and have to be run from a web server.

Richard

JW Player 5.2 will run from file location, I tried it. I open this in browser:

file:///C:/inetpub/wwwroot/JW52/bin-debug/player.html

The player.swf is in the same location and is reference relative, not with absolute url. I am using swfobject. My html looks like this:

<html lang="en"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
<title>player</title> 
 
<script type="text/javascript" src="swfobject.js"></script> 
 </head> 
<body> 
 
<div id="player"> 
 <a href="http://get.adobe.com/flashplayer/">Get the Flash Player</a> 
    to see this video.
</div> 
<script type="text/javascript"> 
var so = new SWFObject('player.swf','mpl','480px','290px','9');
so.addParam('allownetworking','all');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('Flashvars','streamer=rtmp://localhost:1935/vod&file=mp4:sample.mp4&provider=rtmp');
so.write('player');
</script> 
</body> 
</html>

Richard

The .avi file is not supported. To test, try it with the Wowza sample.mp4 file.

Take a look at these encoding suggestions for creating mp4 files:

https://www.wowza.com/docs/how-to-encode-video-on-demand-content

Richard

Charlie, FYI, the RC for JW 5.1 does indeed work now. I’ve just compiled a secure token version of the player from source downloaded last night and it’ll play livestreams fine now.

The current 5.0 player source however will run about 1 frame or so and stop on live streams.

–Chris

FYI, 5.1 of JW is out now.

–Chris

Hi richard,

that looks good. I’ve gotta take a closer look at the MPEG-TS bit tho… I don’t recall having that issue with 5.1. Is that example when you serve from Wowza in MPEG-TS or publishing TO? I havn’t had any issues with 5.1 when I publish to the Wowza server with an MPEG-TS stream sent via UDP and JW picking up as RTMP.

I’m headed to lunch but when I get back I can fiddle with it.

My 5.1 test using my build of JW is here: http://cbtvhd.zcastlive.com/test/index51.html

I’ll send up some MPEGTS in an hour or so.

–chris

I am trying to get a playlist to work with MWS and JW, when I click on play, the player does not play. The xml is like this:

<?xml version="1.0" encoding="utf-8"?> STREAM1

STREAM SOLUTIONS

pastors_1.flv

Pastor 1

rtmp STREAM2

STREAM SOLUTIONS

pastors_1b.flv

Pastor 2

rtmp STREAM3

STREAM SOLUTIONS

pastors_1c.flv

Pastor 3

rtmp

Hi Richard,

Is there a way making a playlist to play live feeds. I have this playlist.xml and its saying the stream is not found.

<?xml version="1.0" encoding="utf-8"?> Worship 1 Plus Faith Clinic Plus Dance

SOLUTIONS

gateway(Sreamname)

Message 1

rmtp://mydomain.com/live rtmp

The embed part of the html is like this:

flashvars="bufferlength=2&streamer=rtmpe://mydomain.com/live&file=playlist.xml&playlist=bottom&provider=rtmp"

Thanks.

Thanks Richard. I managed to get it working (with help from Ethan @ JW who pointed me to this link - http://developer.longtailvideo.com/trac/testing/?player=v5&file=http%3A%2F%2Fwww.longtailvideo.com%2Fjw%2Fupload%2Fstreamers.xml&height=240&playlist=right&playlistsize=400&width=800) . At the moment its only working with IE still can not figure out how to get it working with Firefox or Chrome.

Just in case it will be useful to anyone below is the playlist.xml and .html

playlist.xml

Example XSPF playlist for the JW Player

http://www.domain.com

Streaming Giants - Live RTMP stream

Live TV Streaming Project

http://www.mydomain.com/

This is a Live TV Streaming Project. We offer Live Streaming broadcast and on Demand Video Streaming.

streamfile.flv

rtmp://mydomain.com/live

.html

<embed

type=“application/x-shockwave-flash”

id=“player2”

name=“player2”

src=“player-licensed.swf”

width=“470”

height=“470”

allowscriptaccess=“always”

allowfullscreen=“true”

file=“playlist.xml&playlist=bottom”

/>

Thanks.