...

View Full Version : Can anyone help me with this?



thesmurf22
01-21-2012, 03:30 PM
Hi there,

Firstly I am a complete Javascript newbie, never really used it much!

Right I am using a wordpress theme to make a website, and this theme enables you to add vimeo videos as portfolio pieces. But the way the theme is calling the vimeo videos in is in the old flash way and not using the universal HTML 5 embedding. I would like to call the videos in using the HTML 5 method because alot of my clients look at the site on their ipad/iphones and obviously the flash method just wont cut it! :)

I have had a peek in the global.js and found these little bits of code:

var movie = "http://vimeo.com/moogaloop.swf?clip_id="+ obj.replace('http://vimeo.com/','');

This is telling me that the video is being called in using the old flash method "moogaloop.swf" the vimeo flash player skin.

is there any way I can re write this to enable the HTML 5 version of the video to be loaded at http://player.vimeo.com/video/ (+ clip_id + )

Also further down the page I found:

}else if(itemSrc.match(/vimeo\.com/i)){
return 'vimeo';

Will the fact that I am going to change the previous variable's URL affect the itemSrc.match??

I would love a little bit of guidance from anyone you knows about this stuff!?

Many thanks.

thesmurf22
01-22-2012, 09:54 AM
Anyone shed any light on this? Thank you in advance!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum