         return self.player.currentItem?.duration.timeInterval ?? 0
     }
     
-    public var time: NSTimeInterval = 0
+    public private(set) var time: NSTimeInterval = 0
     {
         didSet
         {

    
    // MARK: Setup
    
    func setupAirplay()
    {
        self.player.usesExternalPlaybackWhileExternalScreenIsActive = true
    }

import AVFoundation
import AVKit

/// A RegularPlayer can be used to play regular videos.
public class RegularPlayer: NSObject, Player, ProvidesView
{
    private struct Constants
