Hello All,

I have been trying getting this to work but I dunnu where the problem is exactly, I'm using Drupal 7.15, File Identity, Media and Media Internet Sources versions are all 7.x-1.2, Media: YouTube version is 7.x-1.0-beta3+4-dev .

When I try to embed a normal youtube video using the File as a field type or Media Asset and widget type is: Media file selector it works just fine and the video is being loaded and embedded correctly.

The thing that is strange is when I try to embed an online stream, whether using the new or old youtube embeds or using the video URL, it doesn't work, it gives me youtube's default image, which is actually the default image for the video - using http://img.youtube.com/vi/VIDEOID - and when trying to load it manually, it doesn't work. It just stays trying to load but nothing happens.

Did anyone got this issue before?!
Note: I have tested it with drupal 6, and the apropriate modules and it worked just fine for both normal and live stream videos.


RobW’s picture

Interesting. Have you tested with 7.x-2.x?

ibrahim.mohamed’s picture

Yup, I have tested it with almost every version. The only one worked is was Drupal 6.

RobW’s picture

Can you give me an example URL of a livestream video? It's probably a regex issue -- the regex for validation was completely rewritten between 6.x and 7.x.

ibrahim.mohamed’s picture

Thanks a lot for your interest, you can use the following for example,

Thanks in Advance!

ibrahim.mohamed’s picture

Strangely the one I sent above will work, but this one doesn't: http://www.youtube.com/watch?v=sOa0OGlc5jM

One thing to mention, this is an arabic channel but the one sent above is not.

I'm really confused now!

ibrahim.mohamed’s picture

Title: Live Stream Videos doesn't work but Normal Video do! » Not all live stream videos work normally
Version: 7.x-1.x-dev » 7.x-2.0-rc1

First, I have changed the working versions to Media 7.x-2.0-unstable6 and Media:Youtube 7.x-2.0-rc1.

I have been testing it with misc streams, some work normally and a lot doesn't, so we need to change the name of this issue first.

The LIVE Sandy Huricane coverage for example: http://www.youtube.com/watch?v=yXMU2qwCVag work as expected and fetches the thumbnail correctly and the stream works just fine.

Hajj Live stream at: http://www.youtube.com/watch?v=DEZ9pOZ3Urk doesn't fetch the thumbnail but, the stream works just fine.

This one: www.youtube.com/watch?v=RzcUlhEOilc fetches the thumbnail correctly but the stream doesn't work at all.

and for this one: http://www.youtube.com/watch?v=sOa0OGlc5jM neither the stream nor the thumbnail works at all!

I'm using the URL in the Web tab in the media browser.

ibrahim.mohamed’s picture

Status: Active » Needs review

Hello, I have just enabled "Use privacy enhanced (no cookie) mode" from Structure > File Types > Video > Manage File Display and all types of live streams worked just fine.

Hope this helps.

aaron’s picture

Status: Needs review » Active

First, I am changing the status of this back to active, because there is no code yet to review.

Secondly, after testing all of the Youtube links given in this issue, they are all either giving an error when you view the link on youtube or are private videos or the live stream has ended. I believe that in none of these cases will we get anything reasonable to work with from Youtube.