Skip to content

Commit

Permalink
Merge branch 'release/7.2.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
defagos committed Aug 4, 2024
2 parents cbf8cf3 + 3041e15 commit 354b2c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Demo/Demo.xcconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Version information
MARKETING_VERSION = 7.2.2
MARKETING_VERSION = 7.2.3

// Deployment targets
IPHONEOS_DEPLOYMENT_TARGET = 12.0
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import PackageDescription

struct ProjectSettings {
static let marketingVersion: String = "7.2.2"
static let marketingVersion: String = "7.2.3"
}

let package = Package(
Expand Down
9 changes: 6 additions & 3 deletions Sources/SRGMediaPlayer/SRGMediaPlayerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,12 @@ - (void)setPlayer:(SRGPlayer *)player
};

SRGTimePosition *startTimePosition = [self timePositionForPosition:self.startPosition inSegment:self.targetSegment applyEndTolerance:YES];
[player seekToTime:startTimePosition.time toleranceBefore:startTimePosition.toleranceBefore toleranceAfter:startTimePosition.toleranceAfter notify:NO completionHandler:^(BOOL finished) {
completionBlock(finished);
}];
if (CMTIME_COMPARE_INLINE(startTimePosition.time, !=, kCMTimeZero) || self.streamType == SRGMediaPlayerStreamTypeOnDemand) {
[player seekToTime:startTimePosition.time toleranceBefore:startTimePosition.toleranceBefore toleranceAfter:startTimePosition.toleranceAfter notify:NO completionHandler:completionBlock];
}
else {
completionBlock(YES);
}
}
}
else if (playerItem.status == AVPlayerItemStatusFailed) {
Expand Down

0 comments on commit 354b2c5

Please sign in to comment.