Page 1 of 1

You Tube Video Settings require Default Option

Posted: 26 Aug 2013, 09:54
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

Re: You Tube Video Settings require Default Option

Posted: 28 Aug 2013, 22:55
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>

Re: You Tube Video Settings require Default Option

Posted: 29 Aug 2013, 16:22
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

Re: You Tube Video Settings require Default Option

Posted: 29 Aug 2013, 22:38
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

Re: You Tube Video Settings require Default Option

Posted: 03 Sep 2013, 17:18
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:

Re: You Tube Video Settings require Default Option

Posted: 07 Sep 2013, 19:35
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

Re: You Tube Video Settings require Default Option

Posted: 19 Sep 2013, 15:34
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