adds video support
This commit is contained in:
@@ -18,6 +18,13 @@ export function readAsDataURLAsync(file: File) {
|
||||
});
|
||||
}
|
||||
|
||||
export function isVideoURL(url: string) {
|
||||
if(url.startsWith("data")) {
|
||||
return url.startsWith("data:video")
|
||||
}
|
||||
return url.includes("mp4") || url.includes("ogg") || url.includes("webm")
|
||||
}
|
||||
|
||||
export function saveAs(data: Blob, fileName: string) {
|
||||
var a = document.createElement("a") as HTMLAnchorElement;
|
||||
a.setAttribute("style", "display: none");
|
||||
|
||||
@@ -72,7 +72,6 @@ export function createMarkerFromWaypoint(waypoint: Waypoint, onDragEnd?: (marker
|
||||
marker.on("dragend", () => onDragEnd(marker, waypoint.id,));
|
||||
}
|
||||
|
||||
waypoint.marker = marker
|
||||
return marker;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user