Solved

Emedding Source URL in JW Player.fla

Posted on 2011-09-26
10
511 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Do you want to publish from player.fla a new player.swf  into different directory?
You can modify Publish settings
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 29

Expert Comment

by:dgofman
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Never address the actual questions.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SWF won't scale? 4 517
YouTube Link 10 346
Online Course Not Responding 3 84
good online free meeting tool with record audio video feature 2 115
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

763 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

12 Experts available now in Live!

Get 1:1 Help Now