We are trying to develop an application for a camera with the milestone SDK. Currently we are trying to reproduce the MediaLiveViewer sample to later expand it. But currently it runs trough the CameraPicker button code very well, we can pick a camera and the rest of the method gets executed but there it stops. it never goes to JpegLiveSource1LiveNotificationEvent. it is a similar issue to this one: https://developer.milestonesys.com/s/question/0D50O00003EIs1MSAT/
but this topic never got finished
We stripped the code to what we needed but it doesn’t work anymore. In the example though we commented every line out that we don’t need and it still works. Here is the CameraPicker button code
if (_jpegLiveSource != null)
{
// Close any current displayed JPEG Live Source
_jpegLiveSource.LiveContentEvent -=
JpegLiveSource1LiveNotificationEvent;
_jpegLiveSource.LiveStatusEvent -= JpegLiveStatusNotificationEvent;
_jpegLiveSource.Close();
_jpegLiveSource = null;
pictureBox1.Image = new Bitmap(1, 1);
}
ItemPickerForm form = new ItemPickerForm();
form.KindFilter = Kind.Camera;
form.AutoAccept = true;
form.Init(Configuration.Instance.GetItems());
if (form.ShowDialog() == DialogResult.OK)
{
_selectItem1 = form.SelectedItem;
_jpegLiveSource = new JPEGLiveSource(_selectItem1);
try
{
_jpegLiveSource.LiveModeStart = true;
_jpegLiveSource.SetKeepAspectRatio(false, false);
_jpegLiveSource.Width = pictureBox1.Width;
_jpegLiveSource.Height = pictureBox1.Height;
_jpegLiveSource.Init();
_jpegLiveSource.LiveContentEvent +=
JpegLiveSource1LiveNotificationEvent;
_jpegLiveSource.LiveStatusEvent += JpegLiveStatusNotificationEvent;
}
catch (Exception ex)
{
MessageBox.Show("Could not Init:" + ex.Message);
_jpegLiveSource = null;
}
}
else
{
_selectItem1 = null;
}
This is a MIPLibrary project so we have the login screen and we do get connection to the server.
Can anyone help me?