src/index.js
function onCanPlayStart() {
		media.removeEventListener('canplaythrough', onCanPlayStart);

		// dispatch new "canplaystart" event
		dispatchCustomEvent(media, 'canplaystart');

		if (!paused || media.autoplay) {
			media.play();
		}
	}
function onCanPlayStart() {
		media.removeEventListener('canplaythrough', onCanPlayStart);

		// dispatch new "canplaystart" event
		dispatchCustomEvent(media, 'canplaystart');

		if (!paused || media.autoplay) {
			media.play();
		}
	}
function onCanPlayStart ( ) { media . removeEventListener ( 'canplaythrough' , onCanPlayStart ) ; // dispatch new "canplaystart" event dispatchCustomEvent ( media , 'canplaystart' ) ; if ( ! paused || media . autoplay ) { media . play ( ) ; } }
when the media can play
when the media can play