Skip to content

Commit

Permalink
keep backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
burak-58 committed Dec 17, 2024
1 parent f73b0a6 commit d9db647
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/io/antmedia/AntMediaApplicationAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -2249,6 +2249,10 @@ public boolean removePacketListener(String streamId, IPacketListener listener) {
public void addFrameListener(String streamId, IFrameListener listener) {
//for enterprise
}

public IFrameListener createCustomBroadcast(String streamId) {
throw new IllegalStateException("This method is not implemented in Community Edition");
}

public IFrameListener createCustomBroadcast(String streamId, int height, int bitrate) {
throw new IllegalStateException("This method is not implemented in Community Edition");
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/io/antmedia/muxer/IAntMediaStreamHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,16 @@ public interface IAntMediaStreamHandler {
*/
public boolean removePacketListener(String streamId, IPacketListener listener);

/**
* Create another broadcast. It's useful to create another manipulated version of the original broadcast
* in the plugins. The returning frame listener should be feed with raw audio and video frames
*
* @param streamId
* @return
*/
public IFrameListener createCustomBroadcast(String streamId);


/**
* Create another broadcast. It's useful to create another manipulated version of the original broadcast
* in the plugins. The returning frame listener should be feed with raw audio and video frames
Expand Down

0 comments on commit d9db647

Please sign in to comment.