Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add height bitrate parameter to CustomBroadcast #5272

Merged
merged 14 commits into from
Dec 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading