Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 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

In this article:

  • Contents
  • Discussion
  • Properties
  • Initializers
  • Examples
  1. Video Player
  2. SDK
  3. iOS
  4. CloudVideoPlayer
  5. Structs
  6. PlaybackConfig

PlaybackConfig

Written by
Yandex Cloud
Updated at May 28, 2026
  • Contents
  • Discussion
  • Properties
  • Initializers
  • Examples
public struct PlaybackConfig

Playback configuration

ContentsContents

  • Properties
  • Initializers

DiscussionDiscussion

Passed when setting the source via YaPlayer/set(source:config:). 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.

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.