Shared media field strips Youtube parameter

8 months 4 days 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
https://www.youtube.com/embed/M7lc1UVf-VE
Parameter
?autoplay=1&controls=0&fs=0&rel=0&showinfo=0

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

Tried also with google API key, url becomes this
?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.

8 months 3 days 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 review. Thanks!

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

8 months 3 days 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.

8 months 3 days 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

https://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 review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.