Beispiel #1
0
        void manager_ManifestReady(object sender, object e)
        {
            MediaPlayer.IsLive = Manager.IsLive;

            MediaPlayer.AvailableAudioStreams.Clear();
            foreach (var audioStream in Manager.AvailableAudioStreams)
            {
                var wrapper = new AudioStreamWrapper(audioStream);
                MediaPlayer.AvailableAudioStreams.Add(wrapper);
                if (audioStream == Manager.SelectedAudioStream)
                {
                    MediaPlayer.SelectedAudioStream = wrapper;
                }
            }

            if (InstreamCaptionsEnabled)
            {
                MediaPlayer.AvailableCaptions.Clear();
                foreach (var captionStream in Manager.AvailableCaptionStreams)
                {
                    var wrapper = new CaptionStreamWrapper(captionStream);
                    MediaPlayer.AvailableCaptions.Add(wrapper);
                    if (captionStream == Manager.SelectedCaptionStream)
                    {
                        MediaPlayer.SelectedCaption = wrapper;
                    }
                }
            }
        }
Beispiel #2
0
        void Manager_ManifestReady(object sender, EventArgs e)
        {
            MediaPlayer.IsLive = SSME.IsLive;
            InManifestReady    = true;
            try
            {
                MediaPlayer.AvailableAudioStreams.Clear();

                foreach (var audioStream in Manager.AvailableAudioStreams)
                {
                    var wrapper = new AudioStreamWrapper(audioStream);
                    MediaPlayer.AvailableAudioStreams.Add(wrapper);
                    if (audioStream == Manager.SelectedAudioStream)
                    {
                        MediaPlayer.SelectedAudioStream = wrapper;
                    }
                }

#if !WINDOWS_PHONE
                if (InstreamCaptionsEnabled)
                {
                    MediaPlayer.AvailableCaptions.Clear();
                    foreach (var captionStream in Manager.AvailableCaptionStreams)
                    {
                        var wrapper = new CaptionStreamWrapper(captionStream);
                        MediaPlayer.AvailableCaptions.Add(wrapper);
                        if (captionStream == Manager.SelectedCaptionStream)
                        {
                            MediaPlayer.SelectedCaption = wrapper;
                        }
                    }
                }
#endif
            }
            finally
            {
                InManifestReady = false;
            }
        }
Beispiel #3
0
        void Manager_ManifestReady(object sender, EventArgs e)
        {
            MediaPlayer.IsLive = SSME.IsLive;
            InManifestReady    = true;
            try
            {
                MediaPlayer.AvailableAudioStreams.Clear();

                foreach (var audioStream in Manager.AvailableAudioStreams)
                {
                    var wrapper = new AudioStreamWrapper(audioStream);
                    MediaPlayer.AvailableAudioStreams.Add(wrapper);
                    if (audioStream == Manager.SelectedAudioStream)
                    {
                        MediaPlayer.SelectedAudioStream = wrapper;
                    }
                }
            }
            finally
            {
                InManifestReady = false;
            }
        }
        void Manager_ManifestReady(object sender, EventArgs e)
        {
            MediaPlayer.IsLive = SSME.IsLive;
            InManifestReady = true;
            try
            {
                MediaPlayer.AvailableAudioStreams.Clear();

                foreach (var audioStream in Manager.AvailableAudioStreams)
                {
                    var wrapper = new AudioStreamWrapper(audioStream);
                    MediaPlayer.AvailableAudioStreams.Add(wrapper);
                    if (audioStream == Manager.SelectedAudioStream)
                    {
                        MediaPlayer.SelectedAudioStream = wrapper;
                    }
                }
            }
            finally
            {
                InManifestReady = false;
            }
        }
        void Manager_ManifestReady(object sender, EventArgs e)
        {
            MediaPlayer.IsLive = SSME.IsLive;
            InManifestReady = true;
            try
            {
                MediaPlayer.AvailableAudioStreams.Clear();

                foreach (var audioStream in Manager.AvailableAudioStreams)
                {
                    var wrapper = new AudioStreamWrapper(audioStream);
                    MediaPlayer.AvailableAudioStreams.Add(wrapper);
                    if (audioStream == Manager.SelectedAudioStream)
                    {
                        MediaPlayer.SelectedAudioStream = wrapper;
                    }
                }
                
#if !WINDOWS_PHONE
                if (InstreamCaptionsEnabled)
                {
                    MediaPlayer.AvailableCaptions.Clear();
                    foreach (var captionStream in Manager.AvailableCaptionStreams)
                    {
                        var wrapper = new CaptionStreamWrapper(captionStream);
                        MediaPlayer.AvailableCaptions.Add(wrapper);
                        if (captionStream == Manager.SelectedCaptionStream)
                        {
                            MediaPlayer.SelectedCaption = wrapper;
                        }
                    }
                }
#endif
            }
            finally
            {
                InManifestReady = false;
            }
        }
        void manager_ManifestReady(object sender, object e)
        {
            MediaPlayer.IsLive = Manager.IsLive;

            MediaPlayer.AvailableAudioStreams.Clear();
            foreach (var audioStream in Manager.AvailableAudioStreams)
            {
                var wrapper = new AudioStreamWrapper(audioStream);
                MediaPlayer.AvailableAudioStreams.Add(wrapper);
                if (audioStream == Manager.SelectedAudioStream)
                {
                    MediaPlayer.SelectedAudioStream = wrapper;
                }
            }

            if (InstreamCaptionsEnabled)
            {
                MediaPlayer.AvailableCaptions.Clear();
                foreach (var captionStream in Manager.AvailableCaptionStreams)
                {
                    var wrapper = new CaptionStreamWrapper(captionStream);
                    MediaPlayer.AvailableCaptions.Add(wrapper);
                    if (captionStream == Manager.SelectedCaptionStream)
                    {
                        MediaPlayer.SelectedCaption = wrapper;
                    }
                }
            }
        }