Content that contains streaming video is the same as content that does not, with the exception of an XML element called “Media”.
The UCR Web Services method call is the same for both: GetContent.
The media element in the XML you get from the GetContent call looks like this:
<media mediaid="432" mimetype="video/x-flv" height="400" width="400" mediaurl="rtmp://streamingserverurl/streamingvideo.flv" />
You will need to transform the media element into an object element that HTML understands. The highlighted lines below contain data that must be customized for your implementation. Any data that must be customized for an implementation will come from the media element's attribute values;
"player.swf" is the flash player you have decided to use, located somewhere on your server):
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
width="400" height="400">
<param name="movie" value="player.swf"/>
<param name="allowScriptAccess" value="always"/>
<param name="quality" value="high"/>
<param name="allowFullScreen" value="true"/>
<param name="FlashVars" value="filename=rtmp://streamingserverurl/streamingvideo.flv"/>
<param name="wmode" value="transparent" />
<embed src="player.swf"
width="400" height="400"
quality="high" allowFullScreen="true"
allowscriptaccess="always" pluginspage=http://www.macromedia.com/go/getflashplayer
type="application/x-shockwave-flash"
FlashVars="filename=rtmp://streamingserverurl/streamingvideo.flv"
wmode="transparent">
</embed>
</object>
The sample xml transform DocumentToHTML.xslt, includes a section for transforming the media element. All you need to do is update the “player.swf” value to reference the name and location of your flash player.