Skip to content

Commit

Permalink
ENDOC-361 CN updates: Raw video (#1155)
Browse files Browse the repository at this point in the history
* Cn updates

* Review updates

---------

Co-authored-by: saudsami <[email protected]>
  • Loading branch information
hussain-khalid and saudsami authored Aug 12, 2024
1 parent 5b83aad commit 42d4f4b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

1. Implement the `onCaptureVideoFrame` and `onRenderVideoFrame` callbacks. After obtaining the video data, you can process it according to your specific scenario.

<Admonition type="caution" title="Caution">
When modifying parameters in a `VideoFrame`, ensure that the updated parameters match the actual video frame in the buffer. Failure to do so may result in unexpected rotation or distortion in both the local preview and the remote video.
</Admonition>

```java
private final IVideoFrameObserver iVideoFrameObserver = new IVideoFrameObserver() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

2. Implement the `onCaptureVideoFrame` and `onRenderVideoFrame` callbacks to handle the capture and rendering of video frames.

<Admonition type="caution" title="Caution">
When modifying parameters in a `videoFrame`, ensure that the updated parameters match the actual video frame in the buffer. Failure to do so may result in unexpected rotation or distortion in both the local preview and the remote video.
</Admonition>

```swift
class RawVideoDataMain: BaseViewController {
var localVideo = Bundle.loadVideoView(type: .local, audioOnly: false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

2. Implement the `onCaptureVideoFrame` and `onRenderVideoFrame` callbacks to handle the capture and rendering of video frames.

<Admonition type="caution" title="Caution">
When modifying parameters in a `videoFrame`, ensure that the updated parameters match the actual video frame in the buffer. Failure to do so may result in unexpected rotation or distortion in both the local preview and the remote video.
</Admonition>

```swift
class RawVideoDataMain: BaseViewController {
var localVideo = Bundle.loadVideoView(type: .local, audioOnly: false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

1. Before joining the channel, create an instance of `IVideoFrameObserver` and call `registerVideoFrameObserver` to register the video observer.

<Admonition type="caution" title="Caution">
When modifying parameters in a `VideoFrame`, ensure that the updated parameters match the actual video frame in the buffer. Failure to do so may result in unexpected rotation or distortion in both the local preview and the remote video.
</Admonition>

```cpp
// Register or unregister the video observer
BOOL CGrayVideoProcFrameObserver::RegisterVideoFrameObserver(
Expand Down

0 comments on commit 42d4f4b

Please sign in to comment.