mpv icon indicating copy to clipboard operation
mpv copied to clipboard

OS X Bundle: Allow more than one instance of the player.

Open AllMelody opened this issue 13 years ago • 5 comments

If you already have a file open on mpv.app, double clicking on another file to open it gives you this message:

Screen Shot 2013-01-12 at 2 58 16 PM

mpv 46f8429, compiled with Homebrew, OS X 10.8.2

AllMelody avatar Jan 12 '13 19:01 AllMelody

With Cocoa you can't allow more than one instance of the player by simply spawning another process. Unfortunately the correct way would be implementing a "Document based" Cocoa application which I'm not sure how should interact with the playlist and wouldn't interact very well with the rest of mpv.

I think if you open a new file from the finder the player should use that file to replace the current playlist. That, at least, should be easier to implement.

pigoz avatar Jan 12 '13 20:01 pigoz

The above commit doesn't allow more than one instance of the player, but allows to open new files in the current running instance.

pigoz avatar Jan 16 '13 21:01 pigoz

This throws away your playback position. A confirmation dialog would help.

tewe avatar Feb 26 '13 13:02 tewe

mpv doesn't remember the playback position for any file, why it should in this case?

pigoz avatar Feb 26 '13 13:02 pigoz

No Mac app should lose state when Finder asks it to open a file. Either save the position or ask for confirmation before opening the new file, otherwise you break user expectations, which leads to frustration.

tewe avatar Feb 26 '13 13:02 tewe