Releases: SRGSSR/srgmediaplayer-apple
Releases · SRGSSR/srgmediaplayer-apple
Maintenance release
Maintenance release
Improvements
- Mitigates startup issue with malformed on-demand streams containing misaligned timestamps (such streams should still be fixed but at least the player will behave in a better was in the meantime).
What's changed
- Xcode 15 with iOS 17 and tvOS 17 by @pyby in #126
- Build and test with Xcode 15.0.1 by @pyby in #131
- Build and test with Xcode 15.3 by @pyby in #132
- Bump rexml from 3.2.5 to 3.2.8 by @dependabot in #133
- Build and test with Xcode 15.4 by @pyby in #134
- Always seek to the start position to mitigate impact of timestamp misalignments by @defagos in #135
Full Changelog: 7.2.1...7.2.2
Maintenance release
Maintenance release
Improvement
- Add
SRG_NSTIMEINTERVAL_IS_VALID(NSTimeInverval)
(#128). - Various CI improvements.
Fixes
Full Changelog: 7.1.0...7.2.0
Maintenance release for Xcode 14
- The minimum deployment target has been bumped to iOS 12.
- This release makes sure the project builds with Xcode 14 without any significant warning.
- Restore Catalyst support with Xcode 14 (#105).
Maintenance release
- Remove assertions which could not always be entirely fulfilled.
Forced subtitles support
- When no subtitles have been explicitly enabled, forced subtitles matching the currently selected audio language are automatically displayed.
Maintenance release
- Fix playback rate sometimes not immediately changed when playing a DVR stream (#117).
- Update layout implementation.
Playback rate
New features
- The controller supports the rates 0.5×, 0.75×, 1×, 1.25×, 1.5×, 2× for slow, normal or fast playback. These supported values are returned from the
supportedPlaybackRates
property and the desired rate can be set using the newly availableplaybackRate
property. - Livestreams might not always support some playback speeds. The
effectivePlaybackRate
property returns the currently applied playback rate. - On iOS:
- The track selection button has been transformed into a settings button from which playback speed, audio track and subtitles can be selected.
- The settings button is visible at all times, not only when subtitles are available. The subtitle selection state is similarly not reflected anymore by the button itself.
- The button delegate protocol provides new methods called when the user picks a playback speed, audio track or subtitles.
- On tvOS:
- Playback speed can be selected using a dedicated button available from
SRGMediaPlayerViewController
main user interface. - The
SRGMediaPlayerViewControllerDelegate
protocol provides a new delegate method called when the playback speed is changed (no similar methods are provided for audio or subtitle track selection for technical reasons, though).
- Playback speed can be selected using a dedicated button available from
Improvements
- Playback setting window colors have been tweaked for better readability.
- Add slider dragging start and strop delegate methods to
SRGTimeSliderDelegate
. - Add support for slider increment and decrement accessibility gestures (#116).
Fix
- Fix tvOS 15 crashes when playing another media.
Breaking changes
SRGTracksButton
has been renamed asSRGPlaybackSettingsButton
.- The
alwaysHidden
playback settings button property has been removed, as the button is now always visible. Simply use thehidden
property when you need to hide the button. - The
selectedImage
playback settings button property has been removed, as there is no selected state anymore. SRGTracksButtonDelegate
has been renamed asSRGPlaybackSettingsButtonDelegate
. Existing method signatures have been updated appropriately.
Migration instructions
If you were previously using SRGTracksButton
:
- Update any code or resource (storyboard, xib) explicitly referencing the
SRGTracksButton
class, replacing it withSRGPlaybackSettingsButton
. - Update the
SRGMediaPlayerDesignables.m
file if you were using it by copying the updated file available from theDesignables
source code folder. - Replace calls to
alwaysHidden
withhidden
. - Update your button delegate protocol implementation to
SRGPlaybackSettingsButtonDelegate
.
Maintenance release
- Fix crash when playing another media on tvOS 15.2 (#114).