Skip to content

Commit 6bbba75

Browse files
committed
Removed option to control playback of 360° videos due to limitation of the underlying iFrame API
#69
1 parent b62da0f commit 6bbba75

3 files changed

+1
-119
lines changed

README.md

+1-17
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ When submitting an app to the App Store which includes the `YouTubePlayerKit`, p
8989

9090
- Audio background playback is not supported as it violates the YouTube Terms of Service.
9191
- Simultaneous playback of multiple YouTube players is not supported.
92+
- Controlling playback of [360° videos](https://developers.google.com/youtube/iframe_api_reference#Spherical_Video_Controls) is not supported on iOS and macOS.
9293

9394
## Usage
9495

@@ -410,23 +411,6 @@ try await youTubePlayer.getPlaylist()
410411
try await youTubePlayer.getPlaylistIndex()
411412
```
412413

413-
#### Controlling playback of 360° videos
414-
415-
```swift
416-
// Retrieves properties that describe the viewer's current perspective
417-
try await youTubePlayer.get360DegreePerspective()
418-
419-
// Sets the video orientation for playback of a 360° video
420-
youTubePlayer.set(
421-
perspective360Degree: .init(
422-
yaw: 50,
423-
pitch: 20,
424-
roll: 60,
425-
fov: 10
426-
)
427-
)
428-
```
429-
430414
#### Setting the playback rate
431415

432416
```swift

Sources/API/YouTubePlayer+360DegreePerspectiveAPI.swift

-53
This file was deleted.

Sources/Models/YouTubePlayer+Perspective360Degree.swift

-49
This file was deleted.

0 commit comments

Comments
 (0)