[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Integrated: 8264737: JavaFX media stream stops playing after reconnecting via Remote Desktop
From:       Alexander Matveev <almatvee () openjdk ! java ! net>
Date:       2021-04-28 22:45:53
Message-ID: jC4_5J-z0a5iB_KFLjp_KtBd4xv_eL7DPsHcgbiVZl4=.cb530f83-c49a-40e9-b99f-0d65f088c57b () github ! com
[Download RAW message or body]

On Sat, 24 Apr 2021 02:23:19 GMT, Alexander Matveev <almatvee@openjdk.org> wrote:

> Remote Desktop will change default audio device when connecting or disconnecting to \
> it's own audio device. Also, when remote desktop is disconnect, then remote desktop \
> default audio device is removed and system default device is not restored until \
> user logs back to computer. So, after remote desktop is disconnected, then system \
> left without any default audio devices. 
> To fix this we will unload DirectSound when audio device is gone and will continue \
> playback by throwing away audio data. Once we receive notification that default \
> audio device is back, we will load it and continue playback via this device. 
> Loading device done in loop, since it is not always available right after \
> notification, but will be after very short period of time. 
> Tested by connecting/disconnecting remote desktop and switching between remote and \
> normal desktop. In second case audio will switch between remote or speakers. 
> Since audio device is gone and not restored after disconnect, there will be no \
> audio on machine local speakers, until user logs back again.

This pull request has now been integrated.

Changeset: 0a686130
Author:    Alexander Matveev <almatvee@openjdk.org>
URL:       https://git.openjdk.java.net/jfx/commit/0a6861304e142eed547f3c82b0d2e2a55f91b9b4
                
Stats:     352 lines in 5 files changed: 349 ins; 0 del; 3 mod

8264737: JavaFX media stream stops playing after reconnecting via Remote Desktop

Reviewed-by: kcr, arapte

-------------

PR: https://git.openjdk.java.net/jfx/pull/479


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic