Custom Media Actions

Prev Next

In addition to the standard media actions (init, play, pos, pause, stop, seek, eof), you can also transmit custom actions. This makes it possible to record additional activities within a media session.

For example, you can measure a click on a “Recommend” link during playback to evaluate the time of the interaction in the video.


When to send

  • Use a custom action whenever an event occurs that is not covered by the standard actions.

  • Send the current play position (mt1) and the total length (mt2) along with the custom action.

  • The name of the custom action is passed in the player_action parameter.


Example request

wt_sendinfo_media(
  "video_16889",   // media_id
  "recommend",     // custom action
  "90",            // mt1 / clip_position
  "600",           // mt2 / clip_length
  "",              // media_parameter
  "64000",         // bandwidth
  "100",           // volume
  "0"              // mute
);
http://track.wt-eu02.net/111111111111111/wt?p=414,st
&mi=video_16889
&mk=recommend
&mt1=90
&mt2=600
&bw=64000
&vol=100
&mut=0
&x=125378669541