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; }
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(); }
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; }