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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion src/main/java/io/antmedia/AntMediaApplicationAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -1742,7 +1742,7 @@ public void addFrameListener(String streamId, IFrameListener listener) {
//for enterprise
}

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

Expand Down
4 changes: 3 additions & 1 deletion src/main/java/io/antmedia/muxer/IAntMediaStreamHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,11 @@ public interface IAntMediaStreamHandler {
* 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);
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