[Laszlo-dev] For Review: Change 20090204-maxcarlson-I Summary: Fix pausing/playback for mediastreams

Max Carlson max at openlaszlo.org
Wed Feb 4 23:09:09 PST 2009


Change 20090204-maxcarlson-I by maxcarlson at Bank.local on 2009-02-04  
22:51:36 PST
     in /Users/maxcarlson/openlaszlo/pagan-deities
     for http://svn.openlaszlo.org/openlaszlo/branches/pagan-deities

Summary: Fix pausing/playback for mediastreams

Bugs Fixed: LPP-7708 - The pause method in the mediastream class is  
not working fine, LPP-4785 - mediastream not working anymore for red5

Technical Reviewer: hminsky, sallen
QA Reviewer: bkumar at laszlosystems.com

Details: Avoid calling  _setPaused() setter when paused is not  
changing in pause().  In play(), if we're currently paused unpause.   
Otherwise reset the stream so we can play again.  Avoid setting the  
"mode" attribute twice in a row.Add comment about  
rtc._nc.call("getLength", this, name); being bogus, avoid using it.   
Set the property in _setPaused() to avoid null value warnings for the  
initial call.

Tests: See updated-mediastreamer-test.lzx testcase in LPP-7708.  You  
may need to install an RTMP server and/or adjust the rtmpconnection  
src and zstream url attributes.

I used wowza media server for testing.  You can install the Wowza  
server from http://www.wowzamedia.com/store.html and start it up.

Next, set up a streaming media server by following the instruction  
here: http://www.wowzamedia.com/quickstart.html#vod
Create the folder [install-dir]/applications/streamingvideo to serve  
as the application folder. This will enable you to connect to the  
server using the rtmp url rtmp://[server-ip-address]/streamingvideo.  
Next, copy your media files to [install-dir]/content.

Files:
M      lps/components/extensions/av/mediastream.lzx

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20090204-maxcarlson-I.tar


More information about the Laszlo-dev mailing list