Help us understand the problem. What is going on with this article?

Cordova で選択 or 撮影した動画のサムネイルを表示する

More than 1 year has passed since last update.

Cordova 関係なくスマホブラウザで動画のサムネイルを表示するのは面倒です。
少しハマったのでメモを残します。

  1. video を load() する
  2. video を play() する
  3. vidoe を pause() する前に若干再生させる
  4. 今度こそ video を pause() する

サンプル
https://jsfiddle.net/AmataKasaP/9pryvjny/

参考
https://www.buraktokak.com/ios-safari-html5-video-thumbnail-load-kullanmadan-yuklenmiyor/

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away