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

[Feature request] H264 dump with audio #10

Open
JellyBrick opened this issue Jun 2, 2023 · 0 comments
Open

[Feature request] H264 dump with audio #10

JellyBrick opened this issue Jun 2, 2023 · 0 comments

Comments

@JellyBrick
Copy link

@Override
public void onVideo(byte[] bytes) {
try {
videoFileChannel.write(ByteBuffer.wrap(bytes));
} catch (IOException e) {
e.printStackTrace();
}
}
@Override
public void onVideoSrcDisconnect() {
}
@Override
public void onAudio(byte[] bytes) {
}

to (e.g)

 @Override 
 public void onVideo(byte[] bytes) { 
     try { 
         videoFileChannel.write(ByteBuffer.wrap(bytes)); 
     } catch (IOException e) { 
         e.printStackTrace(); 
     } 
 } 
  
 @Override 
 public void onVideoSrcDisconnect() { 
 } 
  
 @Override 
 public void onAudio(byte[] bytes) { 
     try { 
         audioFileChannel.write(ByteBuffer.wrap(bytes)); 
     } catch (IOException e) { 
         e.printStackTrace(); 
     } 
 } 

I think it would be great to have the ability to export video and audio streams together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant