0xced / XCDYouTubeKit

YouTube video player for iOS, tvOS and macOS
MIT License
2.92k stars 626 forks source link

Additional patterns in XCDYouTubePlayerScript #463

Closed Nikitos9I closed 4 years ago

Nikitos9I commented 4 years ago

Hello!

Many of those who use your library sometimes encounter a problem when YouTube updates its patterns (it takes time until you update the library, until we pull up the changes, and until Apple approves a new version of our app: all this time, users will not play videos from YouTube)

We have the ability to pull up these patterns from the server without updating the application

As a solution I can offer this option: add a new parameter additionalPatterns to the XCDYouTubePlayerScript file in the initialiser and use them if they are non-nil. Else use your hardcoded patterns.

I hope for a quick response and cooperation. Best regards, Nikita Savinov

SoneeJohn commented 4 years ago

I was thinking of doing something similar. It was actually planned in https://github.com/0xced/XCDYouTubeKit/issues/199

Would you mind opening a pull request to add this?

Nikitos9I commented 4 years ago

I was thinking of doing something similar. It was actually planned in #199

Would you mind opening a pull request to add this?

Yea, I will do it

CWftw commented 4 years ago

This was a greatly needed feature. Thank you!