Open tiennguyen12g opened 1 year ago
But i get slow when display on app. When I use Scrcpy, it displays good because it connect and stream data via USB.
How is it slow? A high latency? A low frame rate?
How do you display the video stream on your app?
How is it slow? A high latency? A low frame rate?<
When i connect and use it, it is a little latency ( less than 1 second). But when i switched to using other app or browser and then back to using it, the delay is a lot ( more than 30s). The window use Scrcpy is still good in display.
How do you display the video stream on your app?<
I do three command above and create a Node server that listen the data stream with port tcp:1234 from android device. The server create a websocket that emit data. I use h264-live-player decode the data stream and display on canvas in html. If you need a video, i will show it. Thank bro.
I use h264-live-player
It probably buffers frames, which adds latency.
Hello everyone, I want to get video stream and use in electron app. Now I use tcp:1234 for getting video stream data from device.
But i get slow when display on app. When I use Scrcpy, it displays good because it connect and stream data via USB. Question: