PlaybackControllerFqid issue for more than one ImageviwerWpfControl

I have created user control alled Tile which contains ImageViewerWpfControl,

In Tile.xaml I have a grid

       <Grid Name="Tile\_Grid" Background="DodgerBlue">           

       </Grid>

In Tile.cs I add the ImageViewerWpfControl

imageViewerControl = new ImageViewerWpfControl();

       Tile\_Grid.Children.Add(imageViewerControl);

also call

private void SetupControls()

   {

       imageViewerControl.Disconnect();                   

       imageViewerControl.EnableVisibleHeader = true;

       imageViewerControl.EnableVisibleCameraName = true;

       imageViewerControl.EnableVisibleLiveIndicator = true;          

       if (\_playbackFQID == null)

       {

           \_playbackFQID = ClientControl.Instance.GeneratePlaybackController();

       }

   }

Now I call this Tile from MainWindow

for (int i = 0; i < tile.Length; i++)

       {

           tile\[i\] = new Tile();

           Display.Children.Add(tile\[i\]);

       }

public void PlayMTile(Guid camGuid, int type)

{

case 1: //Live

                   imageViewerControl.StartLive();

                   EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(

                                          VideoOS.Platform.Messaging.MessageId.System.ModeChangeCommand,

                                          VideoOS.Platform.Mode.ClientLive));

case 2: //Playback

                       imageViewerControl.StartBrowse();

                       EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(

                                                                   VideoOS.Platform.Messaging.MessageId.System.ModeChangeCommand,

                                                                   VideoOS.Platform.Mode.ClientPlayback), \_playbackFQID);

}

I do Milestone Login stuff in MainWindow Once Logged In I call Play function of user control

tile.PlayMTile(myCamGuid, 1); The LiveMode works just fine.

tile.PlayMTile(myCamGuid, 2); But facing fallowing bug for PlaybackControllerFQID in Playback Mode

If you use the samples from the MIP SDK, do you see the same issue?

And could you please describe where the exception happens exactly? Please show us the full exception text including stack trace.

Hi Rie,

I have no issues if i add ImageViewerWpfControl directly to the mainwindow. both live and playback works fine. Also MIP SDK samples works fine.

The said issue arises only if i create a usercontrol to add ImageViewerWpfControl and call this usercontrol from mainwindow.

If you provide your email id i will email you the sample application for your test.

If requested to upload files to the support FTP server, please upload the files to a folder carrying the case number (MSC371331) as folder name. If the folder does not exist, please create it.

EMEA FTP server details:

FTP url: msftp.milestone.dk

Username for uploading files: UpLoad

Password for uploading files: 1qazxsw2

Link: FTP://UpLoad:1qazxsw2@msftp.milestone.dk

If you are uploading large files or have connectivity issues, then we recommend using a FTP client program that supports resume.

And please let Milestone Support know when the upload is done.

Hi Rie Kito,

The File has been uploaded.

I got an error while unzip the files. Please zip the entire project and try it again?

Hi Rie,

I have uploaded the files. Please check.

I failed to extract the file with .rar format again, so I could not see .csproj/.sln file.

Could you please make a .zip format file and include .csproj or .sln file there?

Hi Rie,

The problem as been solved. Thank you anyway.

Could you please share how to resolve this issue in this forum?