Android OpenTV Player SDK  5.35.0.1710620932
OTVEvent Class Reference

Detailed Description

A class describing a single event

Each instance of this class describes a single key event reported.

An OTVEvent contains

  • A timestamp for when the event occurred
  • The event type/group, which could be one of the following:
    • PLAYBACK - for events pertaining to playback of a stream
    • MANIFEST_DL - for events happening when the player downloads a DASH manifest or HLS playlist
    • SEGMENT_DL - for events happening where a content data segment is fetched
    • DRM_DL - not currently used
    • LICENCE_REQUEST - for provisioning and key requests sent to a license server
    • SESSION_MANAGEMENT - for SSM Session setup, renewal and teardwon
  • The command - a more specific description of the event
  • Extra - additional information (if available) in stringified JSON format

Public Member Functions

Date getTimestamp ()
 Returns the event's timestamp. More...
 
String getType ()
 Returns a string representation of the event's type. More...
 
String getCommand ()
 Returns a string representation of the event's command. More...
 
String getExtra ()
 Returns a string representation of the event's optional extra information. More...
 
String toString ()
 Returns a string representation of the object. More...
 

Member Function Documentation

◆ getCommand()

String getCommand ( )

Returns a string representation of the event's command.

Returns
the event's command string.

◆ getExtra()

String getExtra ( )

Returns a string representation of the event's optional extra information.

Returns
the extra information (if exists) or an empty string.

◆ getTimestamp()

Date getTimestamp ( )

Returns the event's timestamp.

Returns
the event's timestamp.

◆ getType()

String getType ( )

Returns a string representation of the event's type.

Returns
the event's type string.

◆ toString()

String toString ( )

Returns a string representation of the object.

Returns
a string representation of the object.