Initial commit: SimVision tvOS streaming app
Features: - VOD library with movie grouping and version detection - TV show library with season/episode organization - TMDB integration for trending shows and recently aired episodes - Recent releases section with TMDB release date sorting - Watch history tracking with continue watching - Playlist caching (12-hour TTL) for offline support - M3U playlist parsing with XStream API support - Authentication with credential storage Technical: - SwiftUI for tvOS - Actor-based services for thread safety - Persistent caching for playlists, TMDB data, and watch history - KSPlayer integration for video playback Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
21
KSPlayer-main/Tests/KSPlayerTests/AudioTest.swift
Normal file
21
KSPlayer-main/Tests/KSPlayerTests/AudioTest.swift
Normal file
@@ -0,0 +1,21 @@
|
||||
import AVFoundation
|
||||
@testable import KSPlayer
|
||||
import XCTest
|
||||
|
||||
class AudioTest: XCTestCase {
|
||||
func testChannelLayout() {
|
||||
for (tag, mask) in layoutMapTuple {
|
||||
assert(tag: tag, mask: mask)
|
||||
}
|
||||
}
|
||||
|
||||
private func assert(tag: AudioChannelLayoutTag, mask: UInt64) {
|
||||
let channelLayout = AVAudioChannelLayout(layout: tag.channelLayout)
|
||||
XCTAssertEqual(channelLayout.channelLayout().u.mask == mask, true)
|
||||
}
|
||||
|
||||
private func assert(bitmap: AudioChannelBitmap, mask: UInt64) {
|
||||
let channelLayout = AVAudioChannelLayout(layout: bitmap.channelLayout)
|
||||
XCTAssertEqual(channelLayout.channelLayout().u.mask == mask, true)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user