NOTICE: URL's are porn .
Hey,
I'm working on a php project right now (extracting videos) but got the following (weird) problem:
If you watch a video on pornhub,and 'Inspect Element' (FF) on the videoplayer you get:
<object style="visibility: visible;" id="playerDiv_1" data="http://cdn1.static.pornhub.phncdn.com/flash/player2012.swf?cache=2012090502" type="application/x-shockwave-flash" height="481" width="608">
<param value="true" name="allowfullscreen">
<param value="opaque" name="wmode">
<param value="always" name="allowscriptaccess">
<param value="pauseroll_url=http%3A%2F%2Fads.genericlink.com%2Fads%2Fsite%2Fpauseroll%2Fpornhub%2Fph_pauseroll.php&autoplay=true&autoreplay=false&video_unavailable=&link_url=http%3A%2F%2Fwww.pornhub.com%2Fview_video.php%3Fviewkey%3D9b7ba64f1023c182cb10&image_url=http%3A%2F%2Fcdn2.image.pornhub.phncdn.com%2Fthumbs%2F000%2F104%2F957%2Fmain.jpg%3Fcache%3D4348973&video_title=2+amazing%2C+tight+twins+get+rammed+by+2+cocks&related_url=http%3A%2F%2Fwww.pornhub.com%2Fvideo%2Fplayer_related_datas%3Fid%3D104957&video_url=http%3A%2F%2Fcdn1b.video.pornhub.phncdn.com%2Fvideos%2F000%2F104%2F957%2F104957.flv%3Frs%3D125%26ri%3D600%26s%3D1347009852%26e%3D1347011652%26h%3D79d5e6bd272298ba5938efb13a8cb3a2&toprated_url=http%3A%2F%2Fwww.pornhub.com%2Fvideo%3Fo%3Dtr%26t%3Dm&mostviewed_url=http%3A%2F%2Fwww.pornhub.com%2Fvideo%3Fo%3Dmv%26t%3Dm&options=show&postroll_url=http%3A%2F%2Fads.genericlink.com%2Fads%2Fsite%2Fpostroll%2Fpornhub%2Fph_postroll.php" name="flashvars">
</object>
But if you look at the sourcecode of the page,the upper code is replaced by:
<div id="playerDiv_1">
<div class="no-flash-js">
<div id="underplayer">
<noscript>
<div id="playerfail-nojs"><a href="http://www.macromedia.com/go/getflashplayer/"></a><>
</noscript>
<div id="playerfail"><a href="http://www.macromedia.com/go/getflashplayer/"></a><>
<>
<>
<>
What causes this?
And how do I get the upper code instead, when loading the code via file_get_contents,so I can extract the <object></object> part,for my project?