Unigram
Unigram copied to clipboard
Feature request: audio played also if window closed
Would be nice if the audio sent from a contact can be played also closing Unigram to the system try icon. In Telegram you can play the audio then close the Telegram Window, the audio still be played.
- Open a chat with an audio and play it
- Close the Unigram Window to go on the try icon
Result: audio stop.
Expected result: Audio still play
Also because if the window is closed and audio stopped you cannot resume from where the audio has been stopped, you need restart all the audio from the beginning.
Due to current Unigram architecture, what you're asking for isn't really possible: when you launch the app two different processes are created:
- Telegram.exe: where app windows, UI and all executing code live
- Telegram.Stub.exe: where only the system tray icon live This is due to how UWP apps lifecycle is handled by the operating system: once you close all windows, the process is going to be terminated, so the system tray icon has to live somewhere else. Because of this, when you close the main window, the app actually stops running, and only the tray icon process will still be alive, hence the music playback will stop. Some may suggest to play music from the secondary process, but communication between the two isn't really reliable and the complexity of implementing such an architecture isn't really worth the deal (especially considering that the long term plan is still to move to WinUI 3, where this limit won't apply any longer)
Try having the audio repeat?