question

ChrisO-2928 avatar image
0 Votes"
ChrisO-2928 asked XavierPouyat-MSFT answered

"Stop API" for Live Event - Error "InvalidResource"

I'm setting up a live event and want to use the Rest API commands to start and stop the event. Start works but Stop returns with the error message of "InvalidResource" even though the resource name and location are the same as the start (see below for error).

"error": {
"code": "InvalidResource",
"message": "Exception of type 'Microsoft.Media.Streaming.Common.Api.Types.ApiException' was thrown."

Secondary question: Rest API's seem to be the only way to end a live event without deleting outputs. Is this true? is there a way to end a live event but NOT delete the event outputs?

azure-media-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

XavierPouyat-MSFT avatar image
0 Votes"
XavierPouyat-MSFT answered

Hello,
You need to delete the output(s) attached to the event before stopping the live event.
Deleting the output will not delete the recorded data if you keep the asset. Deleting the output will only stop the recording from the live event.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.