qdot / syncydink

A web based video player that supports multiple viewing modes, haptic formats, and output devices
http://buttplug.world/syncydink
BSD 3-Clause "New" or "Revised" License
21 stars 20 forks source link

feat: Add drag/drop file loading #82

Open greenyouse opened 3 years ago

greenyouse commented 3 years ago

Hey here's a PR for the drag/drop functionality #67 . It doesn't do anything fancy it just uses the file drag/drop API to load a video or haptics file. If the uploaded file has a video based MIME type it will slot it as a video otherwise it assumes it's a haptics file of some sort.

This is probably good for a first go. I guess it could take multiple files and try to load the haptics and video at the same time but that might be overkill.

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.

qdot commented 3 years ago

Yeah, single file is fine for right now. Playlists have been a requested feature for years, and once we get to those, multi-file is def something to think about.

greenyouse commented 3 years ago

Creating a playlist mode sounds neat. Any ideas for how to implement that part? Are you thinking to have a UI for interacting with the playlist too?

greenyouse commented 3 years ago

Whoops, sorry about deleting the branch here. I had a few temporary branches which got consolidated into the video and haptics editor PRs.