Jump to content
  • 0

Implementing a custom VideoCapturer for Android SDK


AGIS
 Share

Question

Using the Ant Media Android SDK, can I implement a custom VideoCapturer that takes a video feed from an outside source that is already encoded like h264 or VP8? (I would also like to implement a capturer for encoded audio in a similar manner)
I have seen a reference listed below where the FileVideoCapturer is used as an example.
https://stackoverflow.com/questions/61160558/custom-video-source-for-webrtc-on-android


It appears to me that I am supposed to create a VideoFrame class using a VideoFrame.Buffer class (not the Java NIO buffer class) which seems to want an i420 encoded buffer.
Is there a way to provide an h264 frame instead?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Sorry for my late response. Actually answering this question is not easy for me. I should check it first on my end. So I was waiting for a available time to do it but I couldn't find so far. It may also take some time for me. I will check it soon.

Maybe someone in the community has experience and can answer before me

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...