videoLayer.player < object>

Player object for the video layer. Allows you to control the video and listen for playback events. See this overview of all video methods and properties.
译:视频层的播放器对象。允许您控制视频和侦听回放事件。查看所有视频方法和属性的概述。

# Set on creation 
layerA = new VideoLayer
    video: "hello.mp4"

# Enable auto play 
layerA.player.autoplay = true

# Play the video 
layerA.player.play()

# Jump to 5 seconds 
layerA.player.fastSeek(5)

# Listen to paused playback 
Events.wrap(layerA.player).on "pause", ->
    print "Video paused"

results matching ""

    No results matching ""