Retrieve Publisher or Stream from IMediaStream?

Tyler_Conn
Wed, 10 Jun 2020 22:38:45 +0000
Wowza Streaming Engine

I’m trying to implement this Publish server-side live streams with the Wowza Streaming Engine Java API. My goal is when an incoming live stream has a connection issue that causes an unpublish or destroy, then to fill the published stream with a server-side video to fill in the “empty space”. Unfortunately when I try to create a publisher (in “onStreamDestroy”) with the same stream name is says “Stream name already in use: <stream_name>”. My guess was to try to get the existing Publisher from the Stream except I don’t have any Stream objects available, only IMediaStream. Is there a way to get a Publisher from IMediaStream? Or is there an alternative solution to my goal?

6 posts - 4 participants