Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Obsolute url ?

1 reply [Last post]

Hi ,

i want to give the absolute URL to the "file" param.when i'm giving in that way , the video is not playing|loading.When i'm giving path relative to the player path , its working fine.How to make it work with absolute path of the *.flv file ?
Also can i give web url of the video ?
any ideas ?

//Regards
Madhu

If your player is here:http://www.domain.com/JWPlayer/player.swf
and your FLV video file is here:http://www.domain.com/media/video.flv

Then the relative path for the FLV starts at:http://www.domain.com/JWPlayer/

For a relative URL, you would go up one directory to the root "/" directory, then down one directory to the "media" directory:'file': '../media/video.flv',

For an absolute URL, you would start at the root "/" directory and go down one directory to the "media" directory:'file': '/media/video.flv',

The URI would be:'file': 'http://www.domain.com/media/video.flv',

The origin of the relative URL for all other media (the exception being FLV media files), is the location of the HTML document that your Flash content is embedded into.