//public static User CurrentUser; static App() { // Get this data from the management portal's quickstart page // in the 'connect to existing apps' section MobileServiceClient = new MobileServiceClient( "https://XXXXXX.azure-mobile.net/", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ); }
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) { if (NoNetwork() == false) { mobileServiceClient = new MobileServiceClient("https://bethere.azure-mobile.net/", "XdjbcQDgRsMEXdNKeiKoiILoWNWLJE48"); usrStatusTable = mobileServiceClient.GetTable<GlobalVideos>(); LoadListings(); } else { MessageBox.Show("A network connection can not be established.\r\nPlease press refresh or check your network settings."); return; } }
private void Record() { StartRecord_BTN.IsEnabled = false; if (NoNetwork() == false) { VideoCaptureDevice videoCaptureDevice = CaptureDeviceConfiguration.GetDefaultVideoCaptureDevice(); if (videoCaptureDevice != null) { this.mySource = new CaptureSource(); this.mySource.CaptureImageCompleted += mySource_CaptureImageCompleted; this.mySource.VideoCaptureDevice = CaptureDeviceConfiguration.GetDefaultVideoCaptureDevice(); this.mySink = new FileSink(); mobileServiceClient = new MobileServiceClient("https://bethere.azure-mobile.net/", "XdjbcQDgRsMEXdNKeiKoiILoWNWLJE48"); usrStatusTable = mobileServiceClient.GetTable<GlobalVideos>(); } else { StartRecord_BTN.Content = "No Camera Available"; StartRecord_BTN.IsEnabled = false; } } else { MessageBox.Show("A network connection can not be established.\r\nPlease press refresh or check your network settings."); return; } this.mySource.VideoCaptureDevice = CaptureDeviceConfiguration.GetDefaultVideoCaptureDevice(); this.mySink = new FileSink(); errMsg.Text = ""; using (IsolatedStorageFile isolatedStorageFile = IsolatedStorageFile.GetUserStoreForApplication()) { if (isolatedStorageFile.FileExists("video.mp4")) { isolatedStorageFile.DeleteFile("video.mp4"); } } this.myBrush = new VideoBrush(); this.cameraView.Background = this.myBrush; this.myBrush.SetSource(this.mySource); this.mySink.CaptureSource = this.mySource; this.mySink.IsolatedStorageFileName = "video.mp4"; this.mySource.Start(); this.mySource.CaptureImageAsync(); DelayDisplay(); }
public MobileServiceTable(MobileServiceClient client, string tableName) : base(client, tableName) { }