Must be called under a SemanticRelayProvider.
SemanticRelayProvider
const playerRef = useRef<MusicXmlPlayerHandle>(null);const { broadcast, isFollowing } = useMusicXmlPlayerSync({ localUserId, isPresenter, enabled: true, fileId, presenterId, onRemoteCommand: (command) => playerRef.current?.apply(command),}); Copy
const playerRef = useRef<MusicXmlPlayerHandle>(null);const { broadcast, isFollowing } = useMusicXmlPlayerSync({ localUserId, isPresenter, enabled: true, fileId, presenterId, onRemoteCommand: (command) => playerRef.current?.apply(command),});
Must be called under a
SemanticRelayProvider.