Vanilagy / webm-muxer

WebM multiplexer in pure TypeScript with support for WebCodecs API, video & audio.
https://vanilagy.github.io/webm-muxer/demo
MIT License
249 stars 17 forks source link

onCluster not triggered upon setting streaming mode to true #50

Open iLulu1012 opened 1 month ago

iLulu1012 commented 1 month ago

Hi, I have been trying to use this package for one of my task. Upon playing with the demo-streaming, I realized the onCluster for the stream target does not trigger with streaming set to true on the muxer. The chunked argument also causes issue with monotonicity violation. Is there any insight to how one might be able to realizes the creation of a cluster if streaming is set to false? without having to care for the position argument as the cluster would be pipe immediately to the server. Thanks!

Vanilagy commented 1 week ago

Hi, I cannot reproduce the monotonicity violation issue. I switched to chunked: true in the streaming demo, but it does not raise a monotonicity violation. Can you show me the code that produced one on your end?

Regarding the onCluster callback: Thank you for bringing this to my attention. I'll investigate it when I find the time.

iLulu1012 commented 6 days ago

Hi Vanilagy, I actually couldnt reproduce the monotonicity violation issue anymore. Thanks for the response! But yeah it seems like the onCluster issue still exist?

Vanilagy commented 5 days ago

Yes, could be, I haven't looked into it yet.