-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,27 @@ | ||
// =================================================================================================== | ||
// Copyright (C) 2018 Kaltura Inc. | ||
// | ||
// Licensed under the AGPLv3 license, unless a different license for a | ||
// particular library is specified in the applicable library path. | ||
// | ||
// You may obtain a copy of the License at | ||
// https://www.gnu.org/licenses/agpl-3.0.html | ||
// =================================================================================================== | ||
|
||
import Foundation | ||
import SwiftyJSON | ||
|
||
fileprivate let enableTrickPlayKey = "enableTrickPlay" | ||
|
||
public class OTTLiveAsset: OTTMediaAsset { | ||
|
||
/** Is trick-play enabled for this asset */ | ||
var enableTrickPlay: Bool? | ||
|
||
public required init?(json: Any) { | ||
super.init(json: json) | ||
|
||
let jsonObj: JSON = JSON(json) | ||
self.enableTrickPlay = jsonObj[enableTrickPlayKey].bool | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters