[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

Video Layout | Free

A extension which helps you to make video layouts.

📦 9.4 KB
📁 com.aktech.videolayout.VideoLayout

Blocks

GetMinVolume

Get Min volume

returnType : number

CanSeekForward

Check if video can seek forward of video

returnType : boolean

Pause

Pauses the video

StopPlayback

Stops the playback of video

Start

Starts the video

Suspend

Suspends the video

IsVideoPrepared

Checks if video is prepared to do some actions in it

returnType : boolean

SetVideoUri

Sets the Video by URI

uri text

SeekTo

Go to a particular time in video

millisecs number

CanPause

Check if video can pause of video

returnType : boolean

CurrentPosition

Get Current position of video

returnType : number

SetVolume

Sets Volume for video

sound number

BufferPercentage

get BufferPercentage of video

returnType : number

CreateVideoLayout

Creates the VideoLayout in given arrangement

layout component

AddComponent

Add View to relative layout and set its gravity

component component

PlaybackSpeed

Sets the playback speed of the video

speed number

GetMaxVolume

Get Max volume

returnType : number

SetVideoPath

Sets the Video by Path

path text

Duration

Get Duration of video

returnType : number

IsLooping

Checks if video is looping

returnType : boolean

SetLooping

Sets if video should be looped

loop boolean

GetCurrentVolume

Get Current volume

returnType : number

AudioSessionID

Get Audio Session ID of video

returnType : number

CanSeekBackward

Check if video can seek backward of video

returnType : boolean

IsPlaying

Check if video is playing

returnType : boolean

Resume

Resumes the video

OnVideoError

Triggers when error occured during video

what number
extra number

OnVideoInfo

Triggers when and info came from video

what number
extra number

OnVideoCompleted

Triggers when video finishes

OnVideoPrepared

Triggers when video is prepared to do actions

Thank you

👇🏽 Download Extension

Download link

com.aktech.videolayout.aix (14.1 KB)
If you find any bugs please reply in this topic

Demo Blocks

9 Likes

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

1 Like

thank you @anon6030471

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

Hi for me this extension is not working, could u provide steps from starting how to use or .aia file

...and exactly where is not working? Please attach the relevant blocks where it is "not working".

Hi i started to play video, might be the way i am doing procedure is wrong. in apk it is saying video cant play. and i uploaded the video in the mit server and i am using the same

...and can you provide the blocks that you used?

please check this

And can you tell me the version of your Android device? If it is below Android 11, then try using this for the video path:

/storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/AppInventor/assets/Hi.mp4

or else:

/storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/assets/Hi.mp4

android 12