JavaScript video commands work on Video Player Assert, DO NOT work on Video Asset.

On my website, I have written JavaScript code that makes buttons on my website control the time of a video. In particular I am using the seak() function with these buttons. When I publish my website, the code I have written only works on Video Player assets and not Video assets. I wish to use the Video asset as opposed to the Video Player asset. Is there a way to make my code work on the Video Asset?