Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

SecurityError: Error #2028 - Problems with external videos


Hello all!

We are using JW player for showing videos on our site, which stored on different web servers. But i don't can link to external files, only to local stored files.

I created to test this piece of code from wizzard, but the same effect: the player will be shown, but the movie will not play.

<script type='text/javascript' src='swfobject.js'></script>
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>
var so = new SWFObject('player.swf','ply','470','320','9','#ffffff');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://content.longtailvideo.com/videos/flvplayer.flv');
so.write('mediaspace');
</script>

After searching I found this exception protocol from the flash runtime:

SecurityError: Error #2028: Local-with-filesystem SWF file file:///D:/mediaplayer/player.swf cannot access Internet URL http://content.longtailvideo.com/videos/flvplayer.flv.
at flash.net::NetStream/play()
at com.longtailvideo.jwplayer.media::VideoMediaProvider/load()
at com.longtailvideo.jwplayer.controller::Controller/play()
at com.longtailvideo.jwplayer.controller::Controller/playHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.longtailvideo.jwplayer.events::GlobalEventDispatcher/dispatchEvent()
at com.longtailvideo.jwplayer.view::View/forward()
at com.longtailvideo.jwplayer.events::GlobalEventDispatcher/dispatchEvent()
at com.longtailvideo.jwplayer.view.components::CoreComponent/dispatchEvent()
at com.longtailvideo.jwplayer.view.components::DisplayComponent/clickHandler()

The file exists and I can download it from the longtailvideo-servers, but the player can't access the files. My question is why it can not access?

One strange thing on the problem is, that the same problem is with the silver-light player. No external files, only local files, will be played. This is realy confusing.

I tested it on several systems and there was no different. No firewall or proxy is between the systems and the servers.

Waiting for reply and regards,
Patrick

89 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you provide a link to where you are running this?

JW Player

User  
0 rated :

Hello,

i've got the same problem! I think the mistake is, that the video can't open the file. Maybe there aren't rights for the player to open. Sometimes it work, but often it isn't okay.

Information: I've got a homeserver.

Rob from Germany

Ethan Feldman

JW Player Support Agent  
1 rated :

Can you provide a link to where you are running this, or put up a test page?

JW Player

User  
0 rated :

I have the Same Problem... but Not just with JW Player...

The reason I went looking for JW Player is because I have the same problem with Any video being played by Any Player.

I have searched everywhere trying to find the source of this problem and no luck.

Example:
I downloaded the "mediaplayer-5.2-viral" from your website and un-zipped it...
Inside is the "Readme.html"... which when I click on it, it opens the page in my Browser, but does NOT play the included Sample Video... "video.flv" - nor does it display the sample image "preview.jpg"...

Instead, I get the Error #2028 message where there should be video playing.

I have to ASSUME that the "Readme.html" has code that is supposed to Load the "video.flv" file from the same folder on my Hard Drive, as all the other files from the zip are stored...
(player.swf, swfobject.js, and yt.swf) --- I have tried to open this "Readme.html" file with Three Different Browsers, and get the same Result. -- No Video, just the "Error #2028 msg."

I don't think it's a problem with Your Player, as I have the same Problem no matter WHAT player I am using, and I have downloaded a half dozen so far.

Note: I have No Problem viewing streaming video on YouTube or any place else with any of these 3 browsers, yet... when I try to "Embed" the code into a web page of my own making, the video will not play... using Any Player, or using the "embed code" from various FLV conversion Software, or the code provided from ANY video sharing website such as YouTube etc.

I kept thinking that there MUST be a problem with Either the Player I am using, or the web page I am making, but Obviously Not, since the "readme.html" page that You Provide as an example, has the same problem.

Help Please! -- I have spent Days trying to work this out and I;m going Nuts in the persuit of the solution.
Mark

JW Player

User  
0 rated :

[in addition to above]

All I am trying to do is to have a video play on my web page...
and I am writing and testing the web page on my PC, before sending it to a server for the web.

I don't see why I can't play a video that is stored on my Hard Drive, in the Same Folder as the webpage.html file, and the flvplayer.swf and so on.

Supposedly, I AM supposed to be able to do this, as ALL of the "Help" web sites supply the "Object Code" to "Embed Video" on your web page... and thay ALL say exactly the Same Thing YOUR website says...

"It's That Easy... Just Copy and Paste the Code Below into your Web Page... and Replace the "your video" statment with the location of the video you want to play."

Well... Maybe it works that way for the Rest of the world, but Not for the people who are leaving Comments on the Error #2028 Page... as they are ALL having the Same Problem as I am.

