DonnieJ
08-24-2016, 07:01 PM
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 (https://vborg.vbsupport.ru/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!
Recently we've decided to transition from Flash to HTML5 in terms of how videos are embedded on our site.
BirdOPrey5's solution (https://vborg.vbsupport.ru/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!