Oct. 27, 2009Wonderer
Hello all,
Please help me in this one: I would like to know if it is possible to set the value of 'streamer' (in Player.as) as static (http://www.domain.com/folder/) while making 'file' value dynamic loading from flashvars in the html code!?
I don't know if it's correct already, maybe I should only play with 'streamer' value with somekind of url splitting !?
Bottom line: can I set a default folder (in Player.as) to load different files from it with flashvars (in html)?
(Maybe you have any other method to achieve that?)
Im desperate :(
Thanks a lot!
Oct. 28, 2009Jimb
@Wonderer
Yes, you sure can. In fact you can include another predefined flashvar (token) as well if you are using the secure token feature in you FMS config.
In your html that creates the player this line of code says "here's your file" to the player. var theFile = swfobject.getQueryParamValue('id');That file can be a playlist or a single file, Here's a playlist example.http://jim.playourvideo.net/musicdemo.htm?id=musicdemo.xmlHere's a generic player that accepts individual files.http://jim.playourvideo.net/jv.htm?id=1.flvJust poke around in the source code of these example html pages and I think you'll see it's very straight forward.
Regards - JImb
Oct. 28, 2009Wonderer
Thank you very much Jimb for your quick response.
What Im trying to do is simply hide the domain where the video's folder is, in a way I put the ''http://www.mydomain.com/videos_folder/" inside the Player.as, and in the html I put only the filenames:
<param name="flashvars" value="file=my_video1.mp4&image=preview.jpg" />
As simple as that without using any encryption whatsoever or any playlist; filenames must be within flashvars and the domain+folder within Player.as (or Player.fla at last resort)
I succeeded with an xml based player with AS2, but I failed here (MediaPlayer-4.5) since Im new with AS3.
Im pretty sure the key is in 'streamer' or 'file' values wihtin player.as, but how to embed that url?!
Oct. 28, 2009Wonderer
It is impossible to have the video url half hardencoded (player.as) half dynamic (flashvars)?
Please!
Oct. 28, 2009Jimb
Sorry. I misread your post yesterday. I thought you were using an RTMP Server. Apparently all you really want to do is hide the domain/folder in the player and then have it catch the file name and concatinate the two together to point to your file. You can't use the streamer flashvar as that is referenced elsewhere for it's intended purpose. You'd need to add a new flashvar to the player.as
Yes it could be done easily by modifying the player.as source code and recompiling. In truth you should know that while it can be done it really isn't going to give you much security. It will still be very simple to find the information.
Regards - Jimb
Oct. 28, 2009Wonderer
Exactly, it seems simpler using your words, at least to understand
Some code would be very much appreciated.
For the security matter I have no problem since most people won't use swf decompilers or stream sniffers
Thanks man!
Oct. 29, 2009Wonderer
Anybody? :(
Oct. 29, 2009Wonderer
Please!
Oct. 30, 2009Wonderer
Any expert?
Oct. 31, 2009Wonderer
Anybody?
Nov. 02, 2009Wonderer
please again!
Nov. 05, 2009Wonderer
Not even one?
Nov. 08, 2009Wonderer
Any hope?
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.