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

JW-Player offline - How to call javascript??


Hello, I use jwplayer from a local source - no web server. I noticed that the same code works on web server, but for some reason I can't use things like

player.sendEvent('PLAY')

local. Why is this, and how to solve it ?

Has it to do with flash or wiht swfobject.js?

6 Community Answers

JW Player

User  
0 rated :

The JavaScript API does not function from local/offline sources due to Adobe Flash Player security restrictions.

See this article and others on Adobe's site for the details:*http://www.adobe.com/devnet/flash/articles/local_network_playback_03.html*

JW Player

User  
0 rated :

As mentioned in the Adobe article, a local SWF can access local files. So if all the files are local--the HTML, the SWF, the JS, and the FLV--it should work.

JW Player

User  
0 rated :

It's not an issue of accessing files.

See thie article: *http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html*

Scroll down to "Method Detail". There is a note explaining local content and a couple of links to security documents that explain the sandboxing in greater detail.

JW Player

User  
0 rated :

And JW Player works offline if I re-export the soruce of the player selecting "Access Local Files only"?

Thanks

JW Player

User  
0 rated :

Did anyone resolve this?

Pablo

JW Player Support Agent  
0 rated :

@Chris -

This issue is pretty much resolved – it isn’t supported to do player / javascript interaction in a local context.

This question has received the maximum number of answers.