Skip to main content
Version: 5.7.0

ProtectStreamUntil

Protects a playback stream from being purged (but not deleted) for the given number of days (from now). If the number of days given is less than the normal purge interval days (from createdAt), the longer protection date is applied. Can only be called by users involved in the playback stream.

ServiceOperation
playbackStreamPROTECT_STREAM_UNTIL

Method Parameters

ParameterDescription
playbackStreamIdIdentifies the stream to protect.
numDaysThe number of days the stream is to be protected (from now).

Usage

http://localhost:3000
string playbackStreamId = "streamId";
int numDays = 365;

SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.PlaybackstreamService.ProtectStreamUntil(playbackStreamId, numDays, successCallback, failureCallback);
JSON Response
{
"data": {
"protectedUntil": "2025-10-15 19:46:20"
},
"status": 200
}