SvenTiigi / YouTubePlayerKit

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

make originURL an parameter #100

Closed beswarm closed 1 month ago

beswarm commented 1 month ago

Background: This MR addresses an issue where YouTube requires login for video playback from certain IPs, displaying a "Sign in to confirm that you're not a bot" message. By setting the origin parameter to nil or something else, it can bypass this login requirement and allow videos to play normally.

The Change: make it an parameter. its default value is same as before.