SvenTiigi / YouTubePlayerKit

A Swift Package to easily play YouTube videos 📺
https://sventiigi.github.io/YouTubePlayerKit/
MIT License
717 stars 64 forks source link

Small documentation fixes #20

Closed hartti closed 2 years ago

hartti commented 2 years ago

MacOS usage

Add note that one should tick the box for "Outgoing Connections (Client)" on Signing and Capabilities. Otherwise the player always fails.

Typos

1

In Section "Usage":

autPlay: true

should be

autoPlay: true

2

In Section "Configuration" the following does not work

let youTubePlayer = YouTubePlayer(
    source: "https://youtube.com/watch?v=psL_5RIBqnY",
    configuration: configuration
)

should be

let youTubePlayer = YouTubePlayer(
    source: .url("https://youtube.com/watch?v=psL_5RIBqnY"),
    configuration: configuration
)
SvenTiigi commented 2 years ago

Great find 👍 I've just fixed the typos and added a small hint to enable "Outgoing Connections (Client)" for a macOS target.