Hi,
I’m trying to play video using VideoView ActiveX Component. It works fine in Live mode, single saved frames are shown too (functions Begin/End, Goto, Previous/Next are working as documented). But recorded video failed to play, function SetPlaybackMode returns 0.
What is the right way to play recorded video in unmanaged (it means without using of managed PlaybackController) code? Is there an example?
Thanks
There is a sample. I hope it will show you all you need. Please look at the ImageViewerDemoActiveX.htm sample.
Thanks, I saw it. In playback mode this code simply gets single frames in timer’s callback function.
Did I understand correctly that ImageView in playback mode by itself doesn’t implement any specific performance optimization or buffering on client side?
And there is no relation between playback speed in FPS and frame rate of saved video?
You accurately explain the sample.
ImageViewer does not have a build-in playback mechanism.
-
You can actually set the sample to a very high “PlaybackIRPS” eg. 60 and ensure you get the full framerate.
--
Alternative approach. Use Next() instead of GoTo() for better performance. Use SetOnRecordedImageDisplayedEventStatus (SHORT bEnable) and onRecordedImageDisplayed (LPCTSTR strPreviousImageMilliseconds, LPCTSTR strCurrentImageMilliseconds, LPCTSTR strNextImageMilliseconds) and the time information for current and next image to pace the retrieval and display of the images.