Makes No Sense!

On your provided "Readme.html" file, I have to Assume that it also is Supposed to Provide the "Embed Code" for the Video that it DOESN'T PLAY... as is says the same thing about Copy and Pasting the code... but I don't get any "Embed Code" to copy and paste...

All I get is a Black Box where the video is supposed to be playing... and the "Error #2028" msg.
(it's 2:03am here, and I have been working on this problem since I got up this morning, or I guess yesterday morning now... Please help!

...and please don't ask for anaddress where you can see this, as there IS None.
I am running this on my home PC... which IS where Your "Readme.html" is Supposed to be Run...
and it Does Not Play the Video.

What's Up?
Mark

JW Player

User  
0 rated :

Hello,
I just wanted to add... I went to your "jw-player-setup-wizard" page again, and left all the settings in their Default...

Please Note that when I view Your Wizard Page, your Video Player, DOES show up, and the Video DOES play correctly...

Copied the Code at the botom to My Webpage... and No Luck!

it's a Very Simple Page, just to show the Video as a Test... I can add all the rest later once I get a video to play... but so far no luck there.

Below is the code of my "test page"... You can see whee it says <!begin JW Script>
under that is where I copied and pasted the code provided by the wizard.
Please see if you can see a problem.

I have the "player.swf" and the "swfobject.js" in the same folder with this test.html,
so I am clueless as to what is happening.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>JW-Test-01</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- Stye Sheet -->
<style type="text/css">
body { background-color: #999999; font:20px/30px arial color: white }
a { color: white }
a:hover { color: orange }
div { margin:20px; }
h1 { margin-left:40px; }
.Style1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: bold;
color: #FFFFFF;
}
</style>
</head>

<!begin JW Script>

<script type='text/javascript' src='swfobject.js'></script>

<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
var so = new SWFObject('player.swf','ply','470','320','9','#000000');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://content.longtailvideo.com/videos/flvplayer.flv');
so.write('mediaspace');
</script>


</object>
</body>
</html>
*********
Any Help?

Thanks,
Mark

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you provide a link to where you are running this?

JW Player

User  
0 rated :

I have exactly the same problem.

Downloaded, unzipped and opened the Readme.html from harddisk. In my case opened it with Google Chrome. This is so easily to reproduce. So, please tell us, what is the reason of this error message??

Regards
David

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you provide a link to where you are running this?

JW Player

User  
0 rated :

There is no link to provide... It happens when you open the readme.html file provided in http://www.longtailvideo.com/jw/upload/mediaplayer-viral.zip

Error #2044: Unhandled error:. text=Task Queue failed at step 4: View setup failed: Error #2028: Local-with-filesystem SWF file file:///D:/path/to/mediaplayer-5.2-viral/player.swf cannot access Internet URL http://plugins.longtailvideo.com/5/viral/viral-2d.swf.

Ethan Feldman

JW Player Support Agent  
0 rated :

@Razvan – This is because you are loading the Viral version of the player, which connects to us to load the plugin. Since you are loading the readme locally, and not in a web environment, Flash reports this error because of Flash security settings.

If you use this version of the player, it will not have the error, and will work locally – http://www.longtailvideo.com/jw/upload/mediaplayer.zip

JW Player

User  
0 rated :

I've got a problem with video playing at www.gracelink.net/podcasts When you click on Kindergarten and select the Animation option, several of my users see a play button with a line through it. I can't seem to duplicate the problem, but I have enough complaints, from varied locations to know this is recurring problem for many. One user sent the following error.

Task Queue failed at step 4: View setup failed: Error#2028

The files are on a media server and prior to two weeks ago we didn't have this problem.

HELP!

Thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

I get this error on your video player:

Error #2044: Unhandled error:. text=Task Queue failed at step 6: Playlist could not be loaded: Error #2048: Security sandbox violation: http://www.gracelink.net/site/1/jw51/player.swf cannot load data from http://gracelink.net/podcast.php?channel=6.

The issue here is that you are loading this file – http://gracelink.net/podcast.php?channel=6

But you need to be loading – http://www.gracelink.net/podcast.php?channel=6

www needs to be there.

JW Player

User  
0 rated :

Thanks, Ethan. But we did update the code to reflect "www" in the reference and I still get the error. It's like it doesn't see the updated reference.

Ethan Feldman

JW Player Support Agent  
0 rated :

Change:

<body onload="createplayer('http://gracelink.net/podcast.php?channel=6', '550', '800', '365', true); return false;">

To:

<body onload="createplayer('http://www.gracelink.net/podcast.php?channel=6', '550', '800', '365', true); return false;">

You still need to do this.

JW Player

User  
0 rated :

Here's what I have based on how the page is set up.

<a onclick="createplayer('http://www.gracelink.net/podcast.php?channel=6', '550', '800', '365', true); return false;" href="#" class="podcast" >Kindergarten Animation<br /> *WATCH NOW*</a>

What else needs to change?


Ethan Feldman

JW Player Support Agent  
0 rated :

Please view the source of – http://www.gracelink.net/article.php?id=62

All of the references to “podcast.php?channel=6” STILL have no WWW in front of gracelink.net

Please upload ALL of the links to include www, re-upload / re-publish the page, and we will take a look, thanks.

JW Player

User  
0 rated :

We've fixe the link off the podcasts and republished the page. However, I'm still getting email saying they see a play button within a circle with a line through it. I don't see it, but many do. (cue Twlight Zone theme).

Thanks

Andrew

JW Player Support Agent  
0 rated :

Ethan LongTail Wed, 2010-09-01 15:53

@Razvan – This is because you are loading the Viral version of the player, which connects to us to load the plugin. Since you are loading the readme locally, and not in a web environment, Flash reports this error because of Flash security settings.

If you use this version of the player, it will not have the error, and will work locally – http://www.longtailvideo.com/jw/upload/mediaplayer.zip


Thanks! this solved the local playback error

Ethan Feldman

JW Player Support Agent  
0 rated :

@Andrew – Great! I am glad this solution worked for you! :)

