How to prevent HTML5 video player redirection within a submission form?

The problem arises when I incorporate an HTML5 Video Player into a form submission. Upon clicking the play button, the video begins to play as expected. However, after a brief moment, the entire page abruptly redirects to the post-action script.
This behavior is not ideal, as I intended for the video to play within the form without triggering a page redirection. This unexpected redirection disrupts the user experience and prevents the video from being viewed seamlessly within the form interface. Can someone help me with this?