Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 24 Aug 2016, 21:01
DonnieJ DonnieJ is offline
 
Join Date: May 2010
Question Evaluating video source

Howdy all,

Recently we've decided to transition from Flash to HTML5 in terms of how videos are embedded on our site.

BirdOPrey5's solution (http://www.vbulletin.org/forum/showthread.php?t=283594) helped a lot.

I ran into an issue of trying to embed a youtube.be URL and of course it fails. What I'd like to do is code in a conditional check to evaluate whether it's from Youtube (which it does "provider='youtube') and then build the appropriate URL.

I'm just not very clear on the syntax I should use, etc. Also, where is "$provider" set? Is it parsing the URL and finding the string between *. and .* ? is it possible to change how "$provider" is populated?

Any help would be awesome!

Cheers!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 20:28.

Layout Options | Width: Wide Color: