Playwire Support

Playwire Support

  • Docs
  • Playwire Support
  • Playwire Dashboard

›Events

Welcome

  • About docs

Ads API

  • Getting started
  • Methods

    • tyche.addUnits()
    • tyche.displayUnits()
    • tyche.getUnits()
    • tyche.destroyUnits()
    • tyche.setPath()
    • tyche.triggerRefresh()

Video Player API

  • Getting started
  • Methods

    • Bolt.resizeVideo()
    • Bolt.setFullscreen()
    • Bolt.seek()
    • Bolt.muteMedia()
    • Bolt.unmuteMedia()
    • Bolt.setVolume()
    • Bolt.replayMedia()
    • Bolt.stopMedia()
    • Bolt.pauseMedia()
    • Bolt.playMedia()
    • Bolt.removeVideo()
    • Bolt.getCurrentContent()

    Events

    • Bolt.BOLT_AD_REQUEST_START
    • Bolt.BOLT_AD_STARTED
    • Bolt.BOLT_AD_ERROR
    • Bolt.BOLT_AD_CLICKED
    • Bolt.BOLT_FIRST_QUARTILE
    • Bolt.BOLT_MIDPOINT
    • Bolt.BOLT_THIRD_QUARTILE
    • Bolt.BOLT_AD_CUEPOINT
    • Bolt.BOLT_AD_COMPLETE
    • Bolt.BOLT_CONTENT_STARTED
    • Bolt.BOLT_CONTENT_STATE_CHANGED
    • Bolt.BOLT_CONTENT_ERROR
    • Bolt.BOLT_CONTENT_COMPLETE

    Attributes

    • data-active-color
    • data-background-color
    • data-foreground-color
    • data-autoload
    • data-container
    • data-id
    • data-config
    • data-ad-tag
    • data-height
    • data-width
    • data-onready
    • data-volume
    • data-watermark-url
    • data-watermark
    • data-force-flash

Video Content API

  • Getting started

Mobile App Integration

  • Getting started

Bolt.BOLT_MIDPOINT

Description

The BOLT_MIDPOINT event fires when 50% of the ad creative plays through.

Usage

If you are looking for a way to listen to when 50% of an ad plays, you can simply listen to the Bolt.BOLT_MIDPOINT player event. In the code snippet below, the video player with the data-id of myPlayer will fire a function when the event is triggered.

Bolt.on( 'myPlayer', Bolt.BOLT_MIDPOINT, function() {
    // do something
    console.log( 'BOLT_MIDPOINT Fired' );
});

Example

In this example, the player will load and call the bolt_midpoint() function once fully loaded via the data-onready attribute. When the ad creative plays 50% through, the BOLT_MIDPOINT event will fire and a console.log message will appear.

HTML

<!-- BOLT_MIDPOINT example -->
<script
    data-config="https://support.playwire.com/configs/config_spotx.json"
    data-height="100%"
    data-width="100%"
    data-id="myPlayer"
    data-onready="bolt_midpoint"
    src="//cdn.playwire.com/bolt/js/zeus/embed.js"
    type="text/javascript">
</script>
<!-- / BOLT_MIDPOINT example -->

JavaScript

function bolt_midpoint(){
    Bolt.on('myPlayer', Bolt.BOLT_MIDPOINT, function(){
        var message = 'BOLT_AD_MIDPOINT - Event Fired'
        console.log(message)
    })
}
← Bolt.BOLT_FIRST_QUARTILEBolt.BOLT_THIRD_QUARTILE →
  • Description
  • Usage
  • Example
Navigation
Playwire SupportPlaywire.com
US Headquarters

1000 E. Hillsboro Blvd. Suite 103
Deerfield Beach, FL 33441

European Headquarters

14 Grays Inn Rd.
London, EN WC1X 8HN

New York

33 Irving Pl.
New York, NY 10003

San Francisco

225 Bush St., Suite 1640
San Francisco, CA 94104

Follow Us
FacebookTwitterLinkedIn
Copyright © 2020 Playwire