Support using the custom video serving endpoint even if you don't use object storage (#2924)
* feat(video): refactor video serving endpoint It can now be used without an object storage provider. Closes #2785 * fix: remove debug log
This commit is contained in:
@@ -70,6 +70,7 @@ const (
|
||||
customColorVariableValuesKey = "custom_color_variable_values"
|
||||
streamKeysKey = "stream_keys"
|
||||
disableSearchIndexingKey = "disable_search_indexing"
|
||||
videoServingEndpointKey = "video_serving_endpoint"
|
||||
)
|
||||
|
||||
// GetExtraPageBodyContent will return the user-supplied body content.
|
||||
@@ -974,3 +975,14 @@ func GetDisableSearchIndexing() bool {
|
||||
}
|
||||
return disableSearchIndexing
|
||||
}
|
||||
|
||||
// GetVideoServingEndpoint returns the custom video endpont.
|
||||
func GetVideoServingEndpoint() string {
|
||||
message, _ := _datastore.GetString(videoServingEndpointKey)
|
||||
return message
|
||||
}
|
||||
|
||||
// SetVideoServingEndpoint sets the custom video endpoint.
|
||||
func SetVideoServingEndpoint(message string) error {
|
||||
return _datastore.SetString(videoServingEndpointKey, message)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user