Jump to content
  • 0

A question about reading frames data in a JS client


Erez Cohen
 Share

Question

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.

Link to comment
Share on other sites

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

Hi @Erez Cohen

Thank you for asking this question. 

Quote

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.

Although WebRTCAdaptor interface does not directly support that,  I think WebRTC insertable streams is the solution for you.  Please check the Insertable Streams samples -> https://webrtc.github.io/samples/

Yes, providing an interface for WebRTCAdaptor can be something good. I don't know the interface of insertable streams, let us check it make sense to provide an interface for WebRTCAdaptor.

 

Quote

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.

You don't need to synch client and the server. You just need to synch publisher and player. 

 

Take care  🙂

Regards,

A. Oguz

Link to comment
Share on other sites

 Share

×
×
  • Create New...