fixed dispatch eslint errors
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import { useAudioStore } from "_store/audioStore";
|
||||
import {
|
||||
LocalParticipant,
|
||||
LocalTrackPublication,
|
||||
Participant,
|
||||
RemoteParticipant,
|
||||
RemoteTrack,
|
||||
RemoteTrackPublication,
|
||||
@@ -30,19 +28,12 @@ export const handleTrackSubscribed = (
|
||||
}
|
||||
};
|
||||
|
||||
export const handleTrackUnsubscribed = (
|
||||
track: RemoteTrack,
|
||||
publication: RemoteTrackPublication,
|
||||
participant: RemoteParticipant,
|
||||
) => {
|
||||
export const handleTrackUnsubscribed = (track: RemoteTrack) => {
|
||||
// remove tracks from all attached elements
|
||||
track.detach();
|
||||
};
|
||||
|
||||
export const handleLocalTrackUnpublished = (
|
||||
publication: LocalTrackPublication,
|
||||
participant: LocalParticipant,
|
||||
) => {
|
||||
export const handleLocalTrackUnpublished = (publication: LocalTrackPublication) => {
|
||||
// when local tracks are ended, update UI to remove them from rendering
|
||||
publication.track?.detach();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user