Dear All,
I have been facing a very strange problem in which the slider control placed below the embedded media player vanishes player vanishes sometimes when the video is loaded and played.
Language - vc++, mfc, visual studio 2013
Let me explain the software setup.
The software consists of a dialog panel with tabs in it. The two tabs importance are Analysis and Video tab.
The video tab has two embedded media player active X panels embedded in it. "no ui" mode is used for the payer
In the video tab are buttons "browse video" "Play video" "pause Video"
Below the video panel is a Slider control which moves as the video plays.
The analysis tab also has a media player active X panel embedded in it. "no ui" is used for the player
In the analysis tab are buttons "browse video" "Play video" "pause Video"
Below the video panel is a Slider control which moves as the video plays.
The sequence of operations which cause the problem are as below.
1. Go to the video tab load a video using "browse video"
2. Go to the analysis tab. (The video loaded in the video tab should automatically load and play. This works) The "slider control" shows fine and moved well.
3. Go back to the video tab and load another video using the "browse video"
4. Go to the analysis tab. (The newly loaded video should automatically load and play. This works fine)
Problem is the slider control sometimes vanishes after step 4.
It is also observed that if the task bar is moved to vertical position from horizontal, then the slider control reappears. This is the only way it reappears.
The slider control is there to show the position of the video playing. This is done by using a timer which wakes up every 100ms and get the position of the and based on it updates the slider position.
The slider is also used for scrubbing through the video.
Any help will be very much appreciated. If any more information of any kind is needed let me know.
Thanks and Regards,
Rakesh
What I have tried:
I have tried invalidation, redraw, SetWindowPos, movewindow, updatewindow, and many other things, changed the order of rendering between slider and media player.
Nothing has worked.
What worked was if I disable auto play I always get the slider control but the what is of interest is that it should load and play on it own without the slider vanishing.