---
updatedAt: 2026-07-23T09:19:29.000Z
agentTools:
  projectIndex: https://developers.dailymotion.com/v0/llms.txt
---

# iOS SDK - Player methods

<br />

***

## Initialize Player (iOS)

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Methods
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        ##### `createPlayer()`
      </td>

      <td>
        Create a new video Player on an iOS environment. To create the Player object `DMPlayerView`, the object will be returned in the completion closure given as a parameter.

        Player ID is mandatory and can be created and managed either through the “Players” tab in the Dailymotion Studio or programmatically via the API.

        **Example:**<br />`Dailymotion.createPlayer(playerId: "PLAYERID", videoId: "VIDEOID", playerParameters: DMPlayerParameters() , playerDelegate: self)`
      </td>
    </tr>
  </tbody>
</Table>

## Load content (iOS)

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Methods
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        ##### `load​Content(video​Id:​playlist​Id:​start​Time:​)`
      </td>

      <td>
        To load a video or a playlist.

        You can play a specific video followed by a playlist by specifying both the video and playlist IDs.

        Note that the loaded content playback is based on the `autostart` configuration defined in the Player ID settings.
      </td>
    </tr>
  </tbody>
</Table>

## Playback (iOS)

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Methods
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        ##### `play()`
      </td>

      <td>
        To start or resume video playback.
      </td>
    </tr>

    <tr>
      <td>
        ##### `pause()`
      </td>

      <td>
        To pause video playback.
      </td>
    </tr>

    <tr>
      <td>
        ##### `seek(to:TimeInterval)`
      </td>

      <td>
        To seek to the specified time in video playback in seconds.
      </td>
    </tr>
  </tbody>
</Table>

## Advertising (iOS)

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Methods
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        ##### `setCustomConfig(config: Dictionary[String:String])`
      </td>

      <td>
        To set the config for ads and dynamically update the advertising parameter value. Use this method to send a new value which then gets updated when the player loads the next video file.
      </td>
    </tr>
  </tbody>
</Table>

## Settings (iOS)

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Methods
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        ##### `setFullScreen(fullscreen: Boolean, orientation: Orientation)`
      </td>

      <td>
        To enable or disable fullscreen mode with `fullscreen: true` or `fullscreen:false`.

        If `fullscreen: true`: fullscreen orientation is by default `orientation: .landscapeLeft`.

        Other possible values for `orientation`: `.landscapeRight` or `portrait`.

        **Example:** `setFullscreen(fullscreen: true, orientation: .landscapeRight)`
      </td>
    </tr>

    <tr>
      <td>
        ##### `setQuality(level: String)`
      </td>

      <td>
        To set the video’s quality to the specified quality.

        **Possible values:** \[`240`, `380`, `480`, `720`, `1080`, `1440`, `2160`, `default`]
      </td>
    </tr>

    <tr>
      <td>
        ##### `setPlaybackSpeed(speed: Double)`
      </td>

      <td>
        To modify the playback speed.

        If the value passed does not match one from the list, the playback speed is rounded to the superior one. The playback speed is kept across videos.

        **Possible values:** `[0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2]`
      </td>
    </tr>

    <tr>
      <td>
        ##### `setSubtitles(code: String)`
      </td>

      <td>
        To activate a subtitles track to a specified language if available.
      </td>
    </tr>

    <tr>
      <td>
        ##### `setScaleMode(config: String)`
      </td>

      <td>
        To adjust the player view of the video screen.

        **Possible values:** `fit` `fill` `fillLeft` `fillRight` `fillTop` or `fillBottom`
      </td>
    </tr>

    <tr>
      <td>
        ##### `setMute(mute: Boolean)`
      </td>

      <td>
        To set the mute mode of the Player.
      </td>
    </tr>

    <tr>
      <td>
        ##### `updateParams(params:)`
      </td>

      <td>
        To change the following Player config values at runtime: `scaleMode` `enableControls` & `customConfig`.
      </td>
    </tr>
  </tbody>
</Table>

## Player details (iOS)

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Methods
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        ##### `getState(completion: StateCompletionHandler)`
      </td>

      <td>
        To retrieve the current state of the Player.
      </td>
    </tr>

    <tr>
      <td>
        ##### `try await getState()`
      </td>

      <td>
        To retrieve the current state of the Player.
      </td>
    </tr>
  </tbody>
</Table>

<br />