Connect to the platform


Join the party

Scores of video players, streaming services, publishing tools and other technologies already connect to theMoment platform.

Submit a new technology, and we'll develop the touchpoints necessary to connect.

See an example below.










Example: YouTube player touchpoints

The following values are used when connecting the Youtube player to theMoment platform:



⓵ Control player

{
 "play"                 : "['playVideo']()",
 "pause"                : "['pauseVideo']()",
 "seek"                 : "['seekTo']($1)",
 "time_get"             : "['getCurrentTime']()"
}


⓶ Extract metadata

{
 "video_host"           : ["'host_youtube'"],
 "video_resource_id"    : ["['getVideoData']()['video_id']"],
 "video_title"          : ["['getVideoData']()['title']"],
 "video_duration"       : ["['getDuration']()"],
 "video_thumb"          : ["*'https://i.ytimg.com/vi/' + $P['getVideoData']()['video_id'] + '/default.jpg'", "'https://s3-us-west-2.amazonaws.com/themoment-s3-bucket/app/moment_thumb/moment_thumb_default.png'"],
 "video_url"            : ["*'https://www.youtube.com/watch?v=' + $P['getVideoData']()['video_id']"],
 "video_type"           : ["'video'"],
 "video_status"         : ["'vod'"],
 "video_recorded_at"    : ["'0'"],
 "use_video_info_extra" : ["true"]
}


⓷ Create player

if (typeof YT !== 'undefined') {
    if (YT.get({{id}})) {
        player_object[{{player_id}}] = YT.get({{id}});
    }
    if (!player_object[{{player_id}}]) {
        player_object[{{player_id}}] = new YT.Player({{id}});
    }
}