My application supports clients pulling a stream from a URL. Streams are dormant (not actively connected to wowza) until the client side requests it.
I have achieved this with RTP and HTTP sessions, by creating a custom module that contains custom onRTPSessionCreate and onHTTPSessionCreate functions. I would like to do this same thing with WebRTC connections.
When I request a stream through WebRTC I see the following in the log:
- WebSocketSession.create[1308990425]
- WebRTCCommands.getOffer: STATUS_ERROR_STREAM_NOT_RUNNING: myStream
- WebSocketSession.destroy[1308990425]: source:client status:-1 description:Unknown
Neither the onRTPSessionCreate or onHTTPSessionCreate functions are reached during the above request. In the above request, the stream is not actively connected.
If I manually connect the stream before requesting the webRTC connection, onRTPSessionCreate IS reached. But that doesn’t help me – I need to find a way to interfere with execution before STATUS_ERROR_STREAM_NOT_RUNNING is logged.
I have tried the following:
protected class MyWebSocketListener extends WebSocketEventNotifyBase
{
@Override
public void onCreate(IWebSocketSession webSocketSession) {
WMSLoggerFactory.getLogger(null).info("TEST");
}
}
as well as
public class MVWebRTCExchangeSessionInfo extends HTTPWebRTCExchangeSessionInfo
{
@Override
protected void websocketSessionCreate(IWebSocketSession webSocketSession)
{
WMSLoggerFactory.getLogger(null).info("TEST");
}
}
With no luck. Any advice appreciated