Keyword

youtube embeding on safari

  • Chris Hampel
  • Chris Hampel's Avatar Topic Author
  • Offline
  • New Member
More
9 years 7 months ago #56404 by Chris Hampel
youtube embeding on safari was created by Chris Hampel
for the youtube embed code you have:
<iframe src=\"//www.youtube.com/embed/{SOURCE}\" width=\"{WIDTH}\" height=\"{HEIGHT}\" frameborder=\"0\" allowfullscreen title=\"JoomlaWorks AllVideos Player\"></iframe>

however on safari the // links don't work right

would it be possible to change it to:
<iframe src=\"".strtolower(substr($_SERVER["SERVER_PROTOCOL"],0,strpos( $_SERVER["SERVER_PROTOCOL"],'/')))."://www.youtube.com/embed/{SOURCE}\" width=\"{WIDTH}\" height=\"{HEIGHT}\" frameborder=\"0\" allowfullscreen title=\"JoomlaWorks AllVideos Player\"></iframe>

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #56411 by Lefteris
Replied by Lefteris on topic youtube embeding on safari
The links without protocol work fine in Safari and all the rest browsers. If the video is not displayed in your page under Safari, then something else is going wrong. Is there a link to the page with the issue?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum