Stickam | Mobile | Developers | PayPerLive | LiveCitizen
 

3) Record a Live Session

StreamAPI also provides a way for you to record live sessions. Note that StreamAPI records live sessions in 3 hour increments unless the host ends the session before the 3 hour mark. Assuming that you've already learned how to create a live session, below are options on how to use recording in a live session.

1.   Auto record with quick stream
2.   Embed session with auto-record
3.   View recorded videos

1.   Auto record with quick stream

The first option that you have in starting a live session with auto-record enabled is through the "Quick Stream" page. First, you'll need to set-up a quick stream profile that has auto-record turned on. To do this, log into your streamAPI account. Go to "Quick Stream", then click on "Manage Profiles". A quick stream profile is an outline of a live session configuration. A configuration consists of the display name of the host who will be going live, a setting of whether you want the live session to have a private or public video (private = only your site members can see the live video and chat), and a setting of whether or not you want a live session to record the live video. With this in mind, here's how you can set up a live session profile that has recording turned on ... In the "Manage Quick Stream Profiles" page, click on "New Profile". This will pop-up a window where you can enter the display name of the host, set up the video privacy, and where you can set-up "auto-recording. Enter display name and select "Auto Record" to "Yes". Click on "Save".


Now you're ready to start a live session with recording. Click on "Broadcast" link under "Quick Stream". You'll then need to select the quick stream profile with auto-record that you just created. To do this, click on "Change" link on the upper right hand of the "Broadcast" box. Select the profile that you just created and click "Save".

Once it's saved, select the "Quick Stream" theme that you want to use to go live and click on either "Standard" or "RTMP Direct". Note that auto-record and recordings will still work even if you select "RTMP Direct". It is the same steps to record live sessions for both broadcast types.


2.   Embed session with auto-record

You can also start a live session with auto-record enabled by adding a new parameter on the embed code for starting a session. Assuming that you have read and followed how to create a session, all you'll need to add on the embed code is the "autoRecord=true" parameter within the "FlashVars" parameter.

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" 
width="500" height="500" id="liveStream" align="">
<PARAM name="movie" value="http://static.streamapi.com/flash/loader.swf?app=custom.swf&1247246891974">
<PARAM name=FlashVars value="siteID=1000000041&publicHostID=1000016130
&layoutPath=/themes/100/000/004/1/theme_ead36f16-4f26-11de-9836-25ac2e30640e.xml
&skinPath=/themes/100/000/004/1/skin_ead36f16-4f26-11de-9836-25ac2e30640e.xml
&privateHostID=WI41YDUQF4MTK6WSF84I4QSX4TAFUS6Y&userType=host&autoRecord=true&">
<PARAM name="allowScriptAccess" value="always">
<PARAM name="allowFullScreen" value="true">
<PARAM name="quality" value="high">
<PARAM name="bgcolor" value="#000000">
<PARAM name="scale" value="noscale">
<PARAM name="wmode" value="transparent">
<embed src="http://static.streamapi.com/flash/loader.swf?app=custom.swf&1247246891974" 
FlashVars="siteID=1000000041&publicHostID=1000016130
&layoutPath=/themes/100/000/004/1/theme_ead36f16-4f26-11de-9836-25ac2e30640e.xml
&skinPath=/themes/100/000/004/1/skin_ead36f16-4f26-11de-9836-25ac2e30640e.xml
&privateHostID=WI41YDUQF4MTK6WSF84I4QSX4TAFUS6Y&userType=host&autoRecord=true&"
allowScriptAccess="always" allowFullScreen="true" width="500" height="500" 
scale="noscale" wmode="transparent" quality="high" bgcolor="#000000" 
type="application/x-shockwave-flash" >
</embed>
</OBJECT>
    <div id="player_container"></div>

    <script type="text/javascript" 
    	src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>

    <script type="text/javascript">
       swfobject.embedSWF("http://static.streamapi.com/flash/loader.swf", "player_container", 
       						"500", "500", "9", "", {
            'app' : 'custom.swf',
            'siteID' : '1265428111',
            'publicHostID' : '1745122342',
            'layoutPath' : '/themes/126/542/811/1/theme_03d2cdd0-1d8b-11de-a2c3-f7f8349311a2.xml',
            'skinPath' : '/themes/126/542/811/1/skin_03d2cdd0-1d8b-11de-a2c3-f7f8349311a2.xml',
            'privateHostID' : 'C0UC4WO3ATORK259QL1STSIZO7RB1G5I',
            'userType' : 'host',
            'autoRecord' : 'true'
        }, {
            allowfullscreen: "true",
            allowscriptaccess: "true"
        });
    </script type="text/javascript">

3.   View recorded videos

Within your StreamAPI account page, you're able to see the live videos recorded within your StreamAPI account. In order to see the live videos, login to your StreamAPI account, and click on "Recorded Streams" link. You can sort the videos by recently recorded videos and also you can search any recorded video by public host id or channel id. In the listing of videos, you're able to play each video, so you can review it. You can also download the .flv video file or you can simply delete the video.