JW Player

User  
0 rated :

Getting same 2028 access denied error message -- with my own file and even your own readme.html file. Read above, but dont' see any connection to php....

What shoud I do, please?

http://umeworks-studios.com/studio7/jwplayer/readme.html

Ethan Feldman

JW Player Support Agent  
0 rated :

Your file does not exist on the server:

http://umeworks-studios.com/studio7/jwplayer/video.mp4

JW Player

User  
0 rated :

The file does exist. I can see it in filezilla etc.

Ethan Feldman

JW Player Support Agent  
0 rated :

Check http://umeworks-studios.com/studio7/jwplayer/video.mp4 in your browser. It does not work.

JW Player

User  
0 rated :

Hi Bro Ethan!!

Thanks for the Support. I just have the same problem Error #2028. I try read the RSS file in the URL www.twitter.com from the a user. The erro courred while i have try access from intenet .. but the file run fine in local mode.

I follow the previous intrucctions but the file not work to me .. Please kindly check the file in this URL bc.. http://www.in3xpresiondesign.com/pluggins/nets.html


And check the enclosed file in <codehttp://www.in3xpresiondesign.com/pluggins/nets.rar</code>

I bro thanks for the Help. Grettings From Colombia!

Ethan Feldman

JW Player Support Agent  
0 rated :

What is ? http://www.in3xpresiondesign.com/pluggins/nets.html

Where is our player?

JW Player

User  
0 rated :

This is probably a silly question...
I keep getting the error "Task Queue failed at step 4:View setup failed: Error #2028" where I should have a jwplayer playing a movie embeded into my webpage.

Do I need to be running the jwplayer from a server of some sort?
Thank you.

Ethan Feldman

JW Player Support Agent  
0 rated :

@Chemical D – Can you provide a link?

JW Player

User  
0 rated :

After downloading from link that Ethan supplied in this thread http://www.longtailvideo.com/jw/upload/mediaplayer.zip and unzipping it to a new folder,
the readme.html displayed player correctly and locally tested projects displayed without error #2028.

Returning to the original folder with download from Longtail site the readme.html displayed player with error #2028. I conclude that the downloaded zip file from the site contained the error and Ethan's link to zip file contained no error.

Rgds, Anders

Ethan Feldman

JW Player Support Agent  
0 rated :

@Anders L – The download from our site and the one I linked people to are the same thing. You need to make sure when you are downloading the player from our site that you uncheck the “Viral Plugin” checkbox. That’s it.

JW Player

User  
0 rated :

I downloaded medialplayer on Nov 15th and it worked fine. Today I downloaded it again, -viral is added to the name of package and I got the same error message. The only difference is player.swf. The good one has the size of 97107 and the bad one has the size of 97119

Ethan Feldman

JW Player Support Agent  
0 rated :

@Hossein Akhlaghpour – Make sure to uncheck the “Viral Plugin” checkbox, before downloading.

JW Player

User  
0 rated :

