Kantar Media Streaming Sensor iOS
Kantar Media Streaming Measurement Library for iOS
Instance Methods | List of all members
<KMA_StreamAdapter> Protocol Reference

Implement this protocol to measure a streaming content. More...

#import <KMA_SpringStreams.h>

Instance Methods

(KMA_Player_Meta *) - getMeta
 Returns the information about the player. More...
 
(int) - getPosition
 Returns a positive position on the stream in seconds. More...
 
(int) - getDuration
 Returns the duration of the stream in seconds. More...
 
(int) - getWidth
 Returns the width of the video. More...
 
(int) - getHeight
 Returns the height of the video. More...
 
(BOOL) - isCastingEnabled
 Method to check if Chromecast sesion is enabled. More...
 

Detailed Description

Implement this protocol to measure a streaming content.

Method Documentation

◆ getDuration()

- (int) getDuration
required

Returns the duration of the stream in seconds.

If a live stream is playing, in most cases it's not possible to deliver a valid stream length. In this case, the value 0 must be delivered. Internally the duration will be set once if it is greater than 0.

◆ getHeight()

- (int) getHeight
required

Returns the height of the video.

If the content is not a movie the value 0 is to be delivered.

◆ getMeta()

- (KMA_Player_Meta*) getMeta
required

Returns the information about the player.

◆ getPosition()

- (int) getPosition
required

Returns a positive position on the stream in seconds.

◆ getWidth()

- (int) getWidth
required

Returns the width of the video.

If the content is not a movie the value 0 is to be delivered.

◆ isCastingEnabled()

- (BOOL) isCastingEnabled
required

Method to check if Chromecast sesion is enabled.

This defaults to no.


The documentation for this protocol was generated from the following file: