Go
Not registered? Sign up!

Sevenload.com Problem with IE JW Player

Google Translate
17 posts | return to the Modules forum | get the rss feed for this thread

Oct. 03, 2009Dave

Hey guys

There is a slight problem I came accross recently(about 1 day ago)

Basically, with Sevenload.com its possible to grab the direct link to the .flv, And it doesnt change.


But now they have done some kind of protection, But the weird thing is, FIrefox bypasses the protection on its own.

Heres a example

http://datal3.sevenload.com/data16.sevenload.com/slcom/dc/ct/pkgmlhd/ubxtljkjhkje.flv

Check this link in Firefox.
Now check it in Internext Exploerer

When you open it in IE, u get a page about contentlinking, But on that page, there is a link of the exact same link u typed,but wen u clic it it opens.

THe wird thing is, if u put that link into JW player, It will play on firefox, But in IE it will show not found.

I cant seem to puzzle it out, Hopefully some of you more expereicend users on here could.

If only i Knew wat firefox is automatically doing, I cud try to tell IE to mimic it.

Thanks in advance guys

Oct. 03, 2009Boris

Yes, I have same problem and dont have any solution (after 36 hours of work !) !!!

Help, help

Oct. 03, 2009lost

 
They're probably checking the referer.

Firefox/Flash doesn't send a referer.

Oct. 03, 2009Dave

Hey lost, Ye i thought this too, But when I checked for refere with HTTP_REFERER in php, Both IE and firefox show nothing.

So Im myself not even sure if its referer

O and btw LOST

Last time me and u was talking about another problem, and u tried some solutions for me, it was about the 16.9 ratio, I found a working solution where I didnt have to reupload and add PAR to each video, I can post the fix for you if u was interested.

But anyway, Lets keep it about sevenload in this thread.

ANd about referer checking, Its possible to blank referer with html, by meta refresh, but if it is the case of blank referer, wouldnt we have to write the blank referer script in flash language?

Thanks again, in advance

Oct. 03, 2009lost

 
sevenload works with everything but IE, so I'm pretty sure that they are checking the referer.

'course, it could be just one more IE failure?

Yeah, I'd be interested in the fix for 16:9. Thanks.

Oct. 03, 2009Dave

Hey lost, Sure, herers the fix, Credit to Micheal Griffin
I thought there must of been a way to do this and he did it.

Basically, when you first compile your player, Look for the Stretcher.as file and add this custom script to create a new variable

/** Stretches the clip to fit the widescreen format. **/
public static var WIDESCREEN:String = "widescreen";

case 'widescreen':
clp.width = wid;
clp.height = (wid/16)*9;
break;

In that file theres a few other default settings like fullscreen etc.

But anyway, back ontopic, Boris, Im gona have ago at trying to get the sevenload.flvs to work 2nite, If you manage, Please give me some ideas in this thread.
Il do the same if I succeed

Thanks! guys

Oct. 04, 2009i have same

hey guys i have same problem and i sended a message to sevenload support@sevenload.com they dont replied my message yet. you can send message to sevenload than write here.

Oct. 04, 2009Dave

To the Above poster, If you send a message to sevenload, They will not fix the problem, They did it ON PURPOSE lol...

Your not supposed to use the .flv.

Becus u send them this problem, Now maybe they will make the problem for firefox too

Oct. 04, 2009lost

 
The MP4 versions of the files seem to work fine in Internet Explorer. Just grab the URI out of the XML config file.

Be sure that you use type=http for their lighttpd server so you can scrub.

Oct. 04, 2009Dave

Hey lost

I have had a look at tehre xml now, Which they also check the referer on, But I managed to just use firebug to change one of there links on sevenload.com so the browser sends the referer, But, I cant find no MP4 file.

I did try to change the file extention of a flv direct link, But I kinda new that wasnt gona work before I even did it.

Could you pointme in the right direction to the xml your refrering to?

Thanks,

The xml doc im finding, is located in the div class videoPlayerWrapper

Is that the same as urs?

Thanks in advance

Oct. 04, 2009lost

 
Look for:
<param name="flashVars" value="configPath=http%3A%2F%2Fflash.sevenload.com%2Fplayer%3FitemId%3DVnUeUWW%26portalId%3Den%26screenlink%3D0&environment=sevenload&autoPlayNext=1&locale=en_US" />



Then the configPath will return the XML file:
http://flash.sevenload.com/player?itemId=VnUeUWW&portalId=en&screenlink=0&environment=sevenload&autoPlayNext=1&locale=en_US



The XML will have two location elements if it's HD. The second element will have the MP4 file.
<?xml version="1.0" encoding="utf-8"?>
<playerconfig version="1.1">
  <view url="http://static.sevenload.com/swf/player/view/hd/view.swf?v=143"></view>
  <branding>
    <watermark link="" alignment="br" alignment_target="player" margin_width="8" margin_height="8">
      <image type="normal" url="http://static.sevenload.com/swf/player_logo_internal.swf" width="114" height="16" />
    </watermark>
  </branding>
  <playlists>
    <playlist id="">
      <link></link>
      <menuentry>
        <title>Current Playlist</title>
      </menuentry>
      <items>
        <item id="VnUeUWW">
          <title>Drunk TV presenter?</title>
          <link target="_self">http://en.sevenload.com/videos/VnUeUWW-Drunk-TV-presenter</link>
          <videos>
            <video>
              <streams>
                <stream quality="normal" codec="h263" length="80.6" width="448" height="256">
                  <locations>
FLV                 <location seeking="yes">http://datal3.sevenload.com/data84.sevenload.com/slcom_2/gj/ep/hhinlje/mhzconfiokjh.flv</location>
                  </locations>
                </stream>
                <stream quality="high" codec="h264" length="81.11" width="1280" height="720">
                  <locations>
