这两种方式有什么区别,哪种方式更好?还是两者都用?
绑定房间:(根据快速入门应用程序)
room.on('trackSubscribed', function(track, publication, participant) => {
});
绑定参与者:(根据 README.md git-repo)
room.on('participantConnected', function(participant) {
participant.on('trackSubscribed', track => trackSubscribed(div, track));
});