Hello,
I am trying to create a mobile application for video streaming using the libstreaming library (https://github.com/fyhertz/libstreaming) and the Wowza Streaming Cloud. My goal is to stream from an Android device directly to a live stream created at the Wowza Streaming Cloud platform. I intend to use the Wowza Streaming Cloud API, not the SDK.
Here is what I have already done:
- I have created a free trial Wowza Cloud account and added a live stream (camera/encoder: “Other RTSP”, Aspect ratio: the same as the one I use in my application code);
- My application code is based on the example https://github.com/fyhertz/libstreaming-examples/tree/master/example3. I modified the host, port, and credentials to match the information from my live (and transcoder) at Wowza Cloud. I used the “Host Server” as host (rtsp://78fc72.entrypoint.cloud.wowza.com), the “Host port” as port (1935), and the “Application name"/"Stream Name” as path (/app-24f5/46980fd5).
When I press the button in the app to start the live (which leads to the function startStream() from libstreaming being called), the libstreaming calls return the following messages:
D/RtspClient(21320): Connecting to RTSP server…
I/RtspClient(21320): ANNOUNCE rtsp://78fc72.entrypoint.cloud.wowza.com:1935/app-24f5/46980fd5 RTSP/1.0
D/RtspClient(21320): Response from server: 401
V/RtspClient(21320): RTSP server name: Wowza Streaming Engine 4.8.2 build20200527125639
I/RtspClient(21320): ANNOUNCE rtsp://78fc72.entrypoint.cloud.wowza.com:1935/app-24f5/46980fd5 RTSP/1.0
D/RtspClient(21320): Response from server: 200
I/RtspClient(21320): SETUP rtsp://78fc72.entrypoint.cloud.wowza.com:1935/app-24f5/46980fd5/trackID=0 RTSP/1.0
D/RtspClient(21320): Response from server: 200
D/RtspClient(21320): Setting destination ports: 6970, 6971
I/RtspClient(21320): SETUP rtsp://78fc72.entrypoint.cloud.wowza.com:1935/app-24f5/46980fd5/trackID=1 RTSP/1.0
D/RtspClient(21320): Response from server: 200
D/RtspClient(21320): Setting destination ports: 6972, 6973
I/RtspClient(21320): RECORD rtsp://78fc72.entrypoint.cloud.wowza.com:1935/app-24f5/46980fd5 RTSP/1.0
D/RtspClient(21320): Response from server: 200
I/RtspClient(21320): OPTIONS rtsp://78fc72.entrypoint.cloud.wowza.com:1935/app-24f5/46980fd5 RTSP/1.0
D/RtspClient(21320): Response from server: 200
I/RtspClient(21320): OPTIONS rtsp://78fc72.entrypoint.cloud.wowza.com:1935/app-24f5/46980fd5 RTSP/1.0
D/RtspClient(21320): Response from server: 200
I/RtspClient(21320): OPTIONS rtsp://78fc72.entrypoint.cloud.wowza.com:1935/app-24f5/46980fd5 RTSP/1.0
It keeps sending the “OPTIONS” message as long as I keep the stream on at the device and the live stream is on (started) at the Wowza Streaming Cloud.
Althoug according to the logs above the streaming appears to be working, I keep not being able to see the video tumbnail (“No video detected”) at the Wowza platform. I can also verify in my live stream page that the inbound stream is not connected.
I would appreciate any help in solving this problem.
Regards,
Karina