diff --git a/Video.java b/Video.java new file mode 100644 index 0000000..3722c84 --- /dev/null +++ b/Video.java @@ -0,0 +1,29 @@ +import java.awt.Color; + +import javafx.scene.SubScene; +import javafx.scene.layout.StackPane; + +public class Video { + int xstart; + int ystart; + int startTime; + int canvasWidth; + int canvasHeight; + String urlName; + Boolean loop; + SubScene subScene; + + public Video(String urlName, int startTime, Boolean loop, int xStart, int yStart, int canvasWidth, int canvasHeight) { + // construct video object using these + //create the SubScene object + } + public SubScene get() { + return subScene; + } + public void remove() { + //remove video from the subscene + } + public void start() { + //starts playing the video + } +} diff --git a/VideoLayer.java b/VideoLayer.java new file mode 100644 index 0000000..1c939a8 --- /dev/null +++ b/VideoLayer.java @@ -0,0 +1,35 @@ +package media; + +import java.util.ArrayList; + +import javafx.scene.SubScene; +import javafx.scene.canvas.Canvas; +import javafx.scene.layout.StackPane; + +public class VideoLayer { + int height; + int width; + StackPane sp = new StackPane(); + ArrayList