Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Vevo video and some others. #35

Closed
iancona opened this issue Dec 18, 2015 · 28 comments
Closed

Issue with Vevo video and some others. #35

iancona opened this issue Dec 18, 2015 · 28 comments
Labels

Comments

@iancona
Copy link

iancona commented Dec 18, 2015

No description provided.

@uponatime2019
Copy link

same problem, may be youtube change their website source code again

@Vinquer
Copy link

Vinquer commented Dec 22, 2015

Same issue here, since the end of November approximately (just to raise the number of persons concerned).
No error returned but impossible to get a working url on some videos using "YouTube.GetVideoUriAsync" (Vevo mainly)

@RicoSuter
Copy link
Owner

Can you post some video IDs?

@Vinquer
Copy link

Vinquer commented Dec 22, 2015

@mjdavy
Copy link

mjdavy commented Dec 29, 2015

Looks like YouTube.GetVideoUriAsync is returning an invalid Uri for some videos, including everything I tried from vevo. Check out this playlist for testing https://www.youtube.com/playlist?list=PLtZ7tJkCfjGyPcROkcYAKdeIDXC3aZ9Uw

Numbers 1,9 and 38 work for me. the others do not. They were all working right before Christmas

@rajeshkomatlapalli
Copy link

Some Videos from Youtube Viveo are not playing using the MyToolkit.Multimedia.YouTube.GetVideoUriAsync(YoutubeID,MyToolkit.Multimedia.YouTubeQuality.Quality480P);

I installed MyToolkit & MyToolKit.Extended from Nuget Pckg Mgr. and i used this for playing videos from youtube on my Windows 8.1 Universal app and Windows 10 Universal app

For Exp: this url worked before 25th Dec "https://www.youtube.com/watch?v=D4sTViBfjVE" (Not VEVO ID) ,but the same url is not working today..

Some urls from youtube are working fine,
Any modifications in the code to be done, please help.

@mjdavy
Copy link

mjdavy commented Jan 1, 2016

A little more info. Since Christmas, I'm getting http status code "Forbidden" on vevo videos using the Uri returned from GetVideoUriAsync. For example this vevo video id "fRh_vgS2dFE" generates a Uri that results in "Forbidden", but video id "RqQGUJK7Na4" (not vevo) returns success.

@Breakthru001
Copy link

I am having this problem too with all the Youtube links that I try. Using Mytoolkit 2.5.8. Loading the video to a .Net MediaElement.

This is a link to a video. It has always worked in the past with no problems. Last tested in December.
http://www.youtube.com/watch?v=JT8zLTaKxeE

This is the link returned by Mytoolkit.
https://r9---sn-ab5l6nez.googlevideo.com/videoplayback?signature=A4BB60F1332AC137AA136EEB4F762A74500D3C4C.D980C80E80C2DF9BBC2CFD91D3AA81B6AF90449B&ratebypass=yes&sparams=dur,gcr,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,ratebypass,requiressl,source,upn,expire&itag=18&key=yt6&pl=31&mime=video/mp4&source=youtube&sver=3&expire=1452543490&upn=OojkOrr4rkU&lmt=1402151308583869&gcr=us&fexp=9408494,9416074,9416126,9417206,9418203,9419452,9420452,9421931,9422517,9422596,9422671,9422781,9423662,9423846,9424388,9425710,9425746&id=o-AP7QFV643Jx_CVAUUqLYXD9ear9fozjDu68jaOBVxPZc&mn=sn-ab5l6nez&mm=31&ipbits=0&initcwndbps=1947500&ip=2601:192:102:8847:80a8:d21d:371:f188&ms=au&mt=1452521792&dur=268.469&mv=m&requiressl=yes

error message from the .Net MediaElement is not very helpful.
Void OpenMedia(System.Uri)... Object reference not set to an instance of an object.... ... at System.Windows.Media.MediaPlayerState.OpenMedia(Uri source)

PS. Thanks for the Mytoolkit libraries. Awesome work.

@mjdavy
Copy link

mjdavy commented Jan 11, 2016

I ended up switching to a modified version of YouTube Extractor. I ported it to work with Universal Windows Apps and added async support. I have not yet had time to submit a pull request to the owner, but meanwhile if you want to go this route and use my mods, you can find them here: https://github.com/mjdavy/TopTastic.net/tree/master/TopTastic in the YouTubeExtractor folder. All videos now work for me.

@Breakthru001
Copy link

@mjdavy ,
Thanks for that link. I'll take a look.

@Englbach
Copy link

I'm having this problem too. Please fix it

@wisien92
Copy link

Up - same problem

@RicoSuter
Copy link
Owner

I just used the same YouTubeExtractor code to fix the lib, check out v2.5.10 or directly use YouTubeExtractor. Thx @mjdavy
Just try again v2.5.10 and report if a video is still not working..

@Breakthru001
Copy link

The v2.5.10 fix did not work for me. Did anyone else try it ? Please let us know if it works for you or not.

@RicoSuter
Copy link
Owner

What youtube IDs have you tested with?

@Breakthru001
Copy link

This on always used to work. But not with v2.5.10 fix .
http://www.youtube.com/watch?v=JT8zLTaKxeE

@Englbach
Copy link

Cound not play video on vevo.

@RicoSuter
Copy link
Owner

@SmokinLeather works for me in Switzerland. In what country are you trying to play the video?

@Breakthru001
Copy link

@RSuter , I'm in the United States. Hmm. Maybe it's my app. I'll do some more testing to see what Mtoolkit is returning for a video link. Thanks.

@RicoSuter RicoSuter reopened this Jan 20, 2016
@RicoSuter
Copy link
Owner

The simplest way is to download the sources and run these unit tests:

https://github.com/MyToolkit/MyToolkit/blob/master/src/MyToolkit.Tests.WinRT/Multimedia/YouTubeTests.cs

@wisien92
Copy link

vevo vids working for me in 2.5.10, I'll investigate it further

@Breakthru001
Copy link

I am wondering if this is a problem where the .Net MediaElement cannot handle HTTPS links.

I found this bug report on this issue and the .Net Dev team closed it saying it will not fix it.
https://connect.microsoft.com/VisualStudio/feedback/details/934355/in-a-wpf-standalone-application-exe-when-the-source-of-a-mediaelement-is-set-to-a-https-uri-it-throws-a-nullreferenceexception

Is there a way to request HTTP (ie not HTTPS) links from MyToolkit? Does YouTube now require HTTPS?

@Breakthru001
Copy link

@rajeshkomatlapalli
Copy link

Thanks for the update, It is working for me, for all Video IDs
@rico Suter

@Vinquer
Copy link

Vinquer commented Jan 22, 2016

Working for me too with 2.5.10
Thanks a lot !

@RicoSuter
Copy link
Owner

Have you tried to just replace https with http?

@mediaexplorer74
Copy link

mediaexplorer74 commented Sep 21, 2023

replace https with http?

Hello from 2023 year. I tried v 2.5.16 today. That (this) bug returned when I tried both https & http cases :(

Maybe, useragent obsolete... idk.

Update: I experimented https->http at my own code...
Maybe, you mean
public static async Task<YouTubeUri[]> GetUrisAsync(string youTubeId, CancellationToken token)
function in MyToolkit.Extented project ?
I'll try to download your MyToolkit src code....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants