SeeingBlue
Newbie
- May 9, 2011
- 1
- 0
I have a .NET application that plays Youtube videos. For that to work I had to hard code a referer and loaded the /embed/ version of the video. That worked on just about all videos until about a month ago.
Now any /embed/ videos do not load at all. The player just shows a black screen like it's not loading flash, but if I switch the video URL from /embed/ to /v/ instead, it plays videos again, but it's not bypassing the playback restrictions placed on VEVO, UMG, etc.. videos.
I have added a user-agent, thinking that was it but still not bypassing restriction like before.
This is what I was using before:
This is what I am trying to use now:
Like I said, it's playing videos again, but anyone know how I can continue to bypass playback restrictions?
Now any /embed/ videos do not load at all. The player just shows a black screen like it's not loading flash, but if I switch the video URL from /embed/ to /v/ instead, it plays videos again, but it's not bypassing the playback restrictions placed on VEVO, UMG, etc.. videos.
I have added a user-agent, thinking that was it but still not bypassing restriction like before.
This is what I was using before:
Code:
wbYouTube.Navigate("https://www.youtube.com/embed/" & CurSngPlaying.ID & "?autoplay=1&start=" & Math.Round(time.TotalSeconds, 0), "", Nothing, "Referer: https://www.youtube.com/")
This is what I am trying to use now:
Code:
wbYouTube.Navigate("http://www.youtube.com/v/" & CurSngPlaying.ID & "?autoplay=1&start=" & Math.Round(time.TotalSeconds, 0), "" , Nothing, "Referer: https://www.youtube.com/" & vbCrLf & "User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) Version/10.0 Mobile/14D27 Safari/602.1")