Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ extension MUXSDKBandwidthMetricData {
default:
break
}

#if compiler(>=6.2)
if #available(iOS 26, tvOS 26, visionOS 26, *) {
requestMediaDuration = event.segmentDuration.muxTimeValue
}
#endif
}

convenience init?(event: AVMetricContentKeyRequestEvent) {
Expand Down
7 changes: 7 additions & 0 deletions Sources/MUXSDKStatsInternal/MuxCore/MUXSDKVideoData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ extension MUXSDKVideoData {
}
}

#if compiler(>=6.2)
@available(iOS 26, tvOS 26, visionOS 26, *)
func updateWithMediaRendition(_ mediaRendition: AVMetricMediaRendition) {
// videoSourceAdvertisedStableID = mediaRendition.stableID
}
#endif

@available(iOS 15, tvOS 15, *)
static func makeWithRenditionInfo(track: AVAssetTrack, on playerItem: AVPlayerItem) async -> sending Self {
let videoData = Self()
Expand Down
5 changes: 5 additions & 0 deletions Sources/MUXSDKStatsInternal/Publishers+AVPlayerItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ extension AVPlayerItem {

let videoData = MUXSDKVideoData()
videoData.updateWithAssetVariant(metricEvent.toVariant)
#if compiler(>=6.2)
if #available(iOS 26, tvOS 26, visionOS 26, *) {
videoData.updateWithMediaRendition(metricEvent.videoRendition)
}
#endif
muxEvent.videoData = videoData

return muxEvent
Expand Down