From 3fccfd66101a8e06f27e9dff7a1f2e575843b0a9 Mon Sep 17 00:00:00 2001 From: Ed Ropple Date: Wed, 15 Dec 2021 15:23:27 -0500 Subject: [PATCH] added update-live-stream test to exercise patches --- examples/video/exercise-live-streams.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/examples/video/exercise-live-streams.php b/examples/video/exercise-live-streams.php index c8cbf6e..ea8ad33 100644 --- a/examples/video/exercise-live-streams.php +++ b/examples/video/exercise-live-streams.php @@ -26,6 +26,18 @@ assert($stream->getData()->getId() != null); print("create-live-stream OK ✅\n"); + # ========== update-live-stream ========== + $updateLiveStreamRequest = new MuxPhp\Models\UpdateLiveStreamRequest([ + "latency_mode" => "standard", + "reconnect_window" => 35 + ]); + $updatedStream = $liveApi->updateLiveStream($stream->getData()->getId(), $updateLiveStreamRequest); + var_dump($updatedStream); + assert($updatedStream->getData()->getReconnectWindow() == 35); + assert($updatedStream->getData()->getLatencyMode() == "standard"); + + print("update-live-stream OK ✅\n"); + // ========== list-live-streams ========== $streams = $liveApi->listLiveStreams(); assert($streams->getData()[0]->getId() != null);