Package io.antmedia.plugin.api
Interface IStreamListener
public interface IStreamListener
-
Method Summary
Modifier and TypeMethodDescriptionvoid
joinedTheRoom
(String roomId, String streamId) AMS inform the plugins when a new participant joins to the conference roomvoid
leftTheRoom
(String roomId, String streamId) AMS inform the plugins when a participant leaves from the conference roomdefault void
streamFinished
(Broadcast broadcast) AMS inform the plugins when a stream is finished with this method.default void
streamFinished
(String streamId) Deprecated, for removal: This API element is subject to removal in a future version.default void
streamStarted
(Broadcast broadcast) AMS inform the plugins when a stream is started with this method.default void
streamStarted
(String streamId) Deprecated, for removal: This API element is subject to removal in a future version.usestreamStarted(Broadcast)
because Broadcast object may be deleted when this method is called
-
Method Details
-
streamStarted
Deprecated, for removal: This API element is subject to removal in a future version.usestreamStarted(Broadcast)
because Broadcast object may be deleted when this method is calledAMS inform the plugins when a stream is started with this method.- Parameters:
streamId
- is the id of the stream
-
streamStarted
AMS inform the plugins when a stream is started with this method.- Parameters:
broadcast
- is the the broadcast object of the stream
-
streamFinished
Deprecated, for removal: This API element is subject to removal in a future version.usestreamFinished(Broadcast)
because Broadcast object may be deleted when this method is calledAMS inform the plugins when a stream is finished with this method.- Parameters:
streamId
- is the id of the stream
-
streamFinished
AMS inform the plugins when a stream is finished with this method.- Parameters:
broadcast
- is the broadcast object of the stream The default implementation does nothing in order to avoid breaking the existing plugins.
-
joinedTheRoom
AMS inform the plugins when a new participant joins to the conference room- Parameters:
roomId
- is the id of the conference roomstreamId
- is the id of new stream
-
leftTheRoom
AMS inform the plugins when a participant leaves from the conference room- Parameters:
rroomId
- is the id of the conference roomstreamId
- is the id of new stream
-
streamFinished(Broadcast)
because Broadcast object may be deleted when this method is called