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

Embedding JW Player into a Java Swing Application


Hi everybody,

I'm currently working on a java swing project, and I want to use jw player to read some video streams inside the main application.

In order to achieve that, I use an API which allows me to access native system functions, and gives me an interface to load and use jw player. However that interface can only communicate with the player through its native functions. I mean instead of, for example, using a function like setMute (given by javascript documentation), I need to use its native counterpart 'jwSetMute' to the api in order to get the same result.

I was wondering if there was a link on this website on which native functions are documented, so that I can finally use the player inside my application.

I apoligize in advance if this topic has already been discussed/solved, in which case I'll grateful to be pointed in the right direction.

Thanks,

Ariel.

9 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

This isn’t something I have ever seen before, so not really a supported use case I’m afraid. It might work, but we have never tried it before.

JW Player

User  
0 rated :

I know it does work, as a matter of fact I successfully tested native functions 'jwLoad' and 'jwSetMute' in my project using native swint api at http://djproject.sourceforge.net/ns/.

The problem is that I'd like to know all the other functions that are embedded in the player.

Ethan Feldman

JW Player Support Agent  
0 rated :

Okay.

Here are all of the other functions – http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12540/javascript-api-reference

JW Player

User  
-1 rated :

Thanks Ethan, but I was looking for the list of native functions that are called even by those javascript functions in the api documentation.

May be if I were to be indicated the file where all javascript functions are defined, I might have an insight onto what I'm searching. The jwplayer.js file provided with the distribution doesn't seem to be the one.

JW Player

User  
0 rated :

I'm currently looking at http://developer.longtailvideo.com/trac/browser/trunk/fl5/js/src/api/jwplayer.api.js, and I think I'm one step closer to what I need.

JW Player

User  
0 rated :

Hi Ethan,

I've almost got all I need to continue writing my App. I just have one more question : is it possible to disable click events on the screen and on the jw logo ?

Thanks,

Ariel.

Ethan Feldman

JW Player Support Agent  
0 rated :

You can use this plugin to do this – http://www.longtailvideo.com/addons/plugins/68/Clickproxy

JW Player

User  
0 rated :

I'll look into it. Thanks again for your help.

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

This question has received the maximum number of answers.