Page 1 of 1

Streaming MP4 video

PostPosted: Fri Mar 01, 2013 10:13 am
by tahiya
I understand how to use an MP4 file that is just sitting on a server, but can I use a true streaming service, like BrightCove, that adjusts the file delivered based on the user connection? Since the URL the service generates includes their player and doesn't actually end in an extension of a file type, the SB video object can't seem to use the URL to display the video.

I can just let the LMS show the player and then add SB items interleaved with video in the LMS TOC, but I liked the activities I was doing where the video pauses mid-stream and asks the user to do something based on the video. Having the activities AFTER the video is less fun and eliminates the surprise factor.

Aside: BrightCove does allow me to input cue points to the video.

Re: Streaming MP4 video

PostPosted: Fri Mar 01, 2013 6:34 pm
by Nav
Hi Tahiya,
You have a couple choices. You could use the IFrame object to point to that URL. However, you wouldn't be able to catch any cue points or know when the video is finished. But you could set up a timer that is the same length as the video, and you'd know when that was done.

You could also try to use the RTMP Streaming Video object (another widget under "More Objects"). That is designed for this type of dynamic delivery, but (disclaimer!) not all video services allow their video to be embedded in such a way. The object takes a couple properties - URL and Stream. I don't really know how to decipher those from the URL that BrightCove is providing you with, but if you send me the BrightCove URL, I can ask our development team to see if they can figure it out. If it does work, I don't think you would use BrightCove's cue points - the RTMP object has a cue points property that works just the same as our regular video object (and you'd probably need to use that).

You might also ask BrightCove if they allow direct access to their videos so a 3rd party player can display them. They might have a different URL for that purpose, or they might tell you right off the bat that they don't allow it. Send me that URL and cross your fingers!

- Nav

Re: Streaming MP4 video

PostPosted: Thu Mar 07, 2013 2:15 pm
by tahiya
So the iFrame thing works great, but if cues can be applied, that would be beyond beyond.

Brightcove offers three codes for using the output.
They call this one Website

<!-- Start of Brightcove Player -->

<div style="display:none">


By use of this code snippet, I agree to the Brightcove Publisher T and C
found at ... onditions/.

<script language="JavaScript" type="text/javascript" src=""></script>

<object id="myExperience2206135974001" class="BrightcoveExperience">
<param name="bgcolor" value="#FFFFFF" />
<param name="width" value="500" />
<param name="height" value="470" />
<param name="playerID" value="2183113595001" />
<param name="playerKey" value="AQ~~,AAAAmtVKCrk~,0nvjWr4hD8ohKNw9pOtlWKUb_E78DWSG" />
<param name="isVid" value="true" />
<param name="isUI" value="true" />
<param name="dynamicStreaming" value="true" />

<param name="@videoPlayer" value="2206135974001" />

This script tag will cause the Brightcove Players defined above it to be created as soon
as the line is read by the browser. If you wish to have the player instantiated only after
the rest of the HTML is processed and the page load is complete, remove the line.
<script type="text/javascript">brightcove.createExperiences();</script>

<!-- End of Brightcove Player -->

this one Blog

<object id="flashObj" width="500" height="470" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=",0,47,0"><param name="movie" value="" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="@videoPlayer=2206135974001&playerID=2183113595001&playerKey=AQ~~,AAAAmtVKCrk~,0nvjWr4hD8ohKNw9pOtlWKUb_E78DWSG&domain=embed&dynamicStreaming=true" /><param name="base" value="" /><param name="seamlesstabbing" value="false" /><param name="allowFullScreen" value="true" /><param name="swLiveConnect" value="true" /><param name="allowScriptAccess" value="always" /><embed src="" bgcolor="#FFFFFF" flashVars="@videoPlayer=2206135974001&playerID=2183113595001&playerKey=AQ~~,AAAAmtVKCrk~,0nvjWr4hD8ohKNw9pOtlWKUb_E78DWSG&domain=embed&dynamicStreaming=true" base="" name="flashObj" width="500" height="470" seamlesstabbing="false" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" swLiveConnect="true" pluginspage=""></embed></object>

and this one URL

Not able to open ./cache/data_global.php