---
title: "init(rawValue:)"
framework: mediaplayer
role: symbol
role_heading: Initializer
path: "mediaplayer/mpmediatype/init(rawvalue:)"
---

# init(rawValue:)

Creates a new instance with the specified raw value.

## Declaration

```swift
init(rawValue: UInt)
```
