Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

createRealizedPlayer never returns

Status
Not open for further replies.

jonwheatland

Programmer
Jul 21, 2004
1
US
I use the manager to create a realized player and I do not receive any exceptions yet I block indefinitly. The stack trace below occurs when I use the manager to get a non-realized player. The SimpleAudioPlayer1 client is attempting to rendezvous with an audio transmitter, transmitting the that same URL. Any thoughts?

C:\mediaplayer_sourcefiles>java SimpleAudioPlayer1 rtp://127.0.0.255:1234/audio
Setting up Player/Receiver for rtp://127.0.0.255:1234/audio
Print1
Print2
Print2.5
controllerEvent=javax.media.TransitionEvent[source=com.sun.media.content.rtp.Han
dler@192b996,previous=Unrealized,current=Realizing,target=Realized]
Print3

-> Playing file 'rtp://127.0.0.255:1234/audio'
Press the Enter key to exit
Starting audio player!
javax.media.NotRealizedError: Cannot get gain control on an unrealized player
at com.sun.media.BasicPlayer.getGainControl(BasicPlayer.java:526)
at SimpleAudioPlayer1.play(SimpleAudioPlayer1.java:48)
at SimpleAudioPlayer1.main(SimpleAudioPlayer1.java:83)
Exception in thread "main" javax.media.NotRealizedError: Cannot get gain control
on an unrealized player
at com.sun.media.BasicPlayer.getGainControl(BasicPlayer.java:526)
at SimpleAudioPlayer1.play(SimpleAudioPlayer1.java:48)
at SimpleAudioPlayer1.main(SimpleAudioPlayer1.java:83)
 
Are you trying to start the player before it gets into the REALIZED state?

Can't really help you without the code?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top