Rex's plugins for Construct2
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About

rex_youtube_player

Plugin, ACE table, Discussion thread
Dependence: None


Introduction
Play youtube video at iframe.

Usage
Sample capx
Auto play
Fill video id at property "
Video ID", and set property "Autoplay"  to "Yes" to auto play while youtube video buffered.
Load video
Call "
Action:Load video" to load video at run-time, it could auto play if set parameter "Play" to "Yes".
Play or pause
Call "
Action:Play" to play video after buffered, "Action:Pause" to pause.

Playback time
Call
"Action:Set playback time" to set the current playback time in seconds. Get current playback time by "Expression:PlaybackTime". Get duration of current video by "
Expression:Duration".
Play status
Check status of video by these conditions
  • Condition:Is playing
  • Condition:Is paused
  • Condition:Has ended
  • Condition:Is muted
"Condition:On playback event" will be triggered while status changed.
Volume
After loaded video, set volume by "Action:Set volume" or mute by "Action:Set muted". Get current volume by "Expression:Volume".
Control bar
Set property "Control bar"  to "No" to disable control bar. But the video still could be paused or resumed by clicked.
Information
Set property "Show info" to "No" to hide information like title shown while mouse hover.
Keyboard control
Set property "Keyboard control" to "No" to disable keyboard control.
Visible
Set "Initial visibility" to "Invisible" to hide this object initially. Call "Action:Set visible" to show this object.
Full screen
Sample capx
Call "Action:Set full screen mode" to enter or exit or toggle full screen mode. Note that "Enter full screen" can only be called under a user input, like "On touch start" event.
"Condition:Is full screen" returns true if current is in full screen mode.
Full window
Sample capx
Call "Action:Full window" to enter or exit or toggle full window, which will set the position and size to fit the window.
"Condition:Is full window" returns true if current is set to full window.

Official save/load
Sample capx
This plugin supports oficial/save load.

And more...
Prevent pausing

Create a free web site with Weebly
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About