[Free] VideoLayout extension (Big Fix!)

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.aktech.videolayout.aix (14.1 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


Excuse me, why does it show that the video cannot be found

youtube is not a type of video it is a website you need a proper video link

Is it possible to use the IP address of ESP32-CAM?

umm no it is not you either need a proper video link or a video path saved on device

okay, thank you

Well everyone here is a big fix

  1. Now video will not show controls
  2. Added OnVideoPrepared, OnVideoComplete, OnVideoError, OnVideoInfo Events
  3. Removed ID System use Any Component blocks instead
  4. And now this extension is made with Rush thanks to @Shreyash
1 Like