diff --git a/libobs/obs-service.h b/libobs/obs-service.h index 709f1c2c5..698b1c431 100644 --- a/libobs/obs-service.h +++ b/libobs/obs-service.h @@ -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 { diff --git a/plugins/rtmp-services/data/schema/service-schema-v5.json b/plugins/rtmp-services/data/schema/service-schema-v5.json index 983e18f5a..f3eaf271e 100644 --- a/plugins/rtmp-services/data/schema/service-schema-v5.json +++ b/plugins/rtmp-services/data/schema/service-schema-v5.json @@ -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"] } } } } ] diff --git a/plugins/rtmp-services/rtmp-common.c b/plugins/rtmp-services/rtmp-common.c index b9c96b2c7..5151cb695 100644 --- a/plugins/rtmp-services/rtmp-common.c +++ b/plugins/rtmp-services/rtmp-common.c @@ -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; diff --git a/plugins/rtmp-services/rtmp-custom.c b/plugins/rtmp-services/rtmp-custom.c index a4f6cd810..482f1ce08 100644 --- a/plugins/rtmp-services/rtmp-custom.c +++ b/plugins/rtmp-services/rtmp-custom.c @@ -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;