Wowza Community

Is it possible to use Players in example dir through HTTP on running Wowza?

Hi!

Could you please say is is possible to use Players that are situated inside [wowza-root]\examples\LiveVideoStreaming\ to access via HTTP?

Right now I have next situation:

1. Wowza is installed on Windows localhost in dir [C:\Wowza\3.5]

2. Java application is working on localhost. It makes a screenshot every second in real time, encodes it and sent as VIDEO-stream to Wowza with this parameters:

    host[localhost]
    port[1935]
    app-name[screenshare]
    stream-name[ss]

3. All necessary folders and files in [wowza-root]/conf and [wowza-root]/applications are created.

4. When I manually open [wowza-root]\examples\LiveVideoStreaming\FlashRTMPPlayer\player.html and enter values:

Server: rtmp://localhost/screenshare
Stream: ss

And click connect - I got my screenshare live-stream without any problem.

The same is working for FlashHTTPPlayer, but I need to enter:

Stream: http://localhost:1935/screenshare/ss/manifest.f4m"

and click "Connect

My aim: to generate inside Swing-app direct link to player where correct stream is playing via message like: “Please send link to any person interested in your screen: httl://localhos/FlashRTMPPlayer&link=rtmp://localhost:1935/screenshare/ss/manifest”. So anyone who enters this link in browser just will see working live stream, without need to click any buttons. Because different users can generate streams with different IDs this URL to stream really should be dynamic (that is why I can’t use solution from “How to use the Adobe Flash Media Playback player with Wowza Media Server” - in the embedded player this URL is static)

So the questions:

  1. Is it possible to access to players in [wowza-root]/example folder via HTTP on running Wowza-server?

  2. Is it possible to somehow pass correct URL to player in request string?

  3. Any other options?

Thank you very much

Use the FlashHTTPPlayer (OSMF) examples in Wowza to play sanjose (manifest.f4m) streams.

Other options that I know of are these:

Flash Media Playback Player (easy)

https://www.wowza.com/docs/how-to-use-strobe-media-playback-with-a-wowza-media-server

Flowplayer

https://www.wowza.com/docs/how-to-use-flowplayer-with-wowza-media-server-software

Strobe

http://www.osmf.org/strobe_mediaplayback.html

Richard

The example player(s) can be moved to a web server to access them in a remote browser.

There is not a web server included with Wowza.

Richard

Dmitry,

Cool! Thanks for update and example.

Richard

Hi Richard. Thank you for reply.

Could you tell me is is possible to launch FlashHTTPPlayer on running Wowza-server via entering URL in browser? Like I wrote in question - I have no problems launching player by entering directory [wowza-root]\examples\LiveVideoStreaming\FlashHTTPPlayer\ and launching player.html, but it is really interesting - can I do it via browser URL and what the form of URL it will be?

Maybe to clarify question - on running Wowza server it is possible to launch StreamManager via this URL:

http://localhost:8086/streammanager/index.html

Is it possible to do something like this for Player?

Hi Richard. Thanks for reply

I managed to achieve my goal with your link on Flash Media Playback Player: https://www.wowza.com/docs/how-to-use-strobe-media-playback-with-a-wowza-media-server

Just embed this player on html page deployed on application server and add a little javascript, that actually extracts necessary stream URL from parameter in request.

<html>
<head></head>
<body>
<SCRIPT LANGUAGE="JavaScript">
    var myQueryString = document.location.search;
    // remove the '?' sign if exists
    if (myQueryString[0] = '?') {
        myQueryString = myQueryString.substr(1, myQueryString.length - 1);
    }
    document.write(
        '<object width="600" height="409">\n' +
            '<param name="movie" value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" />\n' +
            '</param>\n' +
            '<param name="flashvars" value="' + myQueryString +'" />\n' +
            '</param>\n' +
            '<param name="allowFullScreen" value="true" />\n' +
            '</param>\n' +
            '<param name="allowscriptaccess" value="always" />\n' +
            '</param>\n' +
            '<embed src="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="600" height="409" flashvars="' + myQueryString +'"></embed>\n' +
            '</object>'
    );
</SCRIPT>
</body>
</html>

But anyway - it worked great.

Best regards, Dmitry

Hello , I am having the same project than you, but I am not really good at javascript so I am having difficulties with this part. Could you give me some hints about how to do this ? Thank you