cancel
Showing results for 
Search instead for 
Did you mean: 

Confusion: stopping a repeat Video

Marc_LM
Associate III

I am exploring the video API and I found a strange behaviour.
While testing "Video example", I added a stop button.
I was expecting the stop to update its frame to the start of a video but that did not happen.
I had to *.showFrame(1) to force the update.

If a video is marked as Repeat-able[1], shouldn't stop[2] reset the image to the start of the video?

Note: I cannot test my suggestion as this is par of generated code.


[1] *.setRepeat(true); // *ViewBase
[2] Suggestion:
setCommand( _, STOP, _)
    stream.isShowingOneFrame = stream.repeat;  // force update on repeat stream?
    stream.doDecodeNextFrame = stream.repeat; //

1 REPLY 1
Joe WILLIAMS
ST Employee

Hi Marc_LM

 

This post has been escalated to the ST Online Support Team for additional assistance.  We'll contact you directly.

 

Regards

Joe

STMicro Support