Shared media field strips Youtube parameter

More
6 years 9 months ago #71890 by tobajarrat
Hi @ all,

I have a shared media field for youtube videos.

When i fetch an url like the one below (embed url + some player paramenters)
embed URL
Code:
https://www.youtube.com/embed/M7lc1UVf-VE
Parameter
Code:
?autoplay=1&controls=0&fs=0&rel=0&showinfo=0

it will change the url to this parameter
Code:
?feature=oembed?autoplay=1
also note the second questionmark which should be an ampersand

Tried also with google API key, url becomes this
Code:
?autoplay=0&rel=0&modestbranding=1&maxwidth=0&modestbranding=1

Im using latest joomla and latest Flexicontent

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

More
6 years 9 months ago #71893 by ggppdk
Hello

- about ?autoplay= instead of and &autoplay= i have made a fix

- about &modestbranding=1 showing twice also fixed


about your issue with entering an embeed URL directly

explanation

the code assumes that you are enter any youtube URL
so the code parse it and tries to create an embeed URL for you

probably we should detect if the given URL is already and embeed URL and try to use it
currently the embed URL is created by field's code

but i am not sure if the above will create some issues, in the case that user adds player settings
e.g. imagine that you have non-privileged users adding these URLs

they could do customizations


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
6 years 9 months ago #71894 by tobajarrat
Hi,

my suggestion would be to add a field setting..
accept "raw" URL adding

Im using latest joomla and latest Flexicontent

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

More
6 years 9 months ago #71895 by ggppdk
Hello

i was just looking on this thread and thinking to do exactly what you suggested

- just it should not be the default setting,

we cannot have simple editor users, adding customized embeeding display

will add but by default it will be off

it is really little work, and it makes sense to have it,
will do it next week, and you can test it
just open an issue at github for it

github.com/FLEXIcontent/flexicontent-cck/issues


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.438 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline