[Free] VideoLayout extension

Description

Sets A Video as a background of a layout
this extension is like how you set background image of a layout in same way this set background video of a layout

Add a picture of all the blocks

Instructions

Extension will only work in APK if you will test in companion the whole screen will get blank

METHODType - Return number

AudioSessionID

Get Audio Session ID of the id. In this block there are 1 parameters,

id number

METHODType - Return number

BufferPercentage

get BufferPercentage of the id. In this block there are 1 parameters,

id number

METHODType - Return boolean

CanPause

Check if video can pause of the id. In this block there are 1 parameters,

id number

METHODType - Return boolean

CanSeekBackward

Check if video can seek backward of the id. In this block there are 1 parameters,

id number

METHODType - Return boolean

CanSeekForward

Check if video can seek forward of the id. In this block there are 1 parameters,

id number

METHODType - Set Value

CreateVideoLayout

Creates the VideoLayout in given arrangement with id. In this block there are 2 parameters,

layout component id number

METHODType - Return number

CurrentPosition

Get Current position of the id. In this block there are 1 parameters,

id number

METHODType - Return number

Duration

Get Duration of the id. In this block there are 1 parameters,

id number

METHODType - Return list

GetIds

Returns a list of used ids. In this block there are 0 parameters,

METHODType - Return boolean

IsPlaying

Check if video is playing of the id. In this block there are 1 parameters,

id number

METHODType - Set Value

Pause

Pauses the video of the id. In this block there are 1 parameters,

id number

METHODType - Set Value

Resume

Resumes the video of the id. In this block there are 1 parameters,

id number

METHODType - Set Value

SeekTo

Go to a particular time of the id. In this block there are 2 parameters,

millisecs number id number

METHODType - Set Value

SetVideoPath

Sets the Video by Path in the desired id. In this block there are 2 parameters,

path text id number

METHODType - Set Value

SetVideoUri

Sets the Video by URI in the desired id. In this block there are 2 parameters,

uri text id number

METHODType - Set Value

Start

Starts the video of the id. In this block there are 1 parameters,

id number

METHODType - Set Value

StopPlayback

Stops the playback of the id. In this block there are 1 parameters,

id number

METHODType - Set Value

Suspend

Suspend the id. In this block there are 1 parameters,

id number

Download link

com.AK_Tech.VideoLayout.aix (9.8 KB)
If you find any bugs please reply in this topic

Demo Blocks

5 Likes

Happy birthday :bouquet::tada: and this extension is :fire::fire:

1 Like

thank you @uq_n

1 Like

Bon et joyeux anniversaire. :fr:

1 Like

thank you @henri_laudani

Very good extension Arush. Here are some suggestions:

  • Instead of adding the id parameter while using every block just make a property to set the "active" id which will be used.

  • It's better to add event blocks like when the video starts/ends/pause.

  • You can add when buffer changed event block with the percentage value.

  • Whenever I put any component on the arrangement which will be used as the video background it's overlapped by the video.

Here are the demo blocks on how to use this extension:

1 Like

Demo blocks and docs added

1 Like