Looks great - have downloaded it and will give it a try. The true playing part is going to be tricky - however, you could just start streaming /stream.mp3 as a first try. It will work okay but track switching will take a long time (could be minutes). It's not too hard to figure out how to do that but I have the code handy, so:
MediaElement me1; me1 = new MediaElement(); me1.BufferingTime = new TimeSpan(0, 0, 3); me1.Source = new Uri(App.ViewModel.server + "/stream.mp3"); me1.MediaEnded+=new RoutedEventHandler(me1_MediaEnded); me1.CurrentStateChanged += new RoutedEventHandler(me1_CurrentStateChanged); LayoutRoot.Children.Add(me1); me1.Play(); You also need to set: PhoneApplicationService.Current.ApplicationIdleDetectionMode = IdleDetectionMode.Disabled; ... somewhere, so the app runs in the background when the screen is locked. Chris -- pugwonk ------------------------------------------------------------------------ pugwonk's Profile: http://forums.slimdevices.com/member.php?userid=10576 View this thread: http://forums.slimdevices.com/showthread.php?t=83330 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
