From 459b6ce9d47cf4f413ab9398909c8776a93e72bd Mon Sep 17 00:00:00 2001 From: Amarnath Thodupunoori <169143104+amarantmeida@users.noreply.github.com> Date: Wed, 4 Dec 2024 11:31:23 +0530 Subject: [PATCH] Update multitrack-publish-and-play-with-ams.md --- .../multitrack-publish-and-play-with-ams.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docs/guides/publish-live-stream/multitrack-publish-and-play-with-ams.md b/docs/guides/publish-live-stream/multitrack-publish-and-play-with-ams.md index 0d0f25cf..486ec76d 100644 --- a/docs/guides/publish-live-stream/multitrack-publish-and-play-with-ams.md +++ b/docs/guides/publish-live-stream/multitrack-publish-and-play-with-ams.md @@ -38,12 +38,17 @@ Assume you have two audio tracks with the stream IDs **audio1** and **audio2**. ![multitrack-streams.png](@site/static/img/multitrack-streams.png) -### Playing multitrack streams +### Playing Multitrack streams -Multitrack streams can be played with the sample page, **multitrackplayer.html** +Ant Media Server supports two distinct methods for playing multitrack streams. Users can either manage individual tracks separately or aggregate multiple tracks under a single main stream ID for unified playback. Here’s a breakdown of both approaches: -`https://AMS-domain:5443/AppName/multitrackplayer.html` +#### - Multitrack streams can be played with multitrackplayer.html the sample page +The multitrackplayer.html page is designed for scenarios where multiple streams are published as individual tracks, allowing precise control over each track. + +``` +https://AMS-domain:5443/AppName/multitrackplayer.html +``` ![sample.png](@site/static/img/sample(1).png) 1. Write the group ID in the text box @@ -55,6 +60,14 @@ You can enable or disable the video/audio feed for a sub-track with the ```enabl ![multitrack-player-1.png](@site/static/img/multitrack-player-1(1).png) +#### Unified Multitrack Playback with multitrack-play.html sample page +For a simpler experience, the multitrack-play.html page consolidates multiple subtracks under one main track ID, providing a unified stream for playback. This is ideal for users who prefer not to manage individual subtracks but want all streams merged automatically. +``` +https://://multitrack-play.html?id= +``` +![image](https://github.com/user-attachments/assets/9aa86c6a-7fde-4488-996d-f332367bec5a) + + ## Multitrack conference **conference.html** is a sample conference page that is compatible with multitrack playback.