Results 1 to 9 of 9

Thread: file streaming how?

  1. #1
    Join Date
    Aug 2012
    Posts
    7

    Question On Demand file streaming how?

    Hi,

    I installed Wowza on Centos 6 64bit.
    After i did ./startup.sh , i could connect to http://1.2.3.4:1935 from browser.
    It shows - Wowza Media Server 3 Trial Edition (Expires: Sep 24, 2012) 3.1.2 build1624

    I am somewhat confused how to do On Demand file streaming (.flv / .mp4) to browsers and mobiles.
    Do i have to use JWplayer etc. on the website to show the video? any examples?
    Looking for a step by step like copy .flv/.mp4 files to this folder, change this config and then copy this code on your webpage.


    update:
    - i copied 2 .flv files to [install-dir]/content
    - created an html page with following:
    <script type='text/javascript' src='jwplayer.js'></script>
    
    <div id='mediaplayer'></div>
    
    <script type="text/javascript">
      jwplayer('mediaplayer').setup({
        'id': 'playerID',
        'width': '480',
        'height': '270',
        'provider': 'rtmp',
        'streamer': 'rtmp://1.2.3.4:1935/vod',
        'file': 'aksh_1.flv',
        'modes': [
            {type: 'flash', src: 'player.swf'},
    	{type: 'html5', config:
    		{
    		'file': "http://1.2.3.4:1935/vod/flv:aksh_1.flv/playlist.m3u8",
    		provider: 'video'
    		}
    	}
        ]
      });
    </script>
    When i load the html page on my website, it gives error in the jwplayer - Server not found rtmpt://1.2.3.4:80/vod (<- why 80 here??)

    Advices in right direction please.

    Thanks
    Last edited by mktw16; 08-25-2012 at 12:09 PM. Reason: add On Demand

  2. #2
    Join Date
    Aug 2012
    Posts
    7

    Default

    anyone?

  3. #3
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    On the client machine, where you are testing the player, open a browser and go to:

    http://[wowza-address]:1935
    You should see Wowza version and build number displayed. If not, either Wowza is not running, or port 1935 is blocked by a firewall on the Wowza server, or port 1935 is not properly mapped (e.g. port forwarding on your router) in your network to the machine running Wowza

    The default port for rtmpt is 80. So you don't need to specify 80 in that case, but you also have to open port 80 as above, and you can use 1935 explicitly instead
    rtmpt://[wowza-address]:1935/[app-name]
    Richard

  4. #4
    Join Date
    Aug 2012
    Posts
    7

    Default

    hi Richard,
    As you can see above in my post, i can see the wowza info and build no. - When i put http://ip:1935 in the client browser.

    Pls tell me why i'm getting that error in fwplayer. What is the error in the above code?

    Thanks

  5. #5
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    Right, sorry, my oversight. So, what have you done to get JW Player working? Are you referring to this article?

    http://www.wowza.com/forums/content....a-Media-Server

    What do you see in the player?

    Run Wowza in stand-alone (/bin/startup.bat) mode instead of the service (shut it down first) so you can see log output in the console. What do you see in the console when you try to play?

    Also test with /examples/SimpleVideoStreaming/client/simplevideostreaming.html

    Richard

  6. #6
    Join Date
    Aug 2012
    Posts
    7

    Default

    Quote Originally Posted by rrlanham View Post
    Are you referring to this article?

    http://www.wowza.com/forums/content....a-Media-Server

    What do you see in the player?

    Run Wowza in stand-alone (/bin/startup.bat) mode instead of the service (shut it down first) so you can see log output in the console. What do you see in the console when you try to play?

    Also test with /examples/SimpleVideoStreaming/client/simplevideostreaming.html

    Richard
    Thanks Richard from the link you provided i had seen before but the Embedding part confused me, so i just copy pasted the html5 fallback example:
    <script type='text/javascript' src='jwplayer.js'></script>

    <div id='mediaplayer'></div>

    <script type="text/javascript">
    jwplayer('mediaplayer').setup({
    'id': 'playerID',
    'width': '480',
    'height': '270',
    'provider': 'rtmp',
    'streamer': 'rtmp://[wowza-address]:1935/vod',
    'file': 'sample.mp4',
    'modes': [
    {type: 'flash', src: 'player.swf'},
    {type: 'html5', config:
    {
    'file': "http://[wowza-address]:1935/vod/mp4:sample.mp4/playlist.m3u8",
    provider: 'video'
    }
    }
    ]
    });
    </script>
    It works now on client pc browser.

    I tested it on internet browser of Nokia smartphone - E71.
    It shows f icon in place of jwplayer. No effect on clicking on it.

    How do i run it on Nokia browser?

    Thanks..

  7. #7
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    That only works for Flash RTMP and iOS clients.

    Richard

  8. #8
    Join Date
    Aug 2012
    Posts
    7

    Default

    So what is solution for Nokia Phone browsers?
    Any links please..

    Thanks

    Quote Originally Posted by rrlanham View Post
    That only works for Flash RTMP and iOS clients.

    Richard

  9. #9
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    I don't know of anything similar for rtsp devices. You can look at userAgent in HTTP headers yourself and return a rtsp url

    Take a look at Ian's post on this
    http://blog.ianbeyer.com/code/client...e-player-code/

    Richard

Similar Threads

  1. http(hls) streaming with smil file to refer 1 mp4 file ( multi-cahannels )
    By qstream in forum Video On Demand Streaming Discussion
    Replies: 4
    Last Post: 10-26-2013, 12:52 AM
  2. Automatic changing from streaming a file then live then a file again
    By berriebloem in forum Live Streaming and Encoder Discussion
    Replies: 3
    Last Post: 12-08-2011, 12:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •