Plugin player-container
This is intended to be used in conjunction with Secondary Player
Initializing the player-container
Customary stopping of MovieClip. In doing so, you prevent the reinitialization from occuring.
this.stop()
Creating the player-container and attaching a secondary player to it.
var PlayerContainer = $b.getPlugin('player-container')
var player = $b.getPlayer(0)
var container = new PlayerContainer({
surrogate: this,
player: player
})
Starting to play the video main
:
player.use('main')
player.node.play()
Properties
container.player
This is the player
you passed in via options of PlayerContainer
.
You can access the secondary player's node in this way. For example:
container.player.node.volume = 0.5
Methods
container.show()
This shows the container which will in turn show the video as well.
container.hide()
This hides the container which will in turn hide the video as well.