Wowza Community

Wowza 3.1.2 and JW Player 6.3 issue

Hello,

I am having problem with live video streaming. Player tries to play stream but the wheel constantly spins.

Software that I 'm currently using: JW Player 6.3, Wowza 3.1.2 and Wirecast 4.1.3

I have added Module Secure Token and set property according to instruction “How to add SecureToken Protection to LongTail JW Player 5”

I have assumed that portion of the mentioned instruction that says about editing action script file does not apply to me because secure token value can be passed in the html file settings.

<script type="text/javascript">
    jwplayer("mediaplayer").setup({
        file: "rtmp://mydomain.com:1935/live/",
        height: 285,
        image: "sample.jpg",
	rtmp: {
        securetoken: "#ed%h0#w@1"
    },
        width: 380
    });
</script>

I am not sure what to do next in order to have this working…

Thanks for any input.

In JW Player 6 you have add the stream name to the rtmp url, it is not separated as it was in previous versions. If the stream name is “myStream”, try this:

<script type="text/javascript">
    jwplayer("mediaplayer").setup({
        file: "rtmp://mydomain.com:1935/live/myStream",
        height: 285,
        image: "sample.jpg",
	rtmp: {
        securetoken: "#ed%h0#w@1"
    },
        width: 380
    });
</script>

More JW Player examples are here:

https://www.wowza.com/docs/how-to-use-jw-player-with-wowza-streaming-engine

Richard

If that works directly in iOS browser, then this should work in iOS and desktop with JW Player 6:

<html>
<head>
<title>JW Player 6</title>
<script type="text/javascript" src="/jwplayer/jwplayer.js" ></script>
<script>jwplayer.key="[jwplayer-key]"</script>
</head>
<body>
<div id="player">Loading the player...</div>
<script type="text/javascript">
    jwplayer("player").setup({
   	sources: [{
            file: "rtmp://mydomain.info:1935/live/live.sdp"
        },{
            file: "http://mydomain.info:1935/live/live.sdp/playlist.m3u8"
        }]
    });
</script>
</body>
</html>

Richard

Richard thanks for suggestion.

In old version I had:

'file': 'live.sdp',
'streamer': 'rtmp://mydomain.com:1935/live/'

How do I know “myStrean” appropriate name?

Am I correct thinking that I do not have to re-compile anything because JW Player has SecureToken in it?

Hello,

When I run on iOS device

http://mydomain.info:1935/live/live.sdp/playlist.m3u8

it work very well.

I can not get it working on regular browsers.

Thanks in advance for any suggestions.

Hello Richard,

I have implemented the code as you suggested above.

It works on iOS devices but it does not on desktop. With this code I get an error in the JW player “Error loading stream: Could not connect to server”.

Here you can see exact code I have:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Antiquorum - video</title>
<script type="text/javascript" src="jwplayer.js"></script>
<script type="text/javascript">jwplayer.key="key";</script>
</head>
<body>
<div id="player">loading...</div>
<script type="text/javascript">
        jwplayer("player").setup({
        sources: [{
            file: "rtmp://mydomain.info:1935/live/live.sdp"
        },{
            file: "http://mydomain.info:1935/live/live.sdp/playlist.m3u8"
        }],
        height: 285,
        width: 380,
        rtmp: {
        securetoken: "#ed%h0#w@1"
    }
    });
</script>
</body>
</html>

I am not sure what is wrong since I spent couple of hours on it and read number of manuals.

I am out of ideas.

Please help.

Thanks for your help

Hello,

I have updated Wirecast to 4.2.5 but still no luck…

Guys any suggestions please…

Thanks

Hello,

I have eliminated code from “Application.xml” file.

<Module>
<Name>ModuleSecureToken</Name>
<Description>ModuleSecureToken</Description>
<Class>com.wowza.wms.plugin.security.ModuleSecureToken</Class>
</Module>
<Property>
<Name>secureTokenSharedSecret</Name>
<Value>#ed%h0#w@1</Value>
</Property>

And from html file

rtmp: {
securetoken: "#ed%h0#w@1"
}

And stream is working on desktop with JW Player 6.3, Wowza 3.1.2 and Wirecast 4.1.3.

The only problem is that it brakes for half of the second time to time.

Is there anything I can do with this?

Thanks