Resolving streaming media links that are masked!?
Moderator: General Moderators
Resolving streaming media links that are masked!?
I'm currently coding a script to get links from web sites, and there are often streaming video/media sites it comes across where it can't get the actual links of where the streaming video is really coming from. For example (and there are plenty of sites where i have this problem on), the site http://tv-links.co.uk/listings/2/141 or http://tv-links.co.uk/video/2/141/370/4956/8716 uses some method to mask the links of where the streaming video is really coming from, there is no place in the source of the pages that tells where the video is really coming from. That site tv-links hosts no media (along with all the other hundreds of sites i'm having problems with), so don't be fooled by their links. I have a program called httpwatch that works in conjunction with internet explorer and it can resolve the exact link of where the video really comes from but that of course has nothing to do with PHP, but atleast I know it can be done. I'm stumped as to where to start coding in PHP to get the links or if it's even possible. Any help or useful info of any kind would be very much appreciated.
Re: Resolving streaming media links that are masked!?
Timo wrote:http://tv-links.co.uk/video/2/141/370/4956/8716 uses some method to mask the links of where the streaming video is really coming from, there is no place in the source of the pages that tells where the video is really coming from.
http://tv-links.co.uk/video/1/6920/11063/68703/96273 wrote:<param name="flashvars" value="config={videoFile: 'http://www1.tv-links.co.uk/video/1/6920 ... 372f55d7e0', initialScale:
Volka, that link IS NOT I REPEAT IS NOT where the video is actually streaming from... sheesh
Code: Select all
http://www1.tv-links.co.uk/video/1/6920/11063/68703/96273/once/f5e27ded35b7b2f848d128d2b3b560372f55d7e0Im sure it works fine for you as it works fine for me if I go to that link, but that doesn't change the fact that it IS NOT streaming from that link... it's streaming from a different location that has NOTHING to do with tv-links AT ALL... all videos linked to on that site are hosted on tudou.com or youtube etc etc and what have you... I've been using httpwatch (httpwatch.com) and fiddler2 (fiddlertool.com) which will actually tell me the exact link of where the videos are REALLY streaming from... but I want to do the same thing in PHP with code I write, not using those programs.volka wrote:Hm, works fine for me. You will get a "normal" http redirect when requesting that url.
p.s. Since they've implemented that kind of "security" to prevent direct downloads you're probably not allowed to do so.
What do you mean "allowed"? I'm trying to get links to things that are already on the net, it's not like that is illegal... I can already get the links, just not with PHP... I'm trying to learn here, not do something that I'm not allowed. The videos I'm trying trying to get the links to are hosted on youtube, metacafe, tudou etc etc... I'm just trying to get the exact links the videos stream from instead of the generic tv-links links.