tsl0922 / ImPlay

A Cross-Platform Desktop Media Player
https://tsl0922.github.io/ImPlay
GNU General Public License v2.0
582 stars 43 forks source link

Single instance mode #38

Closed Soromeister closed 1 year ago

Soromeister commented 1 year ago

Is your feature request related to a problem? Please describe. When I already have a video open, if I open another video, the new video opens up a new ImPlay window, so I get 2 videos playing at the same time.

Describe the solution you'd like Opening other videos while already having a video open should open in same player window.

Describe alternatives you've considered Other players like MPV-Net or PotPlayer or KMPlayer offer this option.

tsl0922 commented 1 year ago

It may be useful, but mpv does not support it natively: https://github.com/mpv-player/mpv/issues/3811

Soromeister commented 1 year ago

Does ImGui support fine-grained control over launching mpv?

If so, is it possible to add function to close previous mpv instance and open a new one in the same ImGui window?

tsl0922 commented 1 year ago

It has nothing to do with ImGui.

There's already scripts that can do this in that mpv issue, I may add this feature when a portable way is found.

tsl0922 commented 1 year ago

It's now supported via Help - Settings - General - Single instance mode in the latest main branch.

You can try it from: https://github.com/tsl0922/ImPlay/releases/tag/continuous

The behaviour is like umpv, which will append files to existing instance's internal playlist.

candrapersada commented 1 year ago

Opening new files will replace media playing in the existing window with a new playlist