Viewing Embedded Youtube Videos in Safari

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
k.haroon
Registered User
Posts: 55
Joined: Wed Sep 19, 2018 8:11 am

Viewing Embedded Youtube Videos in Safari

Post by k.haroon »

Hi I am using the following code as an HTML replacement to embed youtube videos.

Code: Select all

<div style="width:75%;height:75%;">
<div class="videoWrapper" style="position:relative;padding-top:25px; padding-bottom:56.25%;height:0;">
<object style="position:absolute; top:0; left:0;width:100%;height:100%;">
<param name="movie" value="https://www.youtube.com/v/{IDENTIFIER}&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="https://www.youtube.com/v/{IDENTIFIER}&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"  style="position:absolute; top:0; left:0;">
</embed>
</object>
</div>
</div>
It is working fine on all browsers except apple/safari. The video is playing but the size is not filling up the div in which it is located. Screen shot attached. Help Appreciated.
Attachments
embed.png
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72343
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Viewing Embedded Youtube Videos in Safari

Post by KevC »

Why not just use the media extension? No codes needed and auto embeds lots of other media as well straight from the link

https://www.phpbb.com/customise/db/exte ... ediaembed/
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
k.haroon
Registered User
Posts: 55
Joined: Wed Sep 19, 2018 8:11 am

Re: Viewing Embedded Youtube Videos in Safari

Post by k.haroon »

Never knew about it. Thanks will try that :)
k.haroon
Registered User
Posts: 55
Joined: Wed Sep 19, 2018 8:11 am

Re: Viewing Embedded Youtube Videos in Safari

Post by k.haroon »

Not working in any device. Snapshot attached:
Attachments
media.png
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

Re: Viewing Embedded Youtube Videos in Safari

Post by Mick »

To receive extension support please visit our Extensions Database and post in the specific extension's designated support area. The link to the support area for each released extension is also available in the first post of each released extension listed in the [3.2.x] Extension Database Releases forum. For extensions still in development (not recommended for a live board) support is in that extensions's topic in the Extensions in Development forum.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
k.haroon
Registered User
Posts: 55
Joined: Wed Sep 19, 2018 8:11 am

Re: Viewing Embedded Youtube Videos in Safari

Post by k.haroon »

Working now. Found the youtube extension checked off probably due to a conflict with my own youtube bbcode. Thanks a lot for the help, I wish I knew this before :)
Post Reply

Return to “[3.2.x] Support Forum”