Skip to main content

javafx.scene.media.MediaPlayer do not work on web server with JavaWebStart

1 reply [Last post]
moviestar7
Offline
Joined: 2008-11-27
Points: 0

Hi All,

I am developing with JavaFX Preview SDK.
I want to make mp3 player which works as web application with Java Web Start.

I am using [javafx.scene.media.MediaPlayer] class and [MediaPlayer.play()] method to sound audio( *.mp3), but I could not sound audio(application was displayed, but audio don't played).
By the way, this mp3 player application could work on my local machine( running on netbeans IDE).

Is there any restriction [javafx.scene.media.MediaPlayer] on Preview SDK?
Or what, Is there any wrong on my sourcecode or environment ?

this is my developing environment .(local machine)
------------------------------------------------------------------------
os:windows xp
java version:1.6
IDE :netbeans IDE with JavaFX Preview SDK
------------------------------------------------------------------------

this is target environment to work my application.
------------------------------------------------------------------------
os:linux(turbo linux 10)
http server:apache(httpd-2.2.8)

deploying with *.jnlp file,
I already added mime type(jnlp) to conf/mime.types(apache).
------------------------------------------------------------------------

this is the part of my source code that sounding audio.
---------------------------------------------------------------------------------
action: function() {

var mediaPlayer:MediaPlayer = MediaPlayer{
autoPlay: false
volume:1.0
mute:false
media: Media {source: "http://www.maclesson.com/voice-pro/mp3/ohayo01mayu.mp3"}

}

mediaPlayer.play();
---------------------------------------------------------------------------------

If anyone knows this reason, please tell me, please.

Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
moviestar7
Offline
Joined: 2008-11-27
Points: 0

Hi,All

this question have resolved by javaFx SDK version 1.0(Dec 4 2008 released version).

Thank you !