YoutubePlayer

Last Updated On 2021-07-16

Version 1MinSDK 7Tutorial Video

A new component


Properties

You can set the below properties in the UI part of the builder.

  • BackgroudPlay - it's a boolean value which is set to false by default.
  • HeihMargin - it's a four value which is set to 0,0,0,0 by default.
  • HeihPadding - it's a four value which is set to 0,0,0,0 by default.
  • MarginBottom - it's a non negative float value which is set to 0 by default.
  • MarginLeft - it's a non negative float value which is set to 0 by default.
  • MarginRight - it's a non negative float value which is set to 0 by default.
  • MarginTop - it's a non negative float value which is set to 0 by default.
  • PaddingBottom - it's a non negative float value which is set to 0 by default.
  • PaddingLeft - it's a non negative float value which is set to 0 by default.
  • PaddingRight - it's a non negative float value which is set to 0 by default.
  • PaddingTop - it's a non negative float value which is set to 0 by default.
  • VideoId - it's a text value which is set to blank by default.
  • Visible - it's a visibility value which is set to true by default.

Block Properties

You can set the below blocks properties in the blocks section of the builder.

BackgroudPlay

Property for BackgroudPlay


Height

Specifies the vertical height of the NiotronYoutubePlayer, measured in pixels.


HeightPercent

Specifies the vertical height of the NiotronYoutubePlayer as a percentage of the height of the Screen.


MarginBottom

Property for MarginBottom


MarginLeft

Property for MarginLeft


MarginRight

Property for MarginRight


MarginTop

Property for MarginTop


PaddingBottom

Property for PaddingBottom


PaddingLeft

Property for PaddingLeft


PaddingRight

Property for PaddingRight


PaddingTop

Property for PaddingTop


SeekTo

Property for SeekTo


VideoId

Property for VideoId


Visible

Specifies whether the NiotronYoutubePlayer should be visible on the screen. Value is true if the NiotronYoutubePlayer is showing and false if hidden.


Volume

Property for Volume


Width

Specifies the horizontal width of the NiotronYoutubePlayer, measured in pixels.


WidthPercent

Specifies the horizontal width of the NiotronYoutubePlayer as a percentage of the width of the Screen.



Methods

You can set the below method blocks in the blocks section of the builder.

EnterFullScreen

Method for EnterFullScreen

ExitFullScreen

Method for ExitFullScreen

Load

Method for Load

Mute

Method for Mute

Pause

Method for Pause

Play

Method for Play

ToggleFullScreen

Method for ToggleFullScreen

UnMute

Method for UnMute


Events

You can set the below event blocks in the blocks section of the builder.

CurrentProgress

Event for CurrentProgress

Error

Event for Error

OnFullScreen

Event for OnFullScreen

OnMinimizeScreen

Event for OnMinimizeScreen

OnReady

Event for OnReady

VideoLoded

Event for VideoLoded