Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The module had been working fine for a while, until just a few days ago. It will accept other providers, but not YouTube, when I get the following error message: You have specified an invalid media URL or embed code.
Thanks in advance
Comment | File | Size | Author |
---|---|---|---|
#21 | media_youtube.patch | 647 bytes | shacky7 |
Comments
Comment #1
EmpireNM CreditAttribution: EmpireNM commentedI also tried upgrading to 6.x-2.4, and 6.x-2.x-dev but I still get the same error.
Thanks in advance for any assistance.
Comment #2
EmpireNM CreditAttribution: EmpireNM commentedI was wondering if it would be an HTML5 issue. So after a closer look, I see that the embed code options on YouTube now feature a checkbox to "Use old embed code".
thanks
Comment #3
kevinwalsh CreditAttribution: kevinwalsh commentedI can confirm this on 6.x-2.4. This was the case with Vimeo a few months ago, now Youtube has joined the "use old embed code" party.
Comment #4
liquidcms CreditAttribution: liquidcms commentedi think if you select the Long Link option it still works.
Comment #5
liquidcms CreditAttribution: liquidcms commentedLong Link worked last week; but no longer.
up-revving version and priority.. module seems busted at moment at least with YouTube.
Comment #6
liquidcms CreditAttribution: liquidcms commentedtried back revving to 2.3.. still busted. gone back to 1.26 - that works. :)
Comment #7
SteveK CreditAttribution: SteveK commentedAlso having this issue, specifically with YouTube videos. I'm assuming this is a change with YouTubes URL and embed code.
Comment #8
jhofer CreditAttribution: jhofer commentedAlso having this problem... even with the latest dev version... is there a cache that needs to be cleared for it to work? I've installed the Youtube and Vimeo modules but only Vimeo is shown where it says:
Enter the URL or Embed Code here. The embedded third party content will be parsed and displayed appropriately from this.
The following services are provided: Vimeo
Comment #9
jhofer CreditAttribution: jhofer commentedAlso - are we supposed to use the video's url or the embed code... noticing that the embed code is much smaller than before.
Comment #10
ptsai CreditAttribution: ptsai commentedAlso having this problem.
Comment #11
stephanieshea CreditAttribution: stephanieshea commentedhaving same problem...
Comment #12
ptsai CreditAttribution: ptsai commented@SteveK @stephaniechausse @jhofer how are you dealing with this issue? @liquidcms have you experienced any issues with going back to 1.26? Any patches out there I'm not finding?
thanks.
Comment #13
coolhandlukek2 CreditAttribution: coolhandlukek2 commentedSubscribe - Same problem with the youtube iframe here
Comment #14
wfx CreditAttribution: wfx commentedsame issue here - subscribe
Comment #15
jhofer CreditAttribution: jhofer commentedTry removing all other providers.
I found that by backing out my other provider (Vimeo) Youtube is now working. This is okay since we are working with a small group of content providers who all want to use Youtube anyway. Could be a problem for sites that wish to source from multiple 3rd party video content providers.
Comment #16
truyenle CreditAttribution: truyenle commented+subscribe
Comment #17
Roze-1 CreditAttribution: Roze-1 commentedSubscribing !
Comment #18
pnkflydgr CreditAttribution: pnkflydgr commentedSubscribing
Comment #19
gawlowski CreditAttribution: gawlowski commentedMay be it's stupid question. Have You installed the media_youtube?
Works fine for me with - 6.x-2.5 (media_youtube 6.x-1.3).
Comment #20
unc0nnected CreditAttribution: unc0nnected commentedUsing the old embed code worked for me
Comment #21
shacky7 CreditAttribution: shacky7 commentedFixed, patch attached.
Some urls like:
http://www.youtube.com/watch?feature=player_embedded&v=gBZnPM27gK8#!
failed regex because it required v= to be first argument. Now it works fine.
Comment #22
crosshairs CreditAttribution: crosshairs commentedI'm experiencing the same problem described above, ie the embedded media field accepts Vimeo links but not embed codes from YouTube (tried both old and new format). I get the message:
and as in #8:
Using emfield 6.x-2.5 and Media: YouTube 6.x-1.3. Edit: Have also tried with latest dev of Media:YouTube (6.x-1.x-dev).
I've allowed content from both Vimeo and YouTube at admin/content/emfield/emvideo
I've tried applying the patch in a dev environment. I get the following result and no change to the issue:
Any thoughts?
Comment #23
elnucli CreditAttribution: elnucli commentedSubscribing
Comment #24
crosshairs CreditAttribution: crosshairs commentedUpgrading to latest dev of emfield (6.x-2.x-dev) and Media: YouTube fixed the issue. Edit: Also, check that in your content type's video field, under 'Manage Fields > Video Settings > Providers Supported'. that you have selected for all/both providers to be supported. I sheepishly discovered I had overlooked this setting.
Comment #25
torafat CreditAttribution: torafat commentednot solve - You have specified an invalid media URL or embed code.
Comment #26
dyke it CreditAttribution: dyke it commentedthe problem for me seems to be when the link is of the form "http://youtu.be/vCifjbni0LM" rather than the direct youtube link or embed code (which work fine). this is the format youtube provides when you click the share button on a video, which means that users will likely encounter the error.
Comment #27
a.d2000 CreditAttribution: a.d2000 commentedCan I add any custom URL without knowing Provider like if my audio files are hosted on Kickapps or somewhere else and I want to give direct url as below :
http://media.kickstatic.com/kickapps/03383.mp3
Is that work with this module ? It is not working for me right now. I have added one Embedded Audio field into my content type.
Giving me error : You have specified an invalid media URL or embed code.
anyone can help here ?
Comment #28
indydas CreditAttribution: indydas commentedInstalling the media_youtube module fixed it for me as pointed out in http://drupal.org/node/1041652#comment-5070808.
This means I can use embed code too now. :)
Comment #29
truyenle CreditAttribution: truyenle commentedYeah, intall media_youtube work for me too.
But there is another issue. I set the display of embedded video field to Shadowbox: Image Thumbnail -> Full Size Video. The video seem to play ok on pc, mac, android, but not on IPAD, IPHONE, IPOD.
On these apple mobile device, it open the thumbnail image in the shadowbox and need user to do one more touch then it go to the same thumbnail in youtube. From there, user need to do one more click to open video in youtube not in the shadowbox of my site anymore.
This behavior doens't happen in other devices like pc, mac, android phones. android tablet.
Comment #30
bharathkumarkn CreditAttribution: bharathkumarkn commentedI have the same problem in embeding slideshare videos. I get the same msg
"You have specified an invalid media URL or embed code"". Need Help..
Comment #31
zeuscool CreditAttribution: zeuscool commentedinstalling media_youtube worked just fine, thanks
Comment #32
drupal3013 CreditAttribution: drupal3013 commentedi have the same error message
You have specified an invalid media URL or embed code.
with blip.tv , myspace, Ku6, Livestream, myvi.ru, sevenload, spike TV, TED, tube.ua, TVBrussel, UStream.TV.
Comment #33
Katharine_Gates CreditAttribution: Katharine_Gates commentedHello I finally solved this problem by:
1) enabling the appropriate video submodule, i.e. Media:YouTube
2) making sure that the link was in the form http://www.youtube.com/watch?v=oWv7Bc6CtAI.