I use JMF (JMF 2.1.1-FCS  for Linux) in Linux os (Redhat 6.2 + 2.2.14
kernel + JDK1.3.0).
A java video player which uses the jmf api, streams from a rtsp server.

Sometimes, when starting (to connect & play),  the player hangs without
playing.
Once Player.start() is called, after getting some RTP data, "
de.hiqos.media.protocol.rtsp.DataSource.stop() " is called by tha Player

(why???).   ( But it never started playeing only got some RTP data).  It

appears that it hangs during Realizing or Prefetching state of the
controller. Below I provide the debug messages.
I would appreciate if anybody can help me resolve this problem.

Thanks in advance.

Rgds
Thava

 java  Cutter
javax
com.sun
com.ibm
Protocol-Prefix "de.hiqos" set.
Could not commit protocolPrefixList
 src_ip_addr : 192.168.14.4
DataSource()
 setLocator (ml)
setLocator ://192.168.13.4:1054/ont
 aa//192.168.13.4:1054/ont
 aa2/
 a1
 b192.168.13.4:1054/ont
 bb192.168.13.4:1054
 bb12
 bbb:1054
 c
 //192.168.13.4:1054/ont
 192.168.13.4
1054
 ont
connect
java.vendor: Blackdown Java-Linux Team
inNetscape: false
rtspSocket.describe(ont)
readResponse()
200
Content Length = 924
Time Length = 287
Byte Length = 50772612
Window Width = 352
Window Height = 240
Average bitrate= 1411200
Max. packet size = 2560
rtspSocket.setup( ont )
 data_port : 1066
 RTSP-setup () end
readResponse()
End of rtspSocket.setup(ont) => 200
Session ID = cb5ccfcf
SSRC = 95537655
getContentType
de.hiqos.media.protocol.rtsp.DataSource.getControl(
javax.media.CachingControl )
rtspDataSource.getControl( javax.media.CachingControl )
Open log file: /home/zaw/code/appl/video/client/jmf.log
player.stop()
player.start()
ControllerEvent:
javax.media.TransitionEvent[source=com.sun.media.content.video.mpeg.Handler@3cc262,previous=Unrealized,current=Realizing,target=Started]

instanceof
TransitionEventjavax.media.TransitionEvent[source=com.sun.media.content.video.mpeg.Handler@3cc262,previous=Unrealized,current=Realizing,target=Started]

prevStr = previous=Unrealized, currentStr = current=Realizing, targetStr

= target=Started
de.hiqos.media.protocol.rtsp.DataSource.start()
inNetscape: false
rtspSourcestream.start()
rtpReader.setPlaying( true )
rtspSocket.play( 0 )
readResponse()
End of rtspSocket.play( 0 ) => 200
rtpReader.setPlaying( true )
getLocator
inNetscape: false
de.hiqos.media.protocol.rtsp.DataSource.getStreams()
rtspSourcestream.getContentLength()
rtspSourcestream.getContentLength()=50772612
SourceStream.read(0, 300)...
vec.size()=0+1--------------RTP packets lost: 0 - 16751
   done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1-1 done 160 Bytes
SourceStream.read(0, 300)...
vec.size()=0+1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1-1 done 160 Bytes
SourceStream.read(0, 300)...
vec.size()=0+1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
  vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
SourceStream.read(0, 300)...
vec.size()=1 done 300 Bytes
rtspSourcestream.seek( 0 )
rtspSourcestream.jump(0)
RTSPSourcestream.stop()
rtspSocket.pause()
readResponse()
+1+1+1+1+1+1+1+1+1+1+1End of rtspSocket.pause() => 200
rtpReader.setPlaying( false )
rtspSourcestream.start()
rtpReader.setPlaying( true )
rtspSocket.play( 0 )
readResponse()
End of rtspSocket.play( 0 ) => 200
rtpReader.setPlaying( true )
SourceStream.skip(0)
SourceStream.read(0, 0)...
vec.size()=0+1--------------RTP packets lost: 0 - 16766
 done 0 Bytes


   de.hiqos.media.protocol.rtsp.DataSource.stop()

RTSPSourcestream.stop()
rtspSocket.pause()
readResponse()
+1+1+1+1+1+1+1+1+1+1End of rtspSocket.pause() => 200
rtpReader.setPlaying( false )
de.hiqos.media.protocol.rtsp.DataSource.getDuration()
ControllerEvent:
javax.media.DurationUpdateEvent[source=com.sun.media.content.video.mpeg.Handler@3cc262,duration=javax.media.Time@29ce8c

instanceof DurationUpdateEvent
ControllerEvent:
javax.media.RealizeCompleteEvent[source=com.sun.media.content.video.mpeg.Handler@3cc262,previous=Realizing,current=Realized,target=Started]

Note : this controller state (during hanging) varies between Realizing ,

Realized and prefetching.





----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to