feat(presenter): apply 'text' contentHint
...so that the text is more readable in the presenter mode. Chrome by default uses 'detail' for screen sharing. I went with the 'text' here, because the docs[1] say "may take advantage of encoder tools that optimize for text rendering." - whether that's good specifically for the presenter mode I don't know. It looked good for me when tested on Chrome. https://www.w3.org/TR/mst-content-hint/
This commit is contained in:
parent
e4c1046d7c
commit
820d9b2ba8
|
@ -141,7 +141,13 @@ export default class JitsiStreamPresenterEffect {
|
||||||
timeMs: 1000 / this._frameRate
|
timeMs: 1000 / this._frameRate
|
||||||
});
|
});
|
||||||
|
|
||||||
return this._canvas.captureStream(this._frameRate);
|
const capturedStream = this._canvas.captureStream(this._frameRate);
|
||||||
|
|
||||||
|
// Put emphasis on the text details for the presenter's stream
|
||||||
|
// See https://www.w3.org/TR/mst-content-hint/
|
||||||
|
capturedStream.getVideoTracks()[0].contentHint = 'text';
|
||||||
|
|
||||||
|
return capturedStream;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue