Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ygit committed Oct 27, 2021
1 parent 2d9cc7a commit 2424345
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/features/render-video.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ nav: 3.6

It all comes down to this. All the setup so far has been done so that we can show live streaming video in our beautiful apps.

The React Native SDK provides a Component HmsView that renders the video on screen. We have to pass video trackId, scaleType and sink in this component. The prop scaleType can be selected from HMSVideoViewMode as required. When sink is true the video will be visible and when it is false video would be removed. It is ios only prop for android it is handled by the package itself. We can also add mirror a boolean prop as true to flip videos horizontally. Here is a code snippet explaining the way to link a videoTrack to HmsView.
The React Native SDK provides a Component HmsView that renders the video on screen. We have to pass video trackId, scaleType and sink in this component. The prop scaleType can be selected from HMSVideoViewMode as required. When sink is true the video will be visible and when it is false video would be removed. We can also add mirror a boolean prop as true to flip videos horizontally. Here is a code snippet explaining the way to link a videoTrack to HmsView.

```js
import { HmsView, HMSVideoViewMode } from 'react-native-hms';
Expand Down
15 changes: 15 additions & 0 deletions documentation/release-notes/release-notes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@ title: Release Notes
nav: 4.1
---

## 0.7.1 - 2021-10-27
- Added mirror prop to HMSView to horizontally flip video tracks

## 0.7.0 - 2021-10-22
- Added audio level, peer & track object to HMSSpeaker
- Made package backwards compatible upto React Native version 0.63.0
- Removed Xcode 13 requirement
- Updated Sample app

## 0.6.0 - 2021-10-15
- Added aspect ratio prop to HMSView
- Asking for Camera & Microphone permissions only when required
- Updated video tiles aspect ratio
- Added horizontal pagination in sample app to improve performance

## 0.5.0 - 2021-09-29

- Added Role-based permissions
Expand Down

0 comments on commit 2424345

Please sign in to comment.