pedroSG94 / RTSP-Server

Plugin of rtmp-rtsp-stream-client-java to stream directly to RTSP player.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using RTSP in background doesn't work

swFan opened this issue · comments

commented

Hello , when i use the rtsp demo work in background, it doesn't work, I change the code as following:

rtspServerCamera2 = RtspServerCamera2(this, true, this, 1935)
rtspServerCamera2.setVideoCodec(VideoCodec.H264)

to start RTSP:
rtspServerCamera2.startStream()

but the demo will not work, who can help me?

You have background example in RootEncoder library app module. You only need replace stream class in that example with rtspServerCamera2
Closing as inactive.