Forums | Mahara Community
Developers
/
Adding an External Video Site Question
04 November 2010, 7:56
Hello Maharians!
I work for a k-12 school district and because youtube etc are blocked we have our own video sharing website based on Joomla and a plugin called JVideoDirect.
The URL for the videos is in this format:
http://dearbornschools.org/dtube?v=O99c63oblrRTB&Itemid=333
I am trying to add this to the External Video Widget as:
// http://dearbornschools.org/dtube
array( 'match' => '#.*dearbornschools.org/dtube?v=*docid=(\-?[0-9]+).*#','
url' => 'http://dearbornschools.org/components/com_jvideodirect/plugins/jwflvplayer/player.swf?docId=$1', ),
I just copied and pasted one of the existing sites for Google Video.
The embed code JVideoDirect generates is this:
<embed id="jvideodirect" name="jvideodirect" src="http://dearbornschools.org/components/com_jvideodirect/plugins/jwflvplayer/player.swf" width="580" height="444" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" bgcolor="#000000"name="theMediaPlayer" allowfullscreen="true" allowscriptaccess=always menu="false" wmode="transparent" flashvars="file=http://dearbornschools.org/dtube?ev=GijidlXnI3u6M&Itemid=333&autostart=0&smoothing=1&width=580&height=444&stretching=fill&logo=http://dearbornschools.org/components/com_jvideodirect/themes/dark_tmpl/images/playerlogo.png&skin=http://dearbornschools.org/components/com_jvideodirect/plugins/jwflvplayer/skin/dangdang.swf"></embed>
Does this look correct?? I am trying it out now, but thought I should ask the experts!
Thanks,
Chris
16 November 2010, 4:07
Hi Chris,
We have the same issue, noted in the forums at http://mahara.org/interaction/forum/topic.php?id=2501
We're trying to work out why some sites don't embed (eg JVideoDirect), whereas others (eg Prezi) do embed (sample Prezi embed code below)
<object id="prezi_8cd20d77bee92697e67ea8b1bd55f03f330c05ca" name="prezi_8cd20d77bee92697e67ea8b1bd55f03f330c05ca" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400"><param name="movie" value="http://prezi.com/bin/preziloader.swf"/><param name="allowfullscreen" value="true"/><param name="allowscriptaccess" value="always"/><param name="bgcolor" value="#ffffff"/><param name="flashvars" value="prezi_id=8cd20d77bee92697e67ea8b1bd55f03f330c05ca&lock_to_path=0&color=ffffff&autoplay=no&autohide_ctrls=0"/><embed id="preziEmbed_8cd20d77bee92697e67ea8b1bd55f03f330c05ca" name="preziEmbed_8cd20d77bee92697e67ea8b1bd55f03f330c05ca" src="http://prezi.com/bin/preziloader.swf" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="550" height="400" bgcolor="#ffffff" flashvars="prezi_id=8cd20d77bee92697e67ea8b1bd55f03f330c05ca&lock_to_path=0&color=ffffff&autoplay=no&autohide_ctrls=0"></embed></object>
Is anyone able to comment on the <object> </object> wrapped around the <embed></embed> being of significance.
10 January 2011, 12:37
Hey Andy,
I tinkered with this for a few weeks and gave up. I don't know why JVideoDirect won't embed.