Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated docs #2099

Merged
merged 2 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Keep Awake
nav: 12
---

HMSSDK's `setAlwaysScreenOn` method allows you to toggle always screen on mode which prevents the screen from turning off automatically.

This can be useful in scenarios where you want to keep the screen active constantly, such as during video playback.

```js
await hmsInstance.setAlwaysScreenOn(true);
```

When the always screen on mode is enabled, it prevents the device screen from turning off automatically due to inactivity.

> 🔑 Note: Enabling always screen on can have an impact on the device's battery life as it keeps the screen active even when not in use. Make sure to use this feature judiciously and consider disabling it when no longer needed.

24 changes: 24 additions & 0 deletions docs/react-native/v2/release-notes/release-notes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,30 @@ nav: 4.1
| @100mslive/react-native-room-kit | [![npm](https://img.shields.io/npm/v/@100mslive/react-native-room-kit)](https://www.npmjs.com/package/@100mslive/react-native-room-kit) |
| @100mslive/react-native-hms | [![npm](https://img.shields.io/npm/v/@100mslive/react-native-hms)](https://www.npmjs.com/package/@100mslive/react-native-hms) |

## 1.10.1 - 2024-03-15


| Package | Version |
| -------------------------------- | ------- |
| @100mslive/react-native-room-kit | 1.1.4 |
| @100mslive/react-native-hms | 1.10.1 |

### react-native-hms

- Added support for `switchAudioOutput` on iOS. An example usage of this API can be to programmatically route the audio of the Room to Earpiece or Speaker.

- Added API to keep device awake while in Room. This can be used to prevent the device from going to sleep while in a Room. Read more about it [here](https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/keep-awake).

### react-native-room-kit

- Added support for joining a Room in Prebuilt using only the Auth Token instead of Room Code.

- Users can now skip the Preview Screen based on a flag in the Prebuilt Customizer to directly enter a Room.

Updated to Android SDK 2.9.51 & iOS SDK 1.6.0

**Full Changelog**: [1.10.0...1.10.1](https://github.com/100mslive/react-native-hms/compare/1.10.0...1.10.1)

## 1.10.0 - 2024-03-05

| Package | Version |
Expand Down
Loading