feature: added new stream types (#15)
- Others: fixed manifest.json and enabled disable_auth flag
This commit is contained in:
Родитель
d6115a027f
Коммит
2937f92067
|
@ -5,7 +5,7 @@
|
|||
"featureFlags": {
|
||||
"DISABLE_AUTHENTICATION": {
|
||||
"description": "Disable authentication flow when true",
|
||||
"isActive": false,
|
||||
"isActive": true,
|
||||
"userRole": 1
|
||||
}
|
||||
},
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"name": "Broadcast Development Kit",
|
||||
"icons": [
|
||||
{
|
||||
"src": "favicon.ico",
|
||||
"src": "favicon.png",
|
||||
"sizes": "64x64 32x32 24x24 16x16",
|
||||
"type": "image/x-icon"
|
||||
}
|
||||
|
|
|
@ -40,12 +40,21 @@ export const InactiveStatuses = [
|
|||
];
|
||||
|
||||
export enum StreamType {
|
||||
VbSS,
|
||||
PrimarySpeaker,
|
||||
Participant,
|
||||
VbSS = 0,
|
||||
PrimarySpeaker = 1,
|
||||
Participant = 2,
|
||||
TogetherMode = 3,
|
||||
LargeGallery = 4,
|
||||
LiveEvent = 5,
|
||||
}
|
||||
|
||||
export const SpecialStreamTypes = [StreamType.VbSS, StreamType.PrimarySpeaker];
|
||||
export const SpecialStreamTypes = [
|
||||
StreamType.VbSS,
|
||||
StreamType.PrimarySpeaker,
|
||||
StreamType.LargeGallery,
|
||||
StreamType.LiveEvent,
|
||||
StreamType.TogetherMode,
|
||||
];
|
||||
|
||||
export enum StreamMode {
|
||||
Caller = 1,
|
||||
|
|
|
@ -122,6 +122,9 @@ const StreamCard: React.FC<StreamCardProps> = (props) => {
|
|||
case StreamType.VbSS:
|
||||
return isStageEnabled;
|
||||
case StreamType.Participant:
|
||||
case StreamType.LargeGallery:
|
||||
case StreamType.LiveEvent:
|
||||
case StreamType.TogetherMode:
|
||||
return stream.isSharingVideo;
|
||||
}
|
||||
default:
|
||||
|
|
Загрузка…
Ссылка в новой задаче