Link Url youtube broken

Jul 1, 2014 at 2:44 PM
Hy, I open new Discussion because i see that the problem is not signature, signature in link si there but link don't go.
I found more and more link, i think that it could be possible cause is advertaising in youtube video but maybe it's wrong.
Can help me please?
Thank you

one link for example is
https://www.youtube.com/watch?v=kPsd2XaBKzc
Coordinator
Jul 1, 2014 at 3:19 PM
Just enhanced my unit tests and they work flawlessly:
    [DataTestMethod]
    [DataRow("kYQ8w7kxdDk")]
    [DataRow("J3UjJ4wKLkg")]
    [DataRow("93GuC1dMkxc")]
    [DataRow("O-zpOMYRi0w")]
    [DataRow("JF8BRvqGCNs")]
    [DataRow("kPsd2XaBKzc")]
    [DataRow("Otx7FEINUds")]
    [DataRow("TGtWWb9emYI")]
    [DataRow("7-7knsP2n5w")]
    public async Task When_loading_video_then_uri_it_should_be_available(string youTubeId)
    {
        //// Act
        var uri = await YouTube.GetVideoUriAsync(youTubeId, YouTubeQuality.Quality360P, YouTubeQuality.Quality2160P);

        //// Assert
        Assert.IsNotNull(uri);
        Assert.IsTrue(uri.HasAudio);
        Assert.IsTrue(uri.HasVideo);
    }
I'm testing in Switzerland. Are these unit tests successful on your machine? (Checkout https://xp-dev.com/svn/mytoolkit)
Jul 1, 2014 at 3:31 PM
Thank you very much for your answer, i test in italy, the problem that i have is the link answered by
YouTube.GetVideoUriAsync(youTubeId, YouTubeQuality.Quality360P, YouTubeQuality.Quality2160P);
doesn't work.

The test solved also me but the link that result is:

http://r2---sn-hpa7ln7s.googlevideo.com/videoplayback?sparams=gcr,id,ip,ipbits,itag,ratebypass,source,upn,expire&mws=yes&mv=m&ratebypass=yes&id=o-ACZbLqcTnZr3RH2Ntqh__fGWdnLskr0yI9hGneSXhOtK&ms=au&gcr=it&source=youtube&mt=1404228014&sver=3&expire=1404252000&key=yt5&ip=XX.XX.XXX.XXX&fexp=902408,907255,917000,924213,924217,924222,927845,930008,934024,934030,937820,941361,945824&upn=0kgiOgSMc2g&itag=18&ipbits=0&signature=8CA95E5D18C8CD5EF070A149BF99EA2C2F23144AC.179AF0D674B1B337836E68A47124B6FEC3A9D2849849

PS: change ip :)

and for my pc and my phone doesnt' work? at your station working this link ? i found now

PS2: sorry i send a mail just before i see your answer :)
Coordinator
Jul 1, 2014 at 3:37 PM
Nope, does not work.. But i think the generated url is bound to the ip address and cannot be exchanged... Ill do more tests...
Jul 1, 2014 at 3:45 PM
Yes it'probable but if you launch your test you found link associated with your ip. I stay tuned for new information and thank you very much for help :)
Coordinator
Jul 1, 2014 at 3:46 PM
Ok, just updated the unit test to check whether the uri is valid. Can you run this unit test (may take some minutes)? It is working in my network...
Jul 1, 2014 at 4:16 PM
Cerntainly but i don't know where is source code, i try to bring it in label "sourcecode" but i don't found nothin else that a file.
Also i'm sure that link retryvied by YouTube.GetVideoUriAsync(kPsd2XaBKzc, YouTubeQuality.Quality360P, YouTubeQuality.Quality2160P) in my case doesn't work, and i found more, but other work perfect and it's the same code. If you told me that link in your station work really it's must depend by state but it' s very strange cause some day ago this link go perfect and now doesn't
I think that it's depende by advertaising but if in your sistem link go i don't know
Jul 1, 2014 at 4:18 PM
ok i found it here
https://xp-dev.com/svn/mytoolkit i try
Jul 1, 2014 at 4:48 PM
Edited Jul 1, 2014 at 4:49 PM
Test method MyToolkit.Tests.Multimedia.YouTubeTests.When_loading_video_then_uri_it_should_be_available threw exception:
MyToolkit.Networking.HttpStatusException: HTTP error 'Forbidden'

arg.. it' real that in my country i can't see this video? and more over ? also how other program show the same link ??
have you an idea different by passyng on a proxy to solve for me this problem ?
thank you very much
Coordinator
Jul 1, 2014 at 4:52 PM
Interesting, the good thing is: My unit test work because on my machine they have no problem and you have a forbidden exception... The videos are working in the browser?
Jul 1, 2014 at 5:10 PM
yes, if i try to see the link in internet explorer browser on my phone it's work perfect