Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-21-2012, 03:30 PM   PM User | #1
thesmurf22
New to the CF scene

 
Join Date: Jan 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
thesmurf22 is an unknown quantity at this point
Can anyone help me with this?

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.

Last edited by thesmurf22; 01-22-2012 at 09:54 AM..
thesmurf22 is offline   Reply With Quote
Old 01-22-2012, 09:54 AM   PM User | #2
thesmurf22
New to the CF scene

 
Join Date: Jan 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
thesmurf22 is an unknown quantity at this point
Anyone shed any light on this? Thank you in advance!
thesmurf22 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:37 AM.


Advertisement
Log in to turn off these ads.