Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Video
    • Overview
    • Control
      • Overview
        • Getting started
          • Environment
          • PictureInPictureController
          • VideoSurface
          • YaPlayer
            • PlayerError
            • Configuration
            • ClientUserId
            • ContentIdEndpoint
            • From
            • PlaybackConfig
            • PlaybackSpeed
            • PlayerStatus
            • QuasiEndpoint
            • Time
            • VideoType
    • Browser autoplay policy
  • Access management
  • Pricing policy
  • Audit Trails events
  • Release notes
  • Troubleshooting

In this article:

  • Contents
  • Description
  • Properties
  • Initializers
  • Examples
  1. Video Player
  2. SDK
  3. iOS
  4. CloudVideoPlayer
  5. Data types
  6. PlaybackConfig

PlaybackConfig

Written by
Yandex Cloud
Updated at November 5, 2026
View as Markdown
  • Contents
  • Description
  • Properties
  • Initializers
  • Examples
public struct PlaybackConfig

Playback configuration

ContentsContents

This page displays:

  • Properties
  • Initializers

DescriptionDescription

Provided when setting the source via the set(source:config:) method of a YaPlayer object. Defines the initial behavior of the player.

PropertiesProperties

Name

Type

Description

autoplay

Bool

Automatically start playback after loading the source.

isMuted

Bool

Start playback without sound.

startPosition

Time

Position from which playback starts.

base

PlaybackConfig

Default configuration: playback from the beginning, not muted, no automatic start.

InitializersInitializers

public init(autoplay: Bool, isMuted: Bool, startPosition: Time = .zero)

Creates a playback configuration.

ExamplesExamples

let config = PlaybackConfig(autoplay: true, isMuted: false, startPosition: Time(sec: 30))
player.set(source: endpoint, config: config)

Was the article helpful?

Previous
From
Next
PlaybackSpeed
© 2026 Direct Cursus Technology L.L.C.