MP4                 <location seeking="yes">http://data37.sevenload.com/slcom_1/gj/ep/hhinlje/rpzsddinpkjh.mp4</location>
                  </locations>
                </stream>
              </streams>
            </video>
          </videos>
          <images>
            <image url="http://data83.sevenload.com/slcom_1/gj/ep/hhinlje/brqnkhgiokjh.jpg" width="448" height="256"/>
          </images>
          <freezeframes>
            <frame url="http://data21.sevenload.com/slcom_2/gj/ep/hhinlje/gqbfjkgiokjh.jpg" time="5.2" width="80" height="46"/>
            <frame url="http://data21.sevenload.com/slcom_1/gj/ep/hhinlje/mzzkkkgiokjh.jpg" time="12.0" width="80" height="46"/>
            <frame url="http://data84.sevenload.com/slcom_1/gj/ep/hhinlje/wpzhnkgiokjh.jpg" time="18.7" width="80" height="46"/>
            <frame url="http://data83.sevenload.com/slcom_2/gj/ep/hhinlje/mckrjlgiokjh.jpg" time="25.5" width="80" height="46"/>
            <frame url="http://data83.sevenload.com/slcom_1/gj/ep/hhinlje/lkgjklgiokjh.jpg" time="32.3" width="80" height="46"/>
            <frame url="http://data83.sevenload.com/slcom_2/gj/ep/hhinlje/gnbymlgiokjh.jpg" time="39.1" width="80" height="46"/>
            <frame url="http://data21.sevenload.com/slcom_2/gj/ep/hhinlje/hssunlgiokjh.jpg" time="45.8" width="80" height="46"/>
            <frame url="http://data53.sevenload.com/slcom_1/gj/ep/hhinlje/dmrpolgiokjh.jpg" time="52.6" width="80" height="46"/>
            <frame url="http://data37.sevenload.com/slcom_2/gj/ep/hhinlje/visjqlgiokjh.jpg" time="59.4" width="80" height="46"/>
            <frame url="http://data21.sevenload.com/slcom_2/gj/ep/hhinlje/bhdbjmgiokjh.jpg" time="65.1" width="80" height="46"/>
          </freezeframes>
          <rating>6.2</rating>
          <ratingcount>26</ratingcount>
          <tags>
            <tag>home</tag>
            <tag>fight</tag>
            <tag>shopping</tag>
            <tag>funny</tag>
            <tag>drink</tag>
            <tag>office</tag>
            <tag>ugly</tag>
            <tag>lol</tag>
            <tag>drunk</tag>
            <tag>viral</tag>
            <tag>street</tag>
            <tag>bin</tag>
            <tag>traffic</tag>
            <tag>window</tag>
            <tag>alcohol</tag>
            <tag>violence</tag>
            <tag>smash</tag>
            <tag>lay</tag>
            <tag>sick</tag>
            <tag>oh</tag>
            <tag>drinking</tag>
            <tag>booze</tag>
            <tag>know</tag>
            <tag>WTF</tag>
            <tag>pissed</tag>
            <tag>shout</tag>
            <tag>violent</tag>
            <tag>limits</tag>
            <tag>pissing</tag>
            <tag>cone</tag>
            <tag>sober</tag>
            <tag>trolley</tag>
            <tag>binge</tag>
            <tag>bloke</tag>
            <tag>dares</tag>
            <tag>passerby</tag>
          </tags>
        </item>
      </items>
    </playlist>
  </playlists>
  <parameters separator=",">
    <parameter name="preferences_api_path">http://flash.sevenload.com/preferences/set</parameter>
    <parameter name="auto_play">1</parameter>
    <parameter name="volume"></parameter>
    <parameter name="screen_mode">1,1</parameter>
    <parameter name="quality">normal</parameter>
    <parameter name="report_suite"></parameter>
    <parameter name="portal">en</parameter>
    <parameter name="detach_slider">1</parameter>
    <parameter name="hide_controls"></parameter>
    <parameter name="hide_title">1</parameter>
  </parameters>
  <plugins>
    <plugin id="0" url="embed.swf">
      <autoload>0</autoload>
      <autoactivate>0</autoactivate>
      <menuentry>
        <title>Embed on a Website/Blog</title>
        <icon url="http://static.sevenload.com/swf/player/plugins/embed_icon.png" width="100" height="50" />
      </menuentry>
      <parameters separator="#">
        <parameter name="apiUrl"><![CDATA[http://flash.sevenload.com/player/embed]]></parameter>
      </parameters> </plugin>
      <plugin id="1" url="chapter.swf">
        <autoload>0</autoload>
        <autoactivate>0</autoactivate>
        <parameters separator=";">
          <parameter name="icon_id"><![CDATA[chapter]]></parameter>
        </parameters>
      </plugin>
      <plugin id="2" url="openx_endscreen.swf">
        <autoload>1</autoload>
        <autoactivate>0</autoactivate>
        <parameters separator=";">
          <parameter name="mediaitems"><![CDATA[1]]></parameter>
        </parameters>
      </plugin>
      <plugin id="3" url="related.swf">
        <autoload>1</autoload>
      </plugin>
    </plugins>
  <eventlisteners>
    <eventlistener type="playlist_end" action="show_endscreen"/>
  </eventlisteners>
  <actions>
    <action name="show_endscreen" type="plugin">2</action>
  </actions>
  <mediaitems>
    <mediaitem id="1">
      <media>
        <medium name="image" url="http://adserver.sevenload.com/www/delivery/avw.php?zoneid=56&n=a7ae9f28&environment=sevenload&portal=en&channelName=&itemId=VnUeUWW" width="445" height="344" />
      </media>
      <links>
        <link name="screenlink" target="_blank">http://adserver.sevenload.com/www/delivery/ck.php?n=a7ae9f28&cb=765298268</link>
      </links>
      <parameter name="type">openx</parameter>
    </mediaitem>
  </mediaitems>
</playerconfig>

Oct. 05, 2009lost

 
You can use this littls snip of PHP to do the 302 Redirect.
<?php

// call with:  http://www.domain.com/path/sevenload_redirect.php?uri=http://en.sevenload.com/videos/VnUeUWW-Drunk-TV-presenter

$uri = isset($_GET['uri']) ? strval($_GET['uri']) : 'http://en.sevenload.com/videos/VnUeUWW-Drunk-TV-presenter';

$config = getConfig($uri);
//echo 'configPath: ' . $config;

$videoURI = getVideoURI($config);
//echo '<br />videoURI: ' . $videoURI->item(0)->nodeValue;
//echo '<br />videoURI: ' . $videoURI->item(1)->nodeValue;
//exit;

if($videoURI->item(1)->nodeValue) // MP4
{
  header("Location: " . $videoURI->item(1)->nodeValue);
}
else // FLV
{
  header("Location: " . $videoURI->item(0)->nodeValue);
}

exit;


function getVideoURI($config)
{
  $dom = new DOMDocument();
  $dom->load($config);
  $dom->preserveWhiteSpace = false;

//echo $dom->saveXML();

  $locations = $dom->getElementsByTagName('location');

  return $locations;
}


function getConfig($uri)
{
  $dom = new DOMDocument();
  $dom->loadHTMLFile($uri);
  $dom->preserveWhiteSpace = false;

  $xpath = new DOMXPath($dom);
  $params = $xpath->evaluate("/html/body//param");

  foreach ($params as $param)
  {
    if((strstr($param->getAttribute('value'), 'configPath=')) !== false)
    {
    //echo 'configPath: ' . rawurldecode(str_ireplace('configPath=', '', $param->getAttribute('value')));

      return rawurldecode(str_ireplace('configPath=', '', $param->getAttribute('value')));
    }
  }
}

?>


Reference it in your player code like this:
'file':   'http://www.domain.com/path/sevenload_redirect.php?uri=http://en.sevenload.com/shows/Alaska-HDTV/episodes/8RRNV2R-Hike-of-the-Week-HD-Rainbow-Falls-Wrangell-Alaska-HDTV',
'type':   'video',

But you can't scrub ahead of the download because of the 302 Redirect.

Or you can uncomment the two echos and the exit and then call the PHP in your browser to get the URIs. Then you can scrub ahead of the download.
'file':               'http://data37.sevenload.com/slcom_1/gj/ep/hhinlje/rpzsddinpkjh.mp4',
'type':               'http',
'http.startparam':    'start',

Oct. 05, 2009Dave

Hey lost

THanks for the very detailed answer
Unfortunatly I will have to look for another way to blank the referer in flash, as all my videos arent in HD, Therefore no mp4

Thanks alot for your reply though. I appreciate it.

Oct. 10, 2009nanan

any gotta a fix for this? it seems if i just use the link to flv in the addrres bar..then download works...but if i use it with jw player ...it doesnt even try to load....and gives the not working error...

Oct. 10, 2009Dave

nanan

The problem is.

IE Send Referrer : Player.Swf
FF Send Referrer : NO REFERRER

When you put into address bar, Referrer = NO REFERRER (Because you typed it)

If somebody knows how to blank referrer or hide it, The problem can be solved

Nov. 09, 2009lon3r

very weird the video shows up in fire fox but not on IE
man im such a noob scripter
anybody has any ideas wher ei cna learn moar of this stuff?
thanks
varg0003@go.century.edu

Nov. 16, 2009Zachary Ozer

@lon3er - please post to the setup problems forum (http://www.longtailvideo.com/support/forum/Setup-Problems/) with a description of your problem and a link to the page demonstrating the error.

@everyone: The difference in the referrer between IE and Firefox is a known issue and there's currently no way to update it. Sorry!

Add a reaction

You can also return to the category or try this search for related threads.


 

Search the Forums

Go

Support

Support Here are some helpful links to learn more about the JW Player™:

Monetize Your Video

Monetize Your Video Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!

Why Buy a License?

Why Buy a License? If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.