2024-11-27 11:32 AM
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; //