Skip to content

Commit

Permalink
Rename streamScreen() to streamCapture()
Browse files Browse the repository at this point in the history
The capture source may be either the screen or the camera.
  • Loading branch information
rom1v committed May 14, 2024
1 parent da484b7 commit 09e8c20
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public SurfaceEncoder(SurfaceCapture capture, Streamer streamer, int videoBitRat
this.downsizeOnError = downsizeOnError;
}

private void streamScreen() throws IOException, ConfigurationException {
private void streamCapture() throws IOException, ConfigurationException {
Codec codec = streamer.getCodec();
MediaCodec mediaCodec = createMediaCodec(codec, encoderName);
MediaFormat format = createFormat(codec.getMimeType(), videoBitRate, maxFps, codecOptions);
Expand Down Expand Up @@ -254,7 +254,7 @@ public void start(TerminationListener listener) {
Looper.prepare();

try {
streamScreen();
streamCapture();
} catch (ConfigurationException e) {
// Do not print stack trace, a user-friendly error-message has already been logged
} catch (IOException e) {
Expand Down

0 comments on commit 09e8c20

Please sign in to comment.