Standard Media Actions
    • 1 Minute to read
    • Dark
      Light

    Standard Media Actions

    • Dark
      Light

    Article summary

    Using the media actions (parameter "mk") and the transferred positions (parameter "mt1"), the key figures for the media streams are calculated. It is therefore important to ensure that the requests are sent in the correct order. For example, no actions will be measured until a "play" for the video has taken place.

    wt_sendinfo_media(media_id, player_action, clip_position, clip_length, media_parameter, bandwidth, volume, mute)

    Parameter

    Data Type

    Description

    media_id

    String

    Media ID

    player_action

    String

    Media command. Possible values:

    clip_position

    String

    Current play position (seconds).

    clip_length

    String

    Total length (seconds).

    media_parameter

    Object string

    Media categories or custom parameters.

    bandwidth

    String

    Bandwidth (bit/sec)

    volume

    String

    Volume. 0 - 255 is supported. 0 - 100 is recommended.

    mute

    String

    Mute. Possible values:

    1 = Sound turned off, 0 = Sound turned on

    To prevent incorrect requests, each media view is limited to a maximum of 500 requests by the tracking library. All further requests will not be sent. Also, repeated requests within three seconds are filtered out and not transmitted.

    Notes on Media-Sessions

    Please observe the following notes on media sessions:

    • A media session is terminated with the media actions eofstop and init (initalso creates a new media session in this request).

    • With constant media ID and subsequent play follows, the old media session is continued.

    • With constant media ID and subsequent init, the old media session is closed and a new media session is started.

    • With different media IDs, a new media session is started. The will lead to multiple media sessions in parallel.

    Starting a Multimedia File (play)

    Current Position of the Multimedia File (pos)

    Pausing a Multimedia File (pause)

    Stopping a Multimedia File (stop)

    Ending a Multimedia File (eof)

    Spooling a Multimedia File (seek)


    Was this article helpful?