# MediaPlaybackSession

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-media-video/struct-mediaplaybacksession/

**struct** · [`ferroui-media-video`](/docs/0.5.0/api/ferroui-media-video/) · v0.5.0

```rust
struct MediaPlaybackSession
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Video/player.rs#L41)

## Members

- [`state`](#struct_field-state)
- [`position`](#struct_field-position)
- [`duration`](#struct_field-duration)
- [`natural_size`](#struct_field-natural_size)
- [`seekable`](#struct_field-seekable)
- [`decode`](#struct_field-decode)
- [`error`](#struct_field-error)

<a id="struct_field-state"></a>

### state

```rust
state: MediaPlaybackState
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Video/player.rs#L42)

<a id="struct_field-position"></a>

### position

```rust
position: std::time::Duration
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Video/player.rs#L43)

<a id="struct_field-duration"></a>

### duration

```rust
duration: Option<std::time::Duration>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Video/player.rs#L44)

<a id="struct_field-natural_size"></a>

### natural_size

```rust
natural_size: Option<(u32, u32)>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Video/player.rs#L45)

<a id="struct_field-seekable"></a>

### seekable

```rust
seekable: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Video/player.rs#L46)

<a id="struct_field-decode"></a>

### decode

```rust
decode: crate::frames::Acceleration
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Video/player.rs#L47)

<a id="struct_field-error"></a>

### error

```rust
error: Option<crate::MediaError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Video/player.rs#L48)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`
- `Default`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
