You Tube Video Settings require Default Option

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

You Tube Video Settings require Default Option

Post by Robbie8 »

Hi,
I am using the You Tube Video Upload facility to attach You Tube Videos into a category in my site. My issue is that I want the Video to run in a player box which is a little larger than the standard You Tube size.

As per the documentation, the only way I have been able to increase the size of the player is to

i) Upload the Video using the URL e.g. http://youtu.be/DNd3IpfoMvQ
ii) Then go into the Images entry in the Joomla Backend Phoca Gallery section and add change the Video code section to be

<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>

---

As you can imagine, this is a very difficult and time consuming action, as I have to manually change the unique reference (the code I have shown as bold) for every video.

This also means that I cannot get my users to add You Tube Videos in the Front End, because if I do they will use the defaults.

Is there a way to set the Video code as a Default (either in the Options of Category Level), so every video link uses it, or is there any other way to achieve the same result any other way?

I can't see a way to do this now, so I suspect that this doesn't exist but could this be added to the Roadmap for the future as I believe it makes it much easier to manage customised video player views in the site, whilst maintaining end user control.

Thanks

Rob :x
Robbie8
Phoca Member
Phoca Member
Posts: 27
Joined: 28 Jul 2012, 16:25

Re: You Tube Video Settings require Default Option

Post by Robbie8 »

One minor change - I've changed by Video code to use IFrame instead of Object, as below, but the question still remains

<iframe type="text/html" width="850" height="600"
src="http://www.youtube.com/embed/DNd3IpfoMvQ?autoplay=1&origin=http://mywebsite.com"
frameborder="0"
</iframe>
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: You Tube Video Settings require Default Option

Post by Jan »

Hi, all this depends on YouTube - if you ask YouTube for playing video easy way, you get the video but with standard settings. If you need other settings, there is no easy way to ask the video - you need to add it per parameters in the component or if you know you will use it for more videos, then you need to customize directly php code and add some specific behaviour to ask for the videos with specific settings :idea:

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: You Tube Video Settings require Default Option

Post by Robbie8 »

So Jan, how would the php code be changed to add it to substitute the parameters around the Video ID?

I am not a php programmer, so I would't know how to achieve this.

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

Re: You Tube Video Settings require Default Option

Post by Jan »

Hi, not sure what you mean now, there is no php for chaning it, all this is done in the html code (e.g. the iframe) :idea:
If you find Phoca extensions useful, please support the project
Robbie8
Phoca Member
Phoca Member
Posts: 27
Joined: 28 Jul 2012, 16:25

Re: You Tube Video Settings require Default Option

Post by Robbie8 »

Jan,
Apologies I should have just have said, how can we change the code (php or html or whatever it is)

I want to be able to just upload the video in the front end, then when I click on the video in the category image view, the video popup is loaded using the
iframe parameters - without having to have changed the video parameters in each video (which is quite significant).

What you are saying is that these parameters will somehow be stored in the HTML, and thats what I am looking for

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

Re: You Tube Video Settings require Default Option

Post by Jan »

There are more ways to achieve it:

a) letting users upload (add) whole html code (can be security problem) and store it in database (must be customized as the frontend now only work with the link
b) letting users add a link and then translate it with php and store it (the same, such needs to be customized) :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply