Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update multitrack-publish-and-play-with-ams.md #408

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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://<your-server-domain>:<port>/<application-name>/multitrack-play.html?id=<main-stream-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.
Expand Down