Link to home
Start Free TrialLog in
Avatar of Morgan
Morgan

asked on

Emedding Source URL in JW Player.fla

I am wanting to add the source url where my video's are stored within the player.fla file. This way I add some security to where these videos are stored and are not easily visible to the average user and above average user. I assume this is the same concept as identifying the url for external images, such as for CMS flash galleries. In this instance i'm creating a player using the source player.fla found from the link below that's provided by the makers of the JW Player:

http://developer.longtailvideo.com/trac/browser/branches/fl5-fla/src/player.fla

I just need to know where I put the source url the video's are stored so I can than publish the player and begin using it just as the default player.swf JW provides.

Hope this makes sense!

Thanks,

neo
Avatar of dgofman
dgofman
Flag of United States of America image

I am still confusing. You want to add URL to your FLA and let user to download? Why you cannot store on your webhost in the same folder where SWF and provide URL to this file?
Avatar of Morgan
Morgan

ASKER

Hello dqofman:

Thanks for the reply and sorry for the confusion. Isn't there a way to provide a url within the flash player.fla, which creates my player.swf file, to point to the folder where the videos are stored.

So for example I use JW Player. In the configuration script in the html I put where I want my video to play I put the code:

...code
'flashplayer': 'player.swf', --- this is the player to play my video
    'file': 'http://content.longtailvideo.com/videos/flvplayer.flv', ---this the url to the video to play
...code

What i'm looking for is to add the source url into the player.swf (player.fla):

http://content.longtailvideo.com/videos/

in this way when I use the player.swf i can just put:

...code
'flashplayer': 'player.swf',
    'file': 'flvplayer.flv',
...code

In this case i'm hiding the root source of where the video is stored, ergo providing some level of security to my video's location.

The reason for this is I work in a community college and some of the martial we use is copyrighted and therefore we need to provide some level of security to the copyrighted works.

In essence i'm wanting to add the url to the player.fla before publishing the player through adobe flash.

I hope this clarifies a little better.

Thanks,
neo
Now I undertood, yes that is possible you have to use "base" param in your HTML

Looks like you are using SWFObject pass that value as param in your SWDObject constructor

var param = {
    base:"http://content.longtailvideo.com/videos/",
    ....
}



Here is documenation

http://kb2.adobe.com/cps/127/tn_12701.html

base - [base directory] or [URL]. Specifies the base directory or URL used to resolve all relative path statements in the SWF. This attribute is helpful when your SWF file is kept in a different directory from your other files.
Avatar of Morgan

ASKER

dqofman:

Thanks for the reply. Unfortunately this is not exactly what i'm looking for. I'm wanting to know if there is a way to apply the base url within the player.fla file, within adobe flash, before publishing the player.fla file into the player.swf file. The reason is as stated above: "I work in a community college and some of the martial we use is copyrighted and therefore we need to provide some level of security to the copyrighted works."

Your solution would work if I was unconcerned about hiding the base url, but in this case I need to know if I can set the base url before creating the player.swf file.

thanks,
neo
Do you want to publish from player.fla a new player.swf  into different directory?
You can modify Publish settings
Or you want in runtime to load your SWF file from other directory.
Again, we can change URL, BUT don't forget some users are not so dummy thay can look where SWF file loaded from what URL anyaway by using Fiddler or FireBug plugin for Firefox
Avatar of Morgan

ASKER

dqofman:

Thanks for the reply. Yeah not to worried about the above average user that knows firebug or fiddler. What I am wanting to know: can I specify the base URL within the player.fla file before publishing it into the player.swf. The player.swf is the player that plays my videos - provides the pause, play, mute, volume controls, etc.

As you mentioned above I am using the SWFObject code and as shown above in the configuration code I specify the player.swf (shell to play my movies in) and the movie URL where the movie is stored I want the player.swf file to play.

I don't want to specify the full URL of the movies location, if I can help it, if I can specify the base URL within the player.swf I can than just provide the movies name in the configuration code.

Does this help explain further?

Thanks,
neo
ASKER CERTIFIED SOLUTION
Avatar of dgofman
dgofman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Morgan

ASKER

Well that's a little more involved than I was hoping. I'll just create a playlist and reference that. Thanks for the help.
Avatar of Morgan

ASKER

Never address the actual questions.