Hi,
Milestone have a live tab and playback tab,
but is it possible to have the live and playback of the same camera in the same view?
Hi,
Milestone have a live tab and playback tab,
but is it possible to have the live and playback of the same camera in the same view?
If I understand your question correctly, you might want to see live and playback in the same tab in Smart Client?
If so, this sample might be helpful. Please see Smart Client Independent Playback sample.
Hi, yes, I want to see live and playback in the same tab.
I try with the plugin example SCIndependentPlayback but I have the error:
************** Outer Exception **************
Tipo di eccezione:System.MissingMethodException
Messaggio di eccezione:Impossibile trovare il metodo 'Boolean VideoOS.Platform.FQID.op_Inequality(VideoOS.Platform.FQID, VideoOS.Platform.FQID)'.
Sorgente eccezione:SCIndependentPlayback
Sito di destinazione dell'eccezione: ViewItemManagerPropertyChangedEvent
in SCIndependentPlayback.Client.SCIndependentPlaybackViewItemWpfUserControl.ViewItemManagerPropertyChangedEvent(Object sender, EventArgs e)
in System.EventHandler.Invoke(Object sender, EventArgs e)
in VideoOS.Platform.Client.ConfigurationItemBase.SaveProperties()
in SCIndependentPlayback.Client.SCIndependentPlaybackViewItemManager.set_SelectedCamera(Item value)
in SCIndependentPlayback.Client.SCIndependentPlaybackPropertiesWpfUserControl.OnSourceSelected(Object sender, RoutedEventArgs e)
in System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
in System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
in System.Windows.Controls.Primitives.ButtonBase.OnClick()
in System.Windows.Controls.Button.OnClick()
in System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
in System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
in System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
in System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
in System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
in System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
in System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
in System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
in System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
in System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
in System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
in System.Windows.Input.InputManager.ProcessStagingArea()
in System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
in System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
in System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
in System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
in System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
in MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
in MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
in System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
in System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
missing op_Inequality!!
Can you help me?
Please verify to use the newest sample from https://github.com/milestonesys
Which version of VMS are you using?
Milestone Expert and ProfessionalInviato dal mio Galaxy
Thank you, but that “Expert” is an edition… Version should be something like 2022 R2 or 2022 R3, so can you please tell us about the VMS version?
Also please write your reply in English.
Hello,
The version in use is Xpert Professional 2020 R3,
but we will update it in January with the latest version
SCIndependentPlayback it’s ok now but i have some problems:
When i add cam into view and change tab, i lose camera and i reload the camera again
I would to have more option to playback time line such as zoomed time for example
in my plugin i get frame of the video with the code:
System.Collections.ObjectModel.Collection<object> result = EnvironmentManager.Instance.SendMessage(new Message(MessageId.SmartClient.GetCurrentPlaybackTimeRequest));
...
show = (DateTime)result[0];
...
BitmapVideoSource _bitmapVideoSource = new BitmapVideoSource(camera);
_bitmapVideoSource.Init();
BitmapData bit = (BitmapData)_bitmapVideoSource.GetNearest(show);
but if i try to capture frame by SCIndependentPlayback plugin the date “show” of the code is wrong as if bypass timeline of the plugin SCIndependentPlayback.
Can you help me?
1. The sample does persist camera so can you please check it again?
2. I am sorry, but I failed to understand the question, can you elaborate on this?
3. You will need to specify a playback controller by FQID (of the playback controller).