Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track.onclose fired after receiving about 20 tracks #329

Open
kappe opened this issue Feb 4, 2025 · 1 comment
Open

Track.onclose fired after receiving about 20 tracks #329

kappe opened this issue Feb 4, 2025 · 1 comment

Comments

@kappe
Copy link

kappe commented Feb 4, 2025

Hi!

I'm testing on something like your media-example.
Peer 1 is a webpage sending an offer and providing a videostream.
Peer 2 is node-datachannel on the backend.

The Peer 1 and 2 are connecting without a problem.
Datachannel is instanciated and periodicaly sending small text messages.

When state switches to "connected" I'm calling "onTrack".
After onMessage has received between 20 to 30 tracks, "onClosed" ist fired? There is no debug message and no error fired. On Peer 1 (Browser) too, there no error.
During my tests I only call "console.log( message.length )" inside onMessage.

After onClosed is fired, Datachannel is still working and sending text messages.

The goal should be to store the video in a file on backend.
Any idea why the videostream is interrupted?
I have this behavior in version 0.24 and 0.25

Best regards

Harry

@murat-dogan
Copy link
Owner

Hello,

Could you please create/share a sample repo? So I can also try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants