From bac10d4a4b945f652ce5f79f7763ecab9493fb22 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 17 Mar 2026 08:16:32 +0000 Subject: [PATCH 1/2] Initial plan From 0d3e0f116de1e175702caea7f5926521e2fc3b2c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 17 Mar 2026 08:21:01 +0000 Subject: [PATCH 2/2] Summarize open issues in README, fix viewport meta tag (#101), fix seek() float support (#59) Co-authored-by: rinov <16882820+rinov@users.noreply.github.com> --- README.md | 21 +++++++++++++++++++++ YoutubeKit/Player/YTSwiftyPlayer.swift | 2 +- YoutubeKit/Resources/player.html | 1 + 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5be9c9c..e6ab665 100644 --- a/README.md +++ b/README.md @@ -232,6 +232,27 @@ YoutubeAPI.shared.send(request) { result in } ``` +## Known Issues + +Below is a summary of the currently open issues. Contributions and pull requests are welcome! + +| # | Title | Category | +|---|-------|----------| +| [#111](https://github.com/rinov/YoutubeKit/issues/111) | Error code 4 when loading any video | Bug | +| [#109](https://github.com/rinov/YoutubeKit/issues/109) | "This Video is unavailable" error code 0 | Bug | +| [#102](https://github.com/rinov/YoutubeKit/issues/102) | DecodingError when fetching YouTube playlist items | Bug | +| [#97](https://github.com/rinov/YoutubeKit/issues/97) | SwiftUI integration broken after `loadPlayerHTML()` rename | Bug | +| [#89](https://github.com/rinov/YoutubeKit/issues/89) | 403 PERMISSION_DENIED when using `SearchListRequest` from iOS client | Question | +| [#80](https://github.com/rinov/YoutubeKit/issues/80) | Add support for YouTube Live Stream embed | Enhancement | +| [#77](https://github.com/rinov/YoutubeKit/issues/77) | No API to control player volume | Question | +| [#63](https://github.com/rinov/YoutubeKit/issues/63) | No way to hide share/watch icons in the player | Question | +| [#36](https://github.com/rinov/YoutubeKit/issues/36) | Swift 4.2 and non-iOS Apple platform support | Question | +| [#35](https://github.com/rinov/YoutubeKit/issues/35) | Looping ignores `startTime`/`endTime` after first loop | Bug | + +> **Fixed in recent versions:** +> - [#101](https://github.com/rinov/YoutubeKit/issues/101) Missing `` in `player.html` causing small controls on some devices — fixed by adding the viewport meta tag. +> - [#59](https://github.com/rinov/YoutubeKit/issues/59) `seek(to:allowSeekAhead:)` only accepted `Int` seconds — changed to `Double` for sub-second precision. + ## Requirements Xcode 16+ diff --git a/YoutubeKit/Player/YTSwiftyPlayer.swift b/YoutubeKit/Player/YTSwiftyPlayer.swift index 8d3ab15..e78fbdc 100755 --- a/YoutubeKit/Player/YTSwiftyPlayer.swift +++ b/YoutubeKit/Player/YTSwiftyPlayer.swift @@ -159,7 +159,7 @@ open class YTSwiftyPlayer: WKWebView { evaluatePlayerCommand("stopVideo()") } - public func seek(to seconds: Int, allowSeekAhead: Bool) { + public func seek(to seconds: Double, allowSeekAhead: Bool) { evaluatePlayerCommand("seekTo(\(seconds),\(allowSeekAhead ? 1 : 0))") } diff --git a/YoutubeKit/Resources/player.html b/YoutubeKit/Resources/player.html index eca79a1..8bc72cf 100755 --- a/YoutubeKit/Resources/player.html +++ b/YoutubeKit/Resources/player.html @@ -1,6 +1,7 @@
+