Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit472add7

Browse files
committed
add hack comment
1 parent9577030 commit472add7

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

‎client/src/App.svelte‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
(rt)=>rt?.kind==="video"&&rt.track,
3838
);
3939
remoteVidTrack=firstRemote?.track||null;
40+
console.log(remoteVidTrack);
4041
if (remoteVideoEl)
4142
remoteVideoEl.srcObject=remoteVidTrack
4243
?newMediaStream([remoteVidTrack])

‎client/src/lib/index.ts‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,24 @@ export class PulsebeamClient {
140140
`Received track on MID${mid} (kind:${track.kind}) but no matching subscription found. Stopping track.`,
141141
);
142142
track.stop();
143+
// TODO: this is a hack to get auto subscribed
144+
// this.remoteTracks.setKey(track.id, {
145+
// slotId: mid,
146+
// remoteTrackId: track.id,
147+
// kind: track.kind as "video" | "audio",
148+
// track: track,
149+
// error: undefined,
150+
// });
151+
// track.onended = () => {
152+
// if (this.#instanceTerminated) return;
153+
// const currentTrackInfo = this.remoteTracks.get()[track.id];
154+
// if (currentTrackInfo) { // Ensure it hasn't been removed by unsubscribe
155+
// this.remoteTracks.setKey(track.id, {
156+
// ...currentTrackInfo,
157+
// track: null,
158+
// });
159+
// }
160+
// };
143161
}
144162
};
145163

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp