Multitrack play - enabling tracks

42 views
Skip to first unread message

Ivan Kudeljnjak

unread,
Mar 11, 2022, 3:43:11 AM3/11/22
to Ant Media Server
Hi gals/guys,

I'm trying to do the following scenario in the AMS webrtc samples apps:

1. Create three streams, one is main stream (id = 1), two are substreams (ids = 2,3)
2. Open two publish sample apps on two different computers and publish streams 2 and 3 with mainTrackId = 1
3. Open multitrackplayer sample app and input streamid = 1 into textbox, click tracks and select tracks 2,3 and click play.

No matter what i do, multitrack player will always play only one video in three videos. Enabling/disabling tracks does not work. If i add another stream into publish it will add 4th video and all 4 will play this video.

IS this expected? Why does enableTrack() does not work?

Regards,
Ivan K.
Reply all
Reply to author
Forward
0 new messages