Nov. 05, 2009madhu sudan
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
Nov. 05, 2009hobbs
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.
Here are some helpful links to learn more about the JW Player™:
Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!
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.