Initial version of status bar.

This commit is contained in:
Dermot Duffy committed 2024-08-16 20:08:21 -07:00
1 parent db9303c60d
commit e503f0e429
77 files changed
+3072 -1061

No files matched your search

@@ -0,0 +1,12 @@
import { MediaTechnology } from '../../../types';
import { VideoRTC } from '../../../components/live/go2rtc/video-rtc';
export const getTechnologyForVideoRTC = (
element: VideoRTC,
): MediaTechnology[] | undefined => {
const tech = [
...(!!element.pc ? ['webrtc'] : []),
...(!element.pc && element.mseCodecs ? ['mse', 'hls'] : []),
];
return tech.length ? tech : undefined;
};