Skip to content

Commit

Permalink
Update custom_video_source_android_ng.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyuagora committed Sep 14, 2023
1 parent 4527922 commit 848761d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ private void pushVideoFrameByTexture(int textureId, VideoFrame.TextureBuffer.Typ

// 获取 SDK 当前的 Monotonic Time
long currentMonotonicTimeInMs = engine.getCurrentMonotonicTimeInMs();
// 创建一个 VideoFrame 对象,传入要推送的 Texture 视频帧和视频帧的 Monotonic Time (单位为纳秒)
VideoFrame videoFrame = new VideoFrame(frameBuffer, 0, currentMonotonicTimeInMs * 1000000);

// 通过视频轨道将视频帧推送到 SDK
Expand Down

0 comments on commit 848761d

Please sign in to comment.