Skip to content

Commit

Permalink
New webhooks playStart, playStop, recordStart issue #4666
Browse files Browse the repository at this point in the history
  • Loading branch information
lastpeony committed Jan 17, 2023
1 parent 878221c commit 3772dd6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/io/antmedia/AntMediaApplicationAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,9 @@ public void sendStartPlayWebHook(final String streamId, final String viewerId){

public void sendStopPlayWebHook(final String streamId, final String viewerId){
final Broadcast broadcast = getDataStore().get(streamId);
if(broadcast == null){
return;
}
final String listenerHookURL = broadcast.getListenerHookURL();
if (listenerHookURL == null || listenerHookURL.isEmpty()) {
return;
Expand All @@ -566,6 +569,9 @@ public void sendStopPlayWebHook(final String streamId, final String viewerId){

public void sendStartRecordWebHook(final String streamId){
final Broadcast broadcast = getDataStore().get(streamId);
if(broadcast == null){
return;
}
final String listenerHookURL = broadcast.getListenerHookURL();
if (listenerHookURL == null || listenerHookURL.isEmpty()) {
return;
Expand Down

0 comments on commit 3772dd6

Please sign in to comment.