🎉Video

I'm a speed photo

var a =new Video({
  name:"video",//video name
  position:{//you enter where it will be on the screen
    x:"50%",y:"50%"
  },
  scale:{//automatically adjusts if you do not add this
    x:"25px",
    y:"25px"
  },
  layer:100,//you don't have to type is automatically set to 100
  autoplay: true,//auto play video
  muted:true,//mute video sound
  video:"http://techslides.com/demos/sample-videos/small.mp4",//video link or file
  eval:`
  console.log('Video ended')
  //for example, write to console, you can use functions
  `,
  removeable:true//deletes itself after the video ends
})

You don't have to add anything other than name and position.

Update

video.update({
    removeable:false
})
//or 
updateData({
    name:"video",
    removeable:false
})

Get

console.log(video.get())
console.log(getData("video"))
//Example
console.log(
video.get().removeable
)

Remove

video.remove()
removeData("video")

Last updated