Write streamer header from ScreenEncoder

The screen encoder is responsible to write data to the video streamer.
This commit is contained in:
Romain Vimont
2023-02-06 11:57:37 +01:00
parent 576f0b512f
commit ceab2b2d6f
3 changed files with 16 additions and 10 deletions

View File

@@ -64,6 +64,9 @@ public class ScreenEncoder implements Device.RotationListener {
MediaFormat format = createFormat(videoMimeType, bitRate, maxFps, codecOptions);
IBinder display = createDisplay();
device.setRotationListener(this);
streamer.writeHeader();
boolean alive;
try {
do {