Skip to main content

Mp4Event

APJS Script API reference for the Mp4Event enum.

TypeNameInterface Description
EnumKeyFrameInSecond

EnumPause

EnumPlayBegin

EnumPlayEnd

EnumResume

EnumStop

Examples

KeyFrameInSecond

let value = APJS.Mp4Event.KeyFrameInSecond;

Pause

let value = APJS.Mp4Event.Pause;

PlayBegin

let value = APJS.Mp4Event.PlayBegin;

PlayEnd

let value = APJS.Mp4Event.PlayEnd;

Resume

let value = APJS.Mp4Event.Resume;

Stop

let value = APJS.Mp4Event.Stop;

Use Case

@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use Mp4Event here
}
onUpdate(deltaTime: number) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies