Kyℓe Hensel
Kyℓe Hensel
Something like this would work: ```diff loadPlayer({ url: 'ws://localhost:5000/api/stream', canvas: canvasRef.current, + preserveDrawingBuffer: true }); + const myScreenshot = document.querySelector('canvas').toDataURL(); ```
Hi, there are examples in [the README file](https://github.com/k-yle/rtsp-relay) and the [examples folder](https://github.com/k-yle/rtsp-relay/tree/main/examples).
See #97
Please see [this section of the README](https://github.com/k-yle/rtsp-relay#usage-with-many-clients). Also ensure that you're destroying the stream on the client-side: ```js const player = await loadPlayer({ url: "https://example.com/abc" canvas: document.getElementById('my-canvas'), }); // when...
@Zw1d, sorry I forgot to include an `await` in the example [in this comment](https://github.com/k-yle/rtsp-relay/issues/151#issuecomment-1057403272). If you add the `await` it should work fine
Hi, you said _"When the ipcam turns off the audio input, the streaming stops without any error."_ Is this only an issue when you use `rtsp-relay`, or is it also...
This is not something I can fix without access to a camera that exhibits this issue. Hence why it is labelled as 
Hi, you don't need to do this. You can just add `"esModuleInterop": true` to `tsconfig.json`
Hi, the full list of options you can supply to `loadPlayer` is [available here](https://github.com/k-yle/rtsp-relay/blob/main/browser/jsmpeg.d.ts#L3-L62).
Hi @kyeshmz, `jsmpeg` isn't available on npm so we can't easily bundle it, besides from copy-pasting the js file. This is something we should consider though. For now, if you...