You can give this a try: (requires an HTML 5 browser)Here is the actual exported result:
What does this do?Answer: When the page loads, a trigger is sent to the video player field to load the video. We set the video monitor to
"continuous" so we have playback tracking. If the continuous monitor detects the video has stalled for 20 seconds, it issues an automatic reload (or trigger) back to the video player field. If you are using time markers, however, you will probably have to use
pgTimer() instead of the continuous monitor of the
htmlVideoLoader() function. In the above example, the red field is used to show the video playhead progress. If at any time it stalls, then the system will wait up to 20 seconds for it to begin playing again. If that doesn't happen, then it will trigger the video player field to reload the video and start it from the beginning.
Steps to Reproduce- Define a global variable called videoStream and initialize it as an array.
- Draw a field and name it "VideoPlayer"
- Draw a button and leave it unnamed. Set the caption to "Reload" and place an on click action on this button to trigger the field "VideoPlayer"
- Draw a field and name it "Events"
- Add these actions to the on load page action of the field "VideoPlayer"

- on load page actions
- onFirstIdle.png (50.24 KiB) Viewed 12771 times
- Add these actions to the on trigger action of the field "VideoPlayer"

- onTrigger actions
- onTrigger.png (56.2 KiB) Viewed 12761 times
- Add these actions to the on user event of the field "VideoPlayer"

- on user event actions
- onUserEvent.png (35.27 KiB) Viewed 12761 times
Here is a detail of the pgAnimateCSS() parameters. Once the continuous monitor begins recording playhead movement, we can fade in the video player using this function.

- pgAnimateCSS Parameters
- pgAnimateCSS.png (57.61 KiB) Viewed 12761 times
- Export and try it out on an unstable connection.
I couldn't actually test this because I couldn't simulate a stalled video stream.
Let us know what you end up doing to get it to work in your particular application!