Compare commits

...

1 Commits

Author SHA1 Message Date
Jørgen Henrichsen 0b0f2e594a Apply remote commands immediately, if an item is loaded. 2019-08-06 09:28:25 +02:00
+9 -3
View File
@@ -40,9 +40,15 @@ public class AudioPlayer: AVPlayerWrapperDelegate {
public var audioTimePitchAlgorithm: AVAudioTimePitchAlgorithm = AVAudioTimePitchAlgorithm.lowQualityZeroLatency
/**
Default remote commands to use for each playing item
*/
public var remoteCommands: [RemoteCommand] = []
Default remote commands to use for each playing item.
*/
public var remoteCommands: [RemoteCommand] = [] {
didSet {
if let item = currentItem {
self.enableRemoteCommands(forItem: item)
}
}
}
// MARK: - Getters from AVPlayerWrapper