Add rotation metadata if initially in portrait mode

YouTube ignores it though - only supports landscape
This commit is contained in:
David Halls
2021-07-18 07:32:31 +01:00
parent 2767c05572
commit 8be5ea5d51
2 changed files with 5 additions and 3 deletions

View File

@@ -180,7 +180,7 @@ async function start() {
}
// start HLS from the canvas stream to the ingestion URL
hls = new HLS(canvas_stream, ingestion_url, ffmpeg_lib_url, frame_rate);
hls = new HLS(canvas_stream, ingestion_url, ffmpeg_lib_url, frame_rate, portrait);
hls.addEventListener('run', () => console.log('HLS running'));
hls.addEventListener('exit', ev => {
const msg = `HLS exited with status ${ev.detail.code}`;