bc.. @Razvan - This is because you are loading the Viral version of the player, which connects to us to load the plugin. Since you are loading the readme locally, and not in a web environment, Flash reports this error because of Flash security settings.

If you use this version of the player, it will not have the error, and will work locally - http://www.longtailvideo.com/jw/upload/mediaplayer.zip


- Ethan LongTail

fixed, thanks :)

Ethan Feldman

JW Player Support Agent  
0 rated :

@Sean – Np! :)

JW Player

User  
0 rated :

Windows 7 64-bit.
Task Queue failed at step 4: View setup failed: Error#2028
Really helpful error message.
It appears as if there is little support for the POS.

JW Player

User  
0 rated :

disregard prior comment

Ethan Feldman

JW Player Support Agent  
0 rated :

Bob, if you could post a link, that would be helpful. We also provide excellent support, FYI. Happy Holidays! :)

JW Player

User  
0 rated :

Hello,

got the same problem. Local videos were displayed fine. Remote videos do not show up.
I even copied the code inside the embed tag from preview of the setup wizard and pasted it into the readme.html of the download directory. No success.
It's not a browser problem as some of you have noticed. Firefox and IE 7 fail in the same way. It's a security problem with flash player 10, perhaps with earlier versions too.
My work around is as follows:

1. Locate the flashPlayerTrust directory, on a Windows 7 system look for C:\user\<user name>\AppData\Roaming\Macromedia\Flash Player\#Security\flashPlayerTrust

2. Write a txt-file (i.e. myflashDirs.cfg) with a line (lines) where you specify the path for the directory (directories) where you put your player.swf. Lines starting with #-sign are comments.
For details look at http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7c95.html, section "The Global Flash Player Trust directory"

3. Restart your browser.

That works for me.
Hope I could help.

Happy New Year! :)

Ethan Feldman

JW Player Support Agent  
0 rated :

@arf – Thanks for the detailed description / explanation! Happy New Year! :)

JW Player

User  
0 rated :

Hi,

I had same error#2028. I found this web site, followed Ethan's solution. Now, I can see readme file's video but I can not see on my web site (which is on my pc, not on the web). I copied/pasted code inorder to see on my web page, but I cannot see.

Any ideas?

Ta.

Ethan Feldman

JW Player Support Agent  
0 rated :

@ozzy – Provide a link?

JW Player

User  
0 rated :

Hi,
I see this problem is written many times, but I still can't make it work... please be so kind and check http://www.gschiuma.com/masterclasses/ where I have a .flv file which is perfectly working on localhost but not on web...

Thanks for help

Ethan Feldman

JW Player Support Agent  
0 rated :

http://www.gschiuma.com/masterclasses/AB.flv brings me to a 404 not found page. Make sure you have the MIME-TYPE set for FLV if you are positive it is there.

JW Player

User  
0 rated :

thank you... I was trying everything... to check this one didn't come to my mind... now it seems to be working...

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

JW Player

User  
0 rated :

hi Ethan,

i am trying to play video's by clickin on these links .can you please help me with this.


<li><a href="#" onclick="jwplayer().load({file:'jwplayer/Sprite_COLLEGE.mp4'}).play();">video 1</a></li>

<li><a href="#" onclick="jwplayer().load('jwplayer/Sprite_COLLEGE.mp4')"> Load the Sprite College commercial </a></li>
<li><a href="#" onclick="jwplayer().load('jwplayer/Sprite_FATHER.mp4').play();"> Load the Sprite father commercial </a></li>
<li><a href="#" onclick="jwplayer().load('jwplayer/Sprite_BUS.mp4').play();"> Load the Sprite Sprite Bus commercial </a></li>

Ethan Feldman

JW Player Support Agent  
0 rated :

Provide a link to where this is running. Thanks!

JW Player

User  
0 rated :

Hi I get an error, the player shows up but it say Acces Denied unable to play file

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you provide a link?

JW Player

User  
0 rated :

http://homesfinish.com/index2.html Sure here is the link

JW Player

User  
0 rated :

Fixed by making a change on the address.. instead of videos/video.mp4 had to use /videos/video.mp4 :D

Ethan Feldman

JW Player Support Agent  
0 rated :

Great! :D

JW Player

User  
0 rated :

Hi Ethan

I had downloaded http://www.longtailvideo.com/jw/upload/mediaplayer.zip
as wanted to display some video locally with a html page (but not
on the web). Unzipped mediaplayer.zip and could play the readme.htm file. I had replaced the filename video.mp4 with my own video file name in the readme.htm and
although the player button scroll, nothing is seen in the blackbox.

I thought the file name might be too long and changed to DOS eight character shortname with the same result, can suggest what could be the problem ?

Thanks

JW Player

User  
0 rated :

what OS are you using?

Can you show some code to look at?

JW Player

User  
0 rated :

Hi

Microsoft@Windows Version 5.1(Build 2600.xpsp_sp3_gdr.101209-1647:Service pack 3).

No change of code in the readme.htm from the zip file except for the filename replaced with my video. Put back as video.mp4 and it is still playing both video and audio. Replaced with my filename as shown below, audio is heard but video is not seen. Tried both firefox and ie both same result. Also tried width="640" height="300" and still with no video seen and only audio heard when play button clicked.
bc.. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>About the JW Player 5</title>

<style type="text/css">
body { background-color: #fff; padding: 0 20px; color:#000; font: 13px/18px Arial, sans-serif; }
a { color: #360; }
h3 { padding-top: 20px; }
ol { margin:5px 0 15px 16px; padding:0; list-style-type:square; }
</style>

</head>
<body>

<h1>About the JW Player 5</h1>
<p>Thank you for downloading the JW Player, the leading open source video player for Flash and HTML5 on the Web. Not only is the JW Player the easiest way to put video on your website, but we offer a host of other products and services to assist in providing the best possible video experience for your users.</p>

<h3>Quickstart</h3>
<p>The quickest way to get started is to unzip the file you downloaded (you must have done that if you're reading this!) and copy the contents into a folder called 'jwplayer' at the root of your website. The end result should be:</p>
<ol>
<li>{webroot}/jwplayer/player.swf</li>
<li>{webroot}/jwplayer/jwplayer.js</li>
<li>etc...</li>
</ol>
<p>You can then view the source of this page and copy the code from the example below onto your webpage. That's it! You should see a player on your site.</p>

<h3>An Example of the JW Player</h3>
<p>Below you see a simple embedded example of the JW Player.</p>

<!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="328" height="200">
<param name="movie" value="player.swf" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="file=25092010011.mp4&image=preview.jpg" />
<embed
type="application/x-shockwave-flash"
id="player2"
name="player2"
src="player.swf"
width="328"
height="200"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="file=25092010011.mp4&image=preview.jpg"
/>
</object>
<!-- END OF THE PLAYER EMBEDDING -->

<h3>Support, Documentation and Source Code</h3>

<p>If you need help, the LongTail Support Community contains a wealth of information, include a large <a href="http://www.longtailvideo.com/support/jw-player/">library of documentation</a>, a very active <a href="http://www.longtailvideo.com/support/forums/jw-player/">support forum</a>, and a <a href="http://www.longtailvideo.com/support/blog">blog</a> on the latest releases and tips on publishing video.</p>

<p>Some documents you might find useful are:</p>
<ol>
<li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12539/supported-video-and-audio-formats">Supported file formats</a>.</li>
<li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12537/xml-playlist-support">Supported XML playlist formats</a>.</li>
<li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12536/configuration-options">Complete list of configuration options</a> (for customizing the player).</li>
<li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12540/javascript-api-reference">Supported JavaScript API calls</a> (for JavaScript interaction).</li>
<li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/14/skinning-the-jw-player-5">Supported skinning elements</a> (for creating your own graphics).</li>
<li><a href="http://developer.longtailvideo.com/trac/roadmap/">Roadmap with full changelogs</a> for each version.</li>
</ol>
<p>Last, the source code of all different versions of the player can <a href="http://developer.longtailvideo.com/trac/browser/tags">be found here</a>. You can click a version and download the ZIP files (the links are at the bottom).</p>

<h3>Licensing</h3>
<p>The player is licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/">Creative Commons License</a>. It allows you to use, modify and redistribute the script, but only for *non-commercial* purposes.</p>
<p>Examples of *commercial use* include:

<ul>
<li>websites with any advertisements; </li>
<li>websites owned or operated by corporations; </li>
<li>websites designed to promote other products, such as a band or artist;</li>
<li>products (e.g. a CMS) that bundle LongTail products into its offering. </li>
</ul>

If any of the above conditions apply to you, then <a href="http://www.longtailvideo.com/order/" title="Order commercial licenses">please purchase a license for the player</a>. If you are still unsure whether you need to purchase a license, please <a href="http://www.longtailvideo.com/support/contact-us">contact us</a>.</p>

<h3>Related Products</h3>
<p>In addition to the JW Player, <a href="http://www.longtailvideo.com">LongTail Video</a> has a suite of products to help you publish video.</p>
<p>Learn more about them here:</p>

<ul>
<li><a href="http://www.longtailvideo.com/addons/skins">Skins</a> - Change the look of your player to match your site. <a href="http://www.longtailvideo.com/addons/skins">View our library</a>.</li>
<li><a href="http://www.longtailvideo.com/addons/plugins">Plugins</a> - Add functionality to your player, like sharing, social networking, analytics, advertising and more. <a href="http://www.longtailvideo.com/addons/plugins">Find one for you</a>.</li>
<li><a href="http://www.longtailvideo.com/referral.aspx?page=pubreferral&ref=xvwjuhgktajeelu">AdSolution</a> - Monetize your videos with LongTail's AdSolution. Integrate pre-roll, overlay and post-roll ads into your site and starting making money today. <a href="http://www.longtailvideo.com/referral.aspx?page=pubreferral&ref=xvwjuhgktajeelu">Sign up now</a>.</li>
<li><a href="http://www.bitsontherun.com/via/longtailvideo">Bits on the Run</a> - Upload, encode, store, manage and stream your videos with Bits on the Run, LongTail's end-to-end online video platform. <a href="http://www.bitsontherun.com/via/longtailvideo">Sign up now</a>.</li>
</ul>



</body>
</html>



I can play my file with media classic player without any problem. Anything to do the size of the file that the jwplayer can handle ? My video was captured with nokia x5 smartphone.

09/25/2010 12:09 PM 2,533,723 250920~1.MP4 25092010008.mp4
09/25/2010 12:21 PM 7,290,200 250920~2.MP4 25092010011.mp4
03/10/2011 02:47 AM 199,160 video.mp4

Thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link ?

JW Player

User  
0 rated :

Hi Ethan

Sorry, there is no link as readme.htm is played locally.

Thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

Then that is your issue. You can’t play external videos locally. Flash security restriction.

JW Player

User  
0 rated :

Huh? Guess I have to look for another player or another way of embedding videos in a local folder to be played.

Though both are mp4 files, the header were a bit different. The video file from the zip download was mp42isomavc1 and some other characters. The video not showing up was mp423gp4isom and some other characters.

I tried a video capture with a sony ericssin k660i phone and the mp4 file created had a different header from the above two. Tried replaced the video file and again only audio heard and no video seen, ie only a black blank screen although the scroll button move to the end of the video player display.

Ethan Feldman

JW Player Support Agent  
0 rated :

I’m going to need to see a test link at this point…

JW Player

User  
0 rated :

This is indeed most frustrating. Using the non viral version, all files dropped in where the video resides which is on a network storage drive which does not have internet access, so no I can't provide a link.

All I did was swap the video.mp4 with my video which resides in the same path. fails big time in any browser. Does not error out but just sits and spins like it is trying to do something. Swapping the original video back and plays just fine.

It is odd that so many people are having issues with just swapping a video file name stored in the same local path. According to what i read the non viral version does not need to access the net if i understand this correct.

This is not rocket science in just swapping the video file name and doing a copy/replace within a html file. I don't get it. The video is in the correct format as well.

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you provide a link?

JW Player

User  
0 rated :

As i stated already:

" ...which is on a network storage drive which does not have internet access, so no, I can't provide a link ".

I honestly do not understand why a link is needed if we are using a version of this that is suppose to work locally?

There is obviously something that is preventing us from modifying an html file and swapping video.mp4 to whatever.mp4 and getting it to work successfully. It should be as simple as changing the code to whatever.mp4.

the following is some code in what I am trying to accomplish:

<video width="640" height="480" controls >
<!-- MP4 must be first for iPad! -->
<source src="Aclient.mp4" type="video/mp4" /><!-- Safari / iOS, IE9 -->
<source src="Aclient.webm" type="video/webm" /><!-- Chrome10+, Ffx4+, Opera10.6+ -->
<!-- fallback to Flash: -->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="480" type="application/x-shockwave-flash" data="player.swf">
<!-- Firefox uses the `data` attribute above, IE/Safari uses the param below -->
<param name="movie" value="player.swf" />
<param name="flashvars" value="autostart=false&controlbar=bottom&image=poster.jpg&file=aclient.mp4" />

</object>
</video>

I am basically trying to get a fall back on flash if native video cant be used within the video tag. this works in Firefox4 and IE 9, but not older browsers. I have tried variations of this and everything works but the flash part. This seems to be most frustrating to a lot of people.

There is obviously something that we are missing.

Ethan Feldman

JW Player Support Agent  
0 rated :

Since you are trying to do fallback to Flash, why don’t you just simply use the JW Embedder? We already support this feature in the embedder, and you don’t need to write your own custom fallback code.

http://www.longtailvideo.com/support/blog/15827/using-the-jw-embedder-to-embed-your-player

JW Player

User  
0 rated :

Thank You for the info. I tested this at home within a Virtual machine, disconnected the network device, and I was able to successfully get this to work. both with native video and using exclusively flash as well. I used the contents from the link below:

http://www.longtailvideo.com/jw/upload/mediaplayer.zip


Your example of the JW embedder also worked ( I actually removed the clsid).

I have yet to test this at work on a NAS drive which uses UNC paths. I will provide some feedback once I get to work and test this out, and whether or not I have to use the full UNC path to point to the files, vs using relative paths ( I was actually thinking this could be mu issue as I was writing this).

Hopefully I will have some positive results to report back tomorrow, and may sole some of the above user issues.

Ethan Feldman

JW Player Support Agent  
0 rated :

Great, glad it is working for you! Please let me know what you find.

JW Player

User  
0 rated :

Hi Ethan, i was using the viral version and i got the same error people talked about comments above ! Then i downloaded the non viral version and it worked, the readme.html played de video but, before that i had a mensage warning me that player.swf is trying to comunicate to readme.html, i click ok and then i can play de video. Well i believe it's not a big deal, but how can i avoid this mensage and jump straight to the video when i load the page ?
Before you ask, i can't provide a link since i'm making tests witht readme.html locally in my computer !

Ethan Feldman

JW Player Support Agent  
0 rated :

As long as you are using the non-viral version, those messages should not show up. Make sure you are using the non-viral version.

JW Player

User  
0 rated :

Ethan, first sorry for the 'mensage', thinking in english and writing in portuguese and thanks for the reply ! I'm sure i downloaded the correct version, i unchecked the "Viral Plugin" checkbox and i downloaded it at least 3 times to make sure i wasn't doing anything wrong but i got the same message from readme.html ! What i noticed is that when i run the readme.html in my computer at work, which runs Windows 7 64b, i got that message but, when i run the same file in my computer at home, which runs Windows XP SP 3 32b, aint got any message and it plays the video perfectly. Any idea of what could be happening, maybe some extra security configuration that i missed ?

JW Player

User  
0 rated :

@Renato

Por favor, fornea um link e, em seguida, pode ser verificada ou se existem problemas

Voc j dobrou verificado se no h uma causa caminho relativo

Ethan Feldman

JW Player Support Agent  
0 rated :

Maybe a link would help too?

JW Player

User  
0 rated :

I'm sorry i can't provide a link at moment because, as i said, i'm making tests locally ! What looks weird to me is the fact that today i've made tests in two diferents laptops, one with windows Xp SP3 32b, again it worked perfectly, on the other hand when i made tests in a laptop with Windows 7 64b again i got the same security warning. I don't think it could be a problem with the file path, since all files, including my own html file which i created to test, and the readme.html file which comes in the mediaplayer directory, both had the same behavior in both situations and i didn't do any change on readme.html file.

Ethan Feldman

JW Player Support Agent  
0 rated :

Well, please put up a test page, if possible…………..

JW Player

User  
0 rated :

Hi Ethan,
I hope you can help me. I am trying to load the metaviewer-1 pluggin but it always gives me the same error:

Error #2044: Unhandled securityError:. text=Error #2028: Local-with-filesystem SWF file file:///Users/foo/Downloads/mediaplayer-5.7/player.swf cannot access Internet URL http://plugins.longtailvideo.com/5/metaviewer/metaviewer-1h.swf.

I am using the player you recomended in this tread to run local media.

Here is the html,

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>JW Player for Flash</title>
<script type='text/javascript' src='jwplayer.js'></script>
</head>

<body>
<div id='container'>This div will be replaced by the player</div>
<script type="text/javascript">
jwplayer('container').setup({
'flashplayer': 'player.swf',
'id': 'playerID',
'width': '400',
'height': '310',
'controlbar': 'bottom',
'file': 'sample.mp4',
'plugins': {
'metaviewer-1': {position: 'left', size: '200'}
}
});
</script>
</body>
</html>

Thanks in advance,
MPaulez

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link to where this is running?

JW Player

User  
0 rated :

not really.. i'm running it locally.

JW Player

User  
0 rated :

ok.. i have posted the page here: http://gazpacho.comze.com/foo.html

it works fine from the internet. The problem comes when i try to run it locally.

Ethan Feldman

JW Player Support Agent  
0 rated :

The error happens locally because of:

‘plugins’: {
‘metaviewer-1’: {position: ‘left’, size: ’200’}
}

It is loading the metaviewer-1 plugin from our CDN, and due to Flash security restrictions, you cannot access files on actual web addresses when running something locally.

JW Player

User  
0 rated :

I'm running everything on a single server install, with Wowza media server 2.2.4, wirecast 4.1.1 (15596), and JWplayer media player 5.7 (nonViral).
I am trying to perform a live streaming broadcast and use JWplayer to view the live stream.
I've looked through the "Quick Start guide.pdf" and see what appears to be the settings to use for live streaming. When I put them in a html file and try to view the live stream it says it cannot connect, and gives an error # of 2028.
Here is the contents of my HTML file...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type='text/javascript' src='jwplayer.js'></script>
</head>
<body>
<div id="mediaplayer">JW Player goes here</div>
<script type="text/javascript">
jwplayer("mediaplayer").setup({
flashplayer: "player.swf",
height: 270,
width: 480,
image: "Jersey.jpg",
provider: "rtmp",
streamer: "rtmp://127.0.0.1:1935/live/",
file: "myStream.sdp"
});

</script>

</body>
</html>

Everything is stored locally and there is no public link to my machine.
Is there anything I can do with JWplayer, wowza and wirecast to view a live stream? Is there another combination of applications I can use to watch a live stream?

Thanks for any help...
-Wiz

Ethan Feldman

JW Player Support Agent  
0 rated :

This code should work if you have the rtmp server set up correctly. Are you running it just locally or on a localhost?

JW Player

User  
0 rated :

I have a similar issue to some of the others posted here. I'm trying to access an rtmp stream from an external server. I downloaded the code from JW player, saved the code listed below in an HTM and when I run it locally I get a message "cannot connect to application: error #2028". I have the correct (non-viral) version of JW player in the same folder as my HTM files. I can run the code in JW player and see the video from the external server without issue, but when I open it in IE from my PC, I get the error message. I don't understand the other posts about FlashPlayer - if that's the problem. Just hoping someone can help as I'm very frustrated! Thanks.

<html>
<head>
</head>
<body bgcolor="000000">
<script type='text/javascript' src='jwplayer.js'></script>
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>
jwplayer('mediaspace').setup({
'flashplayer': 'player.swf',
'file': 'atp.flv',
'streamer': 'rtmp://fms.uml.edu/uml',
'controlbar': 'bottom',
'width': '470',
'height': '290'
});
</script>
</body>
</html>

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link?

JW Player

User  
0 rated :

The streamer location is:
rtmp://fms.uml.edu/uml

The file: atp.FLV

Ethan Feldman

JW Player Support Agent  
0 rated :

Works fine – http://developer.longtailvideo.com/trac/testing/?player=v5&skin=&file=atp.flv&provider=rtmp&streamer=rtmp%3A%2F%2Ffms.uml.edu%2Fuml&height=260&width=500

JW Player

User  
0 rated :

Ethan - thanks for your response, but not sure how that helps me. I have no problem playing the video within your environment. The problem is when I take the code from JW player and then save it in an HTM file on my computer and then try to play it in IE it gives me that error. So the code doesn't work outside of Longtail for me. Any suggestions?

Ethan Feldman

JW Player Support Agent  
0 rated :

You are trying to connect to an RTMP stream from your local disk. This is not possible because of a Flash security restriction. It has to be on the web, or at least on a web server.

JW Player

User  
0 rated :

hey, Ethan i have the same 2044
error..can you pls help me about it..here is the link:http://diziport.com

JW Player

User  
0 rated :

@enma

error #2044 Unhandled %1:

bc.. This error can be caused for a variety of reasons. In most cases the server is rejecting the request. When Flash get the response from the server.

- incorrect path to the upload file script check relative and absolute paths
- a incorrect location for the files to be stored on the server specified inside server-side upload script check path is correct and permissions are correct
- file is too large so server rejects it check max file size
- there is no space on the server to save the file check server hard drive space
- your actionscript handler is going out of scope because its declared locally,
etc create a strong event listener or declare the file reference on the class




here is a good reference to have handy
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/runtimeErrors.html

You can also "Googleize" th eerror and find a wealth of information

Ethan Feldman

JW Player Support Agent  
0 rated :

@Emma – Are you even using the JW Player?

This question has received the maximum number of answers.