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
  • Protocol conformance
  • Properties
  • Initializers
  • Examples
  1. Video Player
  2. SDK
  3. iOS
  4. CloudVideoPlayer
  5. Data types
  6. PlaybackSpeed

PlaybackSpeed

Written by
Yandex Cloud
Updated at November 5, 2026
View as Markdown
  • Contents
  • Description
  • Protocol conformance
  • Properties
  • Initializers
  • Examples
public struct PlaybackSpeed: Equatable

Playback speed

ContentsContents

This page displays:

  • Properties
  • Initializers

DescriptionDescription

Use predefined constants or define a value with a custom rate. To check whether the playback speed is supported for the current content, call the canSet(playbackSpeed:) method for the YaPlayer object.

Protocol conformanceProtocol conformance

The structure conforms to the Equatable protocol.

PropertiesProperties

Name

Type

Description

rate

Float

Playback speed factor

paused

PlaybackSpeed

Playback paused. The playback speed is zero

x025

PlaybackSpeed

0.25× playback speed

x050

PlaybackSpeed

0.5× playback speed

x075

PlaybackSpeed

0.75× playback speed

x100

PlaybackSpeed

Normal (1×) speed 1×

x125

PlaybackSpeed

1.25× playback speed

x150

PlaybackSpeed

1.5× playback speed

x175

PlaybackSpeed

1.75× playback speed

x200

PlaybackSpeed

2× playback speed

allCases

[PlaybackSpeed]

All preset playback speed options from 0.25× to 2×

InitializersInitializers

public init(rate: Float)

Defines a playback speed with a custom factor.

Parameters:

  • rate: Playback speed factor. The valid range depends on the content.

ExamplesExamples

if player.canSet(playbackSpeed: .x150) {
  try? player.set(playbackSpeed: .x150)
}

Was the article helpful?

Previous
PlaybackConfig
Next
PlayerStatus
© 2026 Direct Cursus Technology L.L.C.