Solved

Emedding Source URL in JW Player.fla

Posted on 2011-09-26
10
522 Views
Last Modified: 2012-05-12
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
0
Comment
Question by:Morgan
  • 5
  • 5
10 Comments
 
LVL 29

Expert Comment

by:dgofman
ID: 36712563
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?
0
 
LVL 1

Author Comment

by:Morgan
ID: 36714111
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
0
 
LVL 29

Expert Comment

by:dgofman
ID: 36714767
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.
0
 
LVL 1

Author Comment

by:Morgan
ID: 36716992
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
0
 
LVL 29

Expert Comment

by:dgofman
ID: 36718411
Do you want to publish from player.fla a new player.swf  into different directory?
You can modify Publish settings
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 29

Expert Comment

by:dgofman
ID: 36718429
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
0
 
LVL 1

Author Comment

by:Morgan
ID: 36815261
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
0
 
LVL 29

Accepted Solution

by:
dgofman earned 500 total points
ID: 36817212
I will suggest in this case to load URL inside another movie.

You can create wrapper.swf file and store for example in your web root and in HTML parameters pointing to this file. The wrapper.swf has simple logic to load external SWF you can find millions example how to do ii on Google for example http://kb2.adobe.com/cps/141/tn_14190.html

So, from HTML user will not able to figure out where is your player.swf because on web host you will drop to other location. BUT user can get actual file URL using Fiddler or FireBug
0
 
LVL 1

Author Comment

by:Morgan
ID: 36897297
Well that's a little more involved than I was hoping. I'll just create a playlist and reference that. Thanks for the help.
0
 
LVL 1

Author Closing Comment

by:Morgan
ID: 36897301
Never address the actual questions.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Embedded Video Download (Flash) 3 1,148
Begin mp4 video on first frame 6 166
Online Course Not Responding 3 89
Adobe Flash player - Microsoft Edge 9 156
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now