nwjs / nw.js

Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.
https://nwjs.io
MIT License
40.35k stars 3.88k forks source link

dragging audio file out of window isn't recognised as audio file? #5256

Closed hems closed 7 years ago

hems commented 8 years ago

I'm trying to drag files out of the window onto other software, for instance drag an audio file onto a music app ( like Logic Pro, Garage Band, Ableton Live, etcs ) but the application doesn't recognise it as audio.

The only workaround is to drag the file out of the window to the desktop and then onto the app, which is very un-intuitive.

Ideally files like movies and audio will be dragged out it would from a native application and recognized as such so users can drag them directly into a time in the timeline without having to drag to desktop first.

Unfortunately i don't have a test app to illustrate the problem, but there is a dragout example here: https://www.thecssninja.com/html5/gmail-dragout

Thanks a lot.

Christywl commented 7 years ago

@hems , how do I reproduce this issue with the link? I try nw.exe --url=https://www.thecssninja.com/html5/gmail-dragout, but files can't be dragged out when I drag any link. Does this link reproduce your issue in your side with nwjs?

hems commented 7 years ago

@Christywl the issue is if i set an audio file, for instance a .wav or .mp3 file as the download-file and try to drag into an audio application it won't let me drag the file to its "timeline". In order to do it i have to first download the file to the desktop so it will be "downloaded" there and then from there you can drag into the audio application, which is very un-intuitive :(

hems commented 7 years ago

At least this is what was happening to me back in 2016 when i was playing around with this feature, since them i haven't updated nw.js and have found a several people looking for similar feature, some of them even moved to electron as reported on this issue: https://github.com/nwjs/nw.js/issues/2200

Christywl commented 7 years ago

@rogerwang , can it be merged into #2200?

rogerwang commented 7 years ago

merge with #2200. Thanks.

hems commented 7 years ago

@Christywl / @rogerwang is it working ( or is there a patch / example somewhere ) using a recent version of nw.js ?