I have a need to set stream types for incoming streams after I've done username/password auth with a class that extends AuthenticateUsernamePasswordProviderBase
By default, I need my application to record, so I'm using the stream type "live-record". After authentication, I have values on the client or RTPSession properties I need to use to determine if I don't want to record
For RTMP clients, I'm able to take care of this in the onConnectAccept handler, by setting client.setStreamType("live"). I can't seem to find the right place to do this for RTPSessions, as in the onRTPSessionCreate() handler, the RTPStream for the session is still null, so I can't invoke setStreamType on it.
Where can I change the stream type for an RTP stream before the underlying IMediaStream is created?