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

            _dispatcher = dispatcher;

            _notifier = new BackgroundNotifier(_id);

            _subscriptionHandle = new BackgroundSubscriptionHandle(OnMessageReceivedFromBackground);

            _notificationQueue = new ValueSetWorkerQueue(HandleNotification);

            BackgroundSettings.SetForegroundId(_id);
        }
示例#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);
        }