<commit_before>---
layout: page
---

## Player Configuration  

The player configuration is the main data object of the Mobile Video Player SDK. 

This object is used for configuring custom players, including specific plugins, and obtaining the media that will be played on the device.

> Note: To view additional technical documentation about the player configuration, see [this article](https://kaltura.github.io/playkit/api/ios/Classes/PlayerConfig.html).

### Creating a PlayerConfig Instance  


>swift

```swift
let config = PlayerConfig()

```
>objc

```obc
PlayerConfig *config = [PlayerConfig new];

```

>Note: To initialize the player configuration, you'll need a `MediaEntry`. 

### About the Media Entry

The MediaEntry can be created using one of the following methods:

* Manually, by instatiating a new `PKMediaEntry` instance and filling the fields.
* Using a `MockMediaProvider` to create a `PKMediaEntry` from a JSON input file or JsonObject.
* Using a remote media provider, provided the `MediaEntryProvider` implementations: 
  * For OVP environments, use `KalturaOvpMediaProvider`
  * For OTT environments, use `PhoenixMediaProvider`

Once you have a `MediaEntry` ready, you can build the player configuration and plugins, and continue to prepare the Kaltura Mobile Video Player for play.

> Note: To view additional technical documentation about the player configuration, see [this article](https://kaltura.github.io/playkit/api/ios/Classes/MediaEntry.html).

</br>

## Have Questions or Need Help?

Check out the [Kaltura Player SDK Forum](https://forum.kaltura.org/c/playkit) page for different ways of getting in touch.

<commit_msg>Update v3_iOS_PlayerConfig.md<commit_after>---
layout: page
---

## Player Configuration  

The player configuration is the main data object of the Mobile Video Player SDK. 

This object is used for configuring custom players, including specific plugins, and obtaining the media that will be played on the device.

> Note: To view additional information about the player configuration, see the [Player Config API documentation](https://kaltura.github.io/playkit/api/ios/Classes/PlayerConfig.html).

### Creating a PlayerConfig Instance  


>swift

```swift
let config = PlayerConfig()

```
>objc

```obc
PlayerConfig *config = [PlayerConfig new];

```

>Note: To initialize the player configuration, you'll need a `MediaEntry`. 

### About the Media Entry

The MediaEntry can be created using one of the following methods:

* Manually, by instatiating a new `PKMediaEntry` instance and filling the fields.
* Using a `MockMediaProvider` to create a `PKMediaEntry` from a JSON input file or JsonObject.
* Using a remote media provider, provided the `MediaEntryProvider` implementations: 
  * For OVP environments, use `KalturaOvpMediaProvider`
  * For OTT environments, use `PhoenixMediaProvider`

Once you have a `MediaEntry` ready, you can build the player configuration and plugins, and continue to prepare the Kaltura Mobile Video Player for play.

> Note: To view additional information about the Media Entry, see the [Player Config API documentation](https://kaltura.github.io/playkit/api/ios/Classes/MediaEntry.html).


## Have Questions or Need Help?

Check out the [Kaltura Player SDK Forum](https://forum.kaltura.org/c/playkit) page for different ways of getting in touch.


{'fraction_non_alphanumeric': 0.08141275067345106, 'fraction_numerical': 0.000299311583358276, 'mean_word_length': 4.772020725388601, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 14, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5450069', 'n_tokens_mistral': 911, 'n_tokens_neox': 875, 'n_words': 398}