# MediaState

Information about media being streamed by Participant

---

### Nested Class Summary

| Modifier and Type | Class | Description |
| --- | --- | --- |
| | | |

### Field Summary

| Modifier and Type | Field | Description |
| --- | --- | --- |
| `private final Boolean` | `isVideoSharing` |  |
| `private final Boolean` | `isFrontCameraSharing` |  |
| `private final Boolean` | `isBackCameraSharing` |  |
| `private final Boolean` | `isScreenSharing` |  |
| `private final Boolean` | `isScreenAnnotationEnabled` |  |
| `private final Boolean` | `isAudioSharing` |  |
| `private final ScreenMeet.VideoState` | `videoState` |  |
| `private final ScreenMeet.AudioState` | `audioState` |  |

### Constructor Summary

| Constructor | Description |
| --- | --- |
| `MediaState(ScreenMeet.VideoState videoState, ScreenMeet.AudioState audioState)` |  |

### Enum Constant Summary

| Enum Constant | Description |
| --- | --- |
| | |

### Method Summary

| Modifier and Type | Method | Description |
| --- | --- | --- |
| `final Boolean` | `isVideoSharing()` |  |
| `final Boolean` | `isFrontCameraSharing()` |  |
| `final Boolean` | `isBackCameraSharing()` |  |
| `final Boolean` | `isScreenSharing()` |  |
| `final Boolean` | `isScreenAnnotationEnabled()` |  |
| `final Boolean` | `isAudioSharing()` |  |
| `final ScreenMeet.VideoState` | `getVideoState()` |  |
| `final ScreenMeet.AudioState` | `getAudioState()` |  |

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

---

### Constructor Detail

#### MediaState

```java
MediaState(ScreenMeet.VideoState videoState, ScreenMeet.AudioState audioState)
```

Parameters:
- `videoState` - contains Map of VideoSources currently streamed and some helper properties
- `audioState` - contains Map of AudioSources currently streamed and some helper properties. For now, SDK client has a single AudioSource: Microphone.

### Method Detail

#### isVideoSharing

```java
final Boolean isVideoSharing()
```

#### isFrontCameraSharing

```java
final Boolean isFrontCameraSharing()
```

#### isBackCameraSharing

```java
final Boolean isBackCameraSharing()
```

#### isScreenSharing

```java
final Boolean isScreenSharing()
```

#### isScreenAnnotationEnabled

```java
final Boolean isScreenAnnotationEnabled()
```

#### isAudioSharing

```java
final Boolean isAudioSharing()
```

#### getVideoState

```java
final ScreenMeet.VideoState getVideoState()
```

#### getAudioState

```java
final ScreenMeet.AudioState getAudioState()
```
