/// <summary>
 /// Initializes the player.
 /// </summary>
 /// <param name="playerParams">The StreamPlayerParams object that contains the information that is used to initialize the player.</param>
 internal void Initialize(StreamPlayerControl.StreamPlayerParams playerParams)
 {
     if (_initialize(playerParams) != 0)
     {
         throw new StreamPlayerException("Failed to initialize the player.");
     }
 }
Exemple #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this._streamPlayerControl = ((WebEye.StreamPlayerControl)(target));

            #line 26 "..\..\CameraView.xaml"
                this._streamPlayerControl.StreamFailed += new WebEye.StreamPlayerControl.StreamFailedEventHandler(this.HandlePlayerEvent);

            #line default
            #line hidden

            #line 27 "..\..\CameraView.xaml"
                this._streamPlayerControl.StreamStarted += new System.Windows.RoutedEventHandler(this.HandlePlayerEvent);

            #line default
            #line hidden

            #line 28 "..\..\CameraView.xaml"
                this._streamPlayerControl.StreamStopped += new System.Windows.RoutedEventHandler(this.HandlePlayerEvent);

            #line default
            #line hidden

            #line 28 "..\..\CameraView.xaml"
                this._streamPlayerControl.Loaded += new System.Windows.RoutedEventHandler(this._streamPlayerControl_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this._streamPlayerControl2 = ((WebEye.StreamPlayerControl)(target));

            #line 30 "..\..\CameraView.xaml"
                this._streamPlayerControl2.StreamFailed += new WebEye.StreamPlayerControl.StreamFailedEventHandler(this.HandlePlayerEvent);

            #line default
            #line hidden

            #line 31 "..\..\CameraView.xaml"
                this._streamPlayerControl2.StreamStarted += new System.Windows.RoutedEventHandler(this.HandlePlayerEvent);

            #line default
            #line hidden

            #line 32 "..\..\CameraView.xaml"
                this._streamPlayerControl2.StreamStopped += new System.Windows.RoutedEventHandler(this.HandlePlayerEvent);

            #line default
            #line hidden

            #line 32 "..\..\CameraView.xaml"
                this._streamPlayerControl2.Loaded += new System.Windows.RoutedEventHandler(this._streamPlayerControl2_Loaded);

            #line default
            #line hidden
                return;

            case 3:
                this._streamPlayerControl3 = ((WebEye.StreamPlayerControl)(target));

            #line 44 "..\..\CameraView.xaml"
                this._streamPlayerControl3.StreamFailed += new WebEye.StreamPlayerControl.StreamFailedEventHandler(this.HandlePlayerEvent);

            #line default
            #line hidden

            #line 45 "..\..\CameraView.xaml"
                this._streamPlayerControl3.StreamStarted += new System.Windows.RoutedEventHandler(this.HandlePlayerEvent);

            #line default
            #line hidden

            #line 46 "..\..\CameraView.xaml"
                this._streamPlayerControl3.StreamStopped += new System.Windows.RoutedEventHandler(this.HandlePlayerEvent);

            #line default
            #line hidden
                return;

            case 4:
                this._urlTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this._statusLabel = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this._closePrev = ((System.Windows.Controls.Button)(target));

            #line 66 "..\..\CameraView.xaml"
                this._closePrev.Click += new System.Windows.RoutedEventHandler(this._closePrev_Click);

            #line default
            #line hidden
                return;

            case 7:
                this._playButton = ((System.Windows.Controls.Button)(target));

            #line 70 "..\..\CameraView.xaml"
                this._playButton.Click += new System.Windows.RoutedEventHandler(this.HandlePlayButtonClick);

            #line default
            #line hidden
                return;

            case 8:
                this._stopButton = ((System.Windows.Controls.Button)(target));

            #line 75 "..\..\CameraView.xaml"
                this._stopButton.Click += new System.Windows.RoutedEventHandler(this.HandleStopButtonClick);

            #line default
            #line hidden
                return;

            case 9:
                this._imageButton = ((System.Windows.Controls.Button)(target));

            #line 80 "..\..\CameraView.xaml"
                this._imageButton.Click += new System.Windows.RoutedEventHandler(this.HandleImageButtonClick);

            #line default
            #line hidden
                return;

            case 10:
                this.videoStatus = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.useCustomURLChk = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 12:
                this.loadingGif = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }