mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
libobs: Add bearer token to obs_service_connect_info
This adds a new OBS_SERVICE_CONNECT_INFO_BEARER_TOKEN which is needed for WHIP output. Signed-off-by: pkv <pkv@obsproject.com>
This commit is contained in:
parent
0c73c89571
commit
ed577a05aa
@ -42,6 +42,7 @@ enum obs_service_connect_info {
|
||||
OBS_SERVICE_CONNECT_INFO_USERNAME = 4,
|
||||
OBS_SERVICE_CONNECT_INFO_PASSWORD = 6,
|
||||
OBS_SERVICE_CONNECT_INFO_ENCRYPT_PASSPHRASE = 8,
|
||||
OBS_SERVICE_CONNECT_INFO_BEARER_TOKEN = 10,
|
||||
};
|
||||
|
||||
struct obs_service_info {
|
||||
|
@ -25,7 +25,8 @@
|
||||
"HLS",
|
||||
"FTL",
|
||||
"SRT",
|
||||
"RIST"
|
||||
"RIST",
|
||||
"WHIP",
|
||||
]
|
||||
},
|
||||
"common": {
|
||||
@ -222,7 +223,7 @@
|
||||
},
|
||||
{
|
||||
"$comment": "Require recommended output field if protocol field is not RTMP(S)",
|
||||
"if": { "required": ["protocol"], "properties": { "protocol": { "pattern": "^(HLS|SRT|RIST|FTL)$" } } },
|
||||
"if": { "required": ["protocol"], "properties": { "protocol": { "pattern": "^(HLS|SRT|RIST|FTL|WHIP)$" } } },
|
||||
"then": { "properties": { "recommended": { "required": ["output"] } } }
|
||||
}
|
||||
]
|
||||
|
@ -1086,6 +1086,8 @@ static const char *rtmp_common_get_connect_info(void *data, uint32_t type)
|
||||
|
||||
break;
|
||||
}
|
||||
case OBS_SERVICE_CONNECT_INFO_BEARER_TOKEN:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
@ -169,6 +169,8 @@ static const char *rtmp_custom_get_connect_info(void *data, uint32_t type)
|
||||
|
||||
break;
|
||||
}
|
||||
case OBS_SERVICE_CONNECT_INFO_BEARER_TOKEN:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user