Search code examples
vue.jshtml5-videotizentizen-web-app

HTML5 video set currentTime not work on Samsung Smart TV


i creating a html5 video element on want to set the position of the video to a specific. If i open the index.html in chrome or running it on the Tizen Web Simulator Applocation its works fine. But if i deploy the application on the smart tv it does not work at reset the currentTime always to the starttime.

video id="video" src="{externalResource}" ref="videoplayer" @loadedmetadata="initplayScreenProgressControls" @timeupdate="updateProgressTimer()"></video>

initplayScreenProgressControls(){

  document.getElementById('video').currentTime = 200;
  document.getElementById('video').play();

},

So why does it work on the emulator and the browser but not in the physical device?


Solution

  • I found out the problem was not the HTML5 video in tizen. The problem was the source where the video was loaded from. Before i setup a fastify webserver with fastify static and i cant figured out why but if the video was loaded from fastify static the player cant set the current time. now i loaded the video directly from a nginx server and it work fine.