0
0
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:
Sean DuBois 2023-04-06 21:49:28 -04:00 committed by Colin Edwards
parent 0c73c89571
commit ed577a05aa
4 changed files with 8 additions and 2 deletions

View File

@ -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 {

View File

@ -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"] } } }
}
]

View File

@ -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;

View File

@ -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;