Phoca Gallery Customised You Tube Video Player Parameters

Phoca Gallery - image gallery extension
Robbie8
Phoca Member
Phoca Member
Posts: 27
Joined: 28 Jul 2012, 16:25

Phoca Gallery Customised You Tube Video Player Parameters

Post by Robbie8 »

Hi,
I am having to set a Video Code to change the setup of the You Tube Player in my site

Could you please review the player parameters I have posted below and advise me if there are any recommended improvements I could use as when I play the video through my gallery, it plays for a little, then has a pause for a second or so and then starts again - this doesn't happen if I don't set these changes, or if I access directly in You Tube.

--
<object width="850" height="600">
<param name="movie"
value="http://www.youtube.com/v/DNd3IpfoMvQ&
hl=en&rel=0&color1=0x006699&color2=0x54abd6"></param>
<param name="wmode" value="direct"></param>
<embed src="http://www.youtube.com/v/DNd3IpfoMvQ&
hl=en&rel=0&color1=0x006699&color2=0x54abd6"
type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="direct" quality="autohigh"
width="850" height="600"></embed>
</object>
--

I appreciate any advice someone can give me.

Thanks

Rob. :x
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Customised You Tube Video Player Parameter

Post by Jan »

Hi, I think, this is more a question on YouTube developers then on this forum, I don't know every parameter which can be set for YouTube, so for now I have no clue advice for this :-(
If you find Phoca extensions useful, please support the project
Robbie8
Phoca Member
Phoca Member
Posts: 27
Joined: 28 Jul 2012, 16:25

Re: Phoca Gallery Customised You Tube Video Player Parameter

Post by Robbie8 »

Hi Jan,
I have been working on this using updates on the developers.google.com site and it recommends that iframe is used instead of object.

It explicitly states
"Best practice: IFrame embeds are the recommended method for embedding a YouTube player because the IFrame will select the appropriate player based on the client's capabilities and available YouTube file formats."
I believe IFrame will also be good for HTML5 when it is fully supported for all browers.

I have changed the entries in the Video Code to

"<iframe type="text/html" width="850" height="600"
src="http://www.youtube.com/embed/DNd3IpfoMv ... ebsite.com"
frameborder="0"
</iframe>

The reference point is

https://developers.google.com/youtube/player_parameters

I still appear to get the same jerky playing on many browsers - ironically _ _ is perfect, but Firefox and IE8 experience this behaviour. I am continuing to look for options, but the iframe settings may be something you consider reviewing?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Customised You Tube Video Player Parameter

Post by Jan »

Hi, unfortunately, the iframe is the same, in iframe you just load external site and everything in iframe is managed by the external site, so in Phoca Gallery you have no tool to somehow influence it :-(

Jan
If you find Phoca extensions useful, please support the project
Robbie8
Phoca Member
Phoca Member
Posts: 27
Joined: 28 Jul 2012, 16:25

Re: Phoca Gallery Customised You Tube Video Player Parameter

Post by Robbie8 »

Jan,
I think you may have misunderstood my last point, my reference to consideration was referring to potentially changing the documentation for iframe instead of object.

Rob
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Customised You Tube Video Player Parameter

Post by Jan »

Aha, ok, thank you for the guide.
Updated: https://www.phoca.cz/documents/2-phoca-g ... ube-videos

Jan
If you find Phoca extensions useful, please support the project
Robbie8
Phoca Member
Phoca Member
Posts: 27
Joined: 28 Jul 2012, 16:25

Re: Phoca Gallery Customised You Tube Video Player Parameter

Post by Robbie8 »

Jan - thanks for your help
Post Reply