public MediaPlayerHandle(CoreDispatcher dispatcher)
        {
            BackgroundSettings.RemoveForegroundId();

            _dispatcher = dispatcher;

            _notifier = new BackgroundNotifier(_id);

            _subscriptionHandle = new BackgroundSubscriptionHandle(OnMessageReceivedFromBackground);

            _notificationQueue = new ValueSetWorkerQueue(HandleNotification);

            BackgroundSettings.SetForegroundId(_id);
        }
Exemple #2
0
        public MediaPlayerHandle(CoreDispatcher dispatcher)
        {
            BackgroundSettings.RemoveForegroundId();

            _dispatcher = dispatcher;

            _notifier = new BackgroundNotifier(_id);

            _subscriptionHandle = new BackgroundSubscriptionHandle(OnMessageReceivedFromBackground);

            _notificationQueue = new ValueSetWorkerQueue(HandleNotification);

            BackgroundSettings.SetForegroundId(_id);
        }