Skip to reading
3D Models & Video in GUIs

A reference for the embedded player

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
Source table from A reference for the embedded player, page 44
Element propertyMeaning
assetIdThe video asset to load.
autoplay / loop / mutedAuthored playback configuration.
volumeDbAuthored player level in decibels.
posterAssetId / emptyTextLoad-failure image and text.
contentMarginLeft / Top / Right / BottomInsets that define the content rectangle.
contentFitPoster fitting; see the decoded-video limitation in Chapter 18.

Live VideoStreamPlayer controls#

Source table from A reference for the embedded player, page 44
Read or commandPurpose
GetGUIElementProperty(..., "video_player", null)Obtain this element’s live player in GDScript.
player.play()Start again.
player.paused = true / falsePause / resume the existing playback.
player.stop()Stop the current playback.
player.stream_positionCurrent/requested position in seconds.
player.volume_dbLive player audio level.
player.finishedNatural completion signal for the finite-playback exercise.

Screenshots and runtime checks: PCA 3D Adventure Studio 0.86.3.4. Models and background artwork shown are from existing engine project assets. The sample video is a short test clip. No practice files are included.

Page 44 of 45Permalink
Go to page