Skip to content

Commit

Permalink
Merge pull request #5272 from ant-media/filteringOnHW
Browse files Browse the repository at this point in the history
Add height bitrate parameter to CustomBroadcast
  • Loading branch information
mekya authored Dec 29, 2024
2 parents ee8f8e8 + c6e968d commit a792d34
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/io/antmedia/AntMediaApplicationAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -2427,11 +2427,15 @@ 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");
}

public void stopCustomBroadcast(String streamId) {
}

Expand Down
12 changes: 12 additions & 0 deletions src/main/java/io/antmedia/muxer/IAntMediaStreamHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,18 @@ public interface IAntMediaStreamHandler {
*/
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
*
* @param streamId
* @param height
* @param bitrate
* @return
*/
public IFrameListener createCustomBroadcast(String streamId, int height, int bitrate);

/**
* Stop the custom broadcast that is being created. Stop encoders and make database operations.
*
Expand Down

0 comments on commit a792d34

Please sign in to comment.