ControlTimestamp
@interface ControlTimestamp : NSObject <NSCoding, NSCopying>
Class representing Control Timestamps reported by the DVB-CSS Timeline Synchronisation protocol. It provides operations to serialise and de-serialise control timestamps.
-
String representation of Content Time (position on TV’s timeline, time in nanoseconds)
Declaration
Objective-C
@property (readwrite, strong, nonatomic) NSString *contentTime;Swift
var contentTime: String! { get set } -
String representation of WallClock Time (position on WallClock Timeline, time in timeline ticks e.g. PTS ticks for Presentation Timestamp timeline)
Declaration
Objective-C
@property (readwrite, strong, nonatomic) NSString *wallClockTime;Swift
var wallClockTime: String! { get set } -
Time speed multiplier of TV’s timeline
Declaration
Objective-C
@property (assign, readwrite, nonatomic) double timelineSpeedMultiplier;Swift
var timelineSpeedMultiplier: Double { get set }
-
Create a ControlTimestamp instance from a dictionary containing known fields and values
Declaration
Objective-C
+ (instancetype)ControlTimestampWithDictionary:(NSDictionary *)dict;Parameters
dicta dictionary containing values for keys kCrtlTimestampContentTime, kCrtlTimestampWallClockTime, kCrtlTimestampTimelineSpeedMultiplier
Return Value
a ControlTimestamp instance
-
Initialise with a dictionary containing values for keys kCrtlTimestampContentTime, kCrtlTimestampWallClockTime, kCrtlTimestampTimelineSpeedMultiplier
Declaration
Objective-C
- (instancetype)initWithDictionary:(NSDictionary *)dict;Swift
init!(dictionary dict: [AnyHashable : Any]!)Parameters
dicta dictionary
Return Value
a ControlTimestamp instance
-
Serialise ControlTimestamp object to an NSDictionary
Declaration
Objective-C
- (NSDictionary *)toDictionary;Swift
func toDictionary() -> [AnyHashable : Any]!Return Value
an NSDisctionary instance
View on GitHub
ControlTimestamp Class Reference