From 6f80af5bd0f5c515b38ffac7bb399cd4024137d2 Mon Sep 17 00:00:00 2001 From: Wonne Joosen Date: Wed, 20 May 2026 21:22:42 +0200 Subject: [PATCH 1/2] add section on tracking protocols --- .../web/theolive/basic-playback-guide.mdx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/theoplayer/how-to-guides/web/theolive/basic-playback-guide.mdx b/theoplayer/how-to-guides/web/theolive/basic-playback-guide.mdx index 177dd93233c0..f5c3323ceffa 100644 --- a/theoplayer/how-to-guides/web/theolive/basic-playback-guide.mdx +++ b/theoplayer/how-to-guides/web/theolive/basic-playback-guide.mdx @@ -109,6 +109,16 @@ Once you know what options you have available, you can set the stream to be a sp player.videoTracks[0].targetQuality = qualities[indexOfDesiredQualityLayer]; ``` +## Tracking Streaming Protocols + +In OptiView Live, an [`Endpoint`](https://optiview.dolby.com/docs/theoplayer/v11/api-reference/web/interfaces/Endpoint.html) can contain sources for multiple streaming protocols. For instance, it can be configured to load a WebRTC source for real time streaming but load a HLS source to allow seeking into a DVR window. Another use case is one where HESP is used as the primary streaming protocol, but the player could fall back to a HLS source if the platform doesn't support HESP playback. + +To track switches between the possible streaming protocols, you can listen for the `currentsourcechange` event. The `currentSource` property in the payload shows which source is being used under the hood. + +```javascript +player.addEventListener('currentsourcechange', console.log) +``` + ## More information - [API references](pathname:///theoplayer/v11/api-reference/web/classes/Player.html) From 05791d9120eb06a894fda34d3459467f26d71f52 Mon Sep 17 00:00:00 2001 From: Wonne Joosen Date: Wed, 20 May 2026 21:44:33 +0200 Subject: [PATCH 2/2] prettier --- theoplayer/how-to-guides/web/theolive/basic-playback-guide.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theoplayer/how-to-guides/web/theolive/basic-playback-guide.mdx b/theoplayer/how-to-guides/web/theolive/basic-playback-guide.mdx index f5c3323ceffa..3541e7d84116 100644 --- a/theoplayer/how-to-guides/web/theolive/basic-playback-guide.mdx +++ b/theoplayer/how-to-guides/web/theolive/basic-playback-guide.mdx @@ -116,7 +116,7 @@ In OptiView Live, an [`Endpoint`](https://optiview.dolby.com/docs/theoplayer/v11 To track switches between the possible streaming protocols, you can listen for the `currentsourcechange` event. The `currentSource` property in the payload shows which source is being used under the hood. ```javascript -player.addEventListener('currentsourcechange', console.log) +player.addEventListener('currentsourcechange', console.log); ``` ## More information