Skip to main content

NoPlayerException received evrytime calling Manager.createPlayer, for the rtpSocket with the content set to "rtpraw/video"

2 replies [Last post]
Ankzz
Offline
Joined: 2011-09-18
Points: 0

NoPlayerException received evrytime calling Manager.createPlayer, for the rtpSocket with the content set to "rtpraw/video"

<code>

String content = "rtpraw/" + media;
rtpsocket.setContentType(content);

// set the RTP Session address and port of the RTP data
rtp = new UDPHandler(address, port);

// set the above UDP Handler to be the
// sourcestream of the rtpsocket
rtpsocket.setOutputStream(rtp);

// set the RTP Session address and port of the RTCP data
rtcp = new UDPHandler(address, port +1);

// get a handle over the RTCP Datasource so that we can
// set the sourcestream and deststream of this source
// to the rtcp udp handler we created above.
rtcpsource = rtpsocket.getControlChannel();

// Since we intend to send RTCP packets from the
// network to the session manager and vice-versa, we need
// to set the RTCP UDP handler as both the input and output
// stream of the rtcpsource.
rtcpsource.setOutputStream(rtcp);
rtcpsource.setInputStream(rtcp);

// connect the RTP socket data source before
// creating the player
try {
rtpsocket.connect();
player = Manager.createPlayer(rtpsocket);
// rtpsocket.start();
} catch (NoPlayerException e) {
System.err.println(e.getMessage());
e.printStackTrace();
return;
}

</code>

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tobimichigan
Offline
Joined: 2011-09-03
Points: 0

Why not check "Manager.createPlayer" method for any unsed or irregular variable?

Ankzz
Offline
Joined: 2011-09-18
Points: 0

Where can I get the code for the Manager.createPlayer , as I am unable to get the same.

I installed JMF using an installer. So can't find the source for the same.