need some help/guide in having live/playback controller integrated to plugin
need to have independent playback for plugin when playback is click in smartclient and live view when live is clicked, be able to control the playback time, jump to location
don’t see any sample regarding this
I believe the easiest way to achieve this is to add to the Smart Client Independent Playback plugin sample so that you can switch in and out of “Live” mode. There is no plugin sample that shows this but you can see the mechanism in the PlaybackUser sample.
Have been referring the Smart Client Independent Playback plugin sample to include integrated plyaback, but not able to switch live,
how to remove this programatically _imageViewerControl.PlaybackControllerFQID = _playbackFQID;
where is this PlaybackUser sample?
Try bool InLive = EnvironmentManager.Instance.Mode == Mode.ClientLive;
if we make this _imageViewerControl.PlaybackControllerFQID = null it crashes. what do we need to set if we have to remove during live
Thanks Bo Andersen,
We see new sample PlaybackUser sample in MIP SDK 2017 , we will check that
Still how do we notify this _playbackFQID, so imageviewer can show live, or do we need to initialize from first whenever we change between live and playback
I experimented with the SCIndependentPlayback plugin sample and inserted this.
if (_inLive)
{
_imageViewerControl.StartBrowse();
panelPlaybackControl.Show();
}
else
{
_imageViewerControl.StartLive();
panelPlaybackControl.Hide();
}
_inLive = !_inLive;
This works for me.
tried same in SCIndependentPlayback
still the same imageviewer plugin stays in playback , where do we need to put this code.
can you please share the cs file
is this feature added in corporate 2017?
I put it in the SCIndependentPlayback2ViewItemUserControl - ImageViewerControlClickEvent. (This is OK only for the experiment and because it is not a good user interface you need to figure out another way.)
private bool _inLive = false;
..
// only change is in the ImageViewerControlClickEvent
private void ImageViewerControlClickEvent(object sender, EventArgs e)
{
FireClickEvent();
_imageViewerControl.Select();
if (_inLive)
{
_imageViewerControl.StartBrowse();
panelPlaybackControl.Show();
}
else
{
_imageViewerControl.StartLive();
panelPlaybackControl.Hide();
}
_inLive = !_inLive;
}
We have added in smart client modehandler, but still it always stays in playback, not starting live
If you repeat my experiment exactly, does it fail for you?
it’s working if we put in imageviewer click event, but not happening automatically if we put in mode change
My guess is.. When you do your own playbackusercontrol you choose not to follow the mode change of the Smart Client in general.
To keep it simple I will actually suggest that you put a button (toggle) on the viewitem to change mode from playback to live and vice versa.
Alternative approach, listen for
-
VideoOS.Platform.Messaging.MessageId.SmartClient Class Reference
static String ShownWorkSpaceChangedIndication = “SmartClient.ShownWorkSpaceChangedIndication”
Is send when the Smart Client changed the shown work space. The Data field contains the item for the new work space.
-
You can see how this work if you explore the Message Tester tool plugin sample.