Ant-Media-Server icon indicating copy to clipboard operation
Ant-Media-Server copied to clipboard

A question about reading frames data in a JS client

Open erezcohen opened this issue 3 years ago • 1 comments
trafficstars

description

I'm trying to figure out the latency we have from our backend where we have the server to our frontend webapp displaying the video. In the backend we add certain data to a specific frame after a user interaction (could be to the frame's metadata or even adding image data onto the frame itself) while in the frontend we would like to examine ALL the frames received for several seconds and find the specific frame.

My question is: Is there a way to do it using the WebRTCAdaptor interface? That is, is there a way to obtain all frames before / after they're passed to the video element and examine them? In my code I initialize a WebRTCAdaptor and pass to the param remoteVideoId an id of a video element on the page.

PS - I saw that you propose a solution for latency check using OCR (https://resources.antmedia.io/v1/docs/measuring-end-to-end-latency) however I would like to measure it directly. Also, I have a problem syncing the time between the client and the server.

erezcohen avatar Aug 01 '22 15:08 erezcohen

Hi @erezcohen ,

Thank you for the question. I think we're discussing this issue here as well -> https://community.antmedia.io/topic/1326-a-question-about-reading-frames-data-in-a-js-client/#comment-4817

Please let me know if you have any questions.

mekya avatar Aug 08 '22 11:08 mekya