示例#1
0
 private void featuredStreamPlayer_Loaded(object sender, RoutedEventArgs e)
 {
     streamerObject = new StreamerObject(Dispatcher, featuredStreamPlayer, PlayPauseAction);
     streamerObject.StreamerObjectErrorEvent += streamerObject_StreamerObjectErrorEvent;
     streamerObject.OnNavigatedTo("Twixel", "Twixel");
     Unloaded += HomePage_Unloaded;
 }
示例#2
0
 private void streamPlayer_Loaded(object sender, RoutedEventArgs e)
 {
     streamPlayer   = sender as MediaElement;
     streamerObject = new StreamerObject(Dispatcher, streamPlayer, PlayPauseAction);
     streamerObject.StreamerObjectErrorEvent += streamerObject_StreamerObjectErrorEvent;
     streamerObject.OnNavigatedTo("Twixel", "Twixel");
     Unloaded += UserPage_Unloaded;
     ElementsLoaded();
 }
示例#3
0
        public StreamPage()
        {
            this.InitializeComponent();
            channelsFollowed = new List <Channel>();

            Application.Current.Suspending += Current_Suspending;
            Application.Current.Resuming   += Current_Resuming;
            this.SizeChanged += StreamPage_SizeChanged;

            streamerObject = new StreamerObject(Dispatcher, streamPlayer, PlayPauseAction);
            streamerObject.StreamerObjectErrorEvent += streamerObject_StreamerObjectErrorEvent;
            Unloaded += StreamPage_Unloaded;
        }