You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/YouTubeKit/YouTubeResponseTypes/VideoInfos/VideoInfosResponse.swift
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,9 @@ public struct VideoInfosResponse: YouTubeResponse {
40
40
/// }
41
41
/// }
42
42
/// ```
43
+
///
44
+
/// - Note: when putting this URL in an `AVURLAsset` to play it on macOS, you need to remove any potential VP9-format video from it, for example using a custom `AVAssetResourceLoaderDelegate`.
45
+
/// - Note: to see whether the stream is 360°, you can check if the `YT-EXT-PROJECTION-TYPE="equirectangular"` parameter is set in the .m3u8 playlist.
Copy file name to clipboardExpand all lines: Tests/YouTubeKitTests/YouTubeKitTests.swift
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -689,6 +689,12 @@ final class YouTubeKitTests: XCTestCase {
689
689
""",
690
690
TEST_NAME +"Checking if testCaptionsResponse.getFormattedString(withFormat: .srt) is good."
691
691
) // srt integrity checked with https://taoning2014.github.io/srt-validator-website/index.html
692
+
693
+
XCTAssertTrue(requestResult.downloadFormats.compactMap({$0 as?VideoInfosWithDownloadFormatsResponse.VideoDownloadFormat}).allSatisfy({$0.is360 ==false}), TEST_NAME +"Checking if the is360 property is correctly set -> has to be false")
XCTAssertTrue(video360result.downloadFormats.compactMap({$0 as?VideoInfosWithDownloadFormatsResponse.VideoDownloadFormat}).allSatisfy({$0.is360 ==true}), TEST_NAME +"Checking if the is360 property is correctly set -> has to be true")
0 commit comments