Warning: include_once(/home/sites/lolipop.jp/users/lolipop.jp-dp16105308/web/wp/wp-content/plugins/wp-super-cache/wp-cache-phase1.php): failed to open stream: Permission denied in /home/users/0/lolipop.jp-dp16105308/web/wp/wp-content/advanced-cache.php on line 8

Warning: include_once(): Failed opening '/home/sites/lolipop.jp/users/lolipop.jp-dp16105308/web/wp/wp-content/plugins/wp-super-cache/wp-cache-phase1.php' for inclusion (include_path='.:/usr/local/php/7.4/lib/php') in /home/users/0/lolipop.jp-dp16105308/web/wp/wp-content/advanced-cache.php on line 8
YouTubeの開始時間と終了時間を指定してブログに貼り付ける方法 - Blog.IKUBON.com

YouTubeの開始時間と終了時間を指定してブログに貼り付ける方法

YouTubeをブログに貼り付けるときに、再生の開始時間と終了時間を指定したい場合があります。特に、長尺のビデオの場合なんかはそう。

こんな場合には、貼り付けのコードに開始と終了時間のパラメータを加えてやるとOK。ただし、時間は秒数で指定しなければなりません。

<iframe width="500" height="281" src="//www.youtube.com/embed/VaRVew_aGVU?start=35&end=65" frameborder="0" allowfullscreen></iframe>

ビデオ再生すると、コントロールバーに指定した範囲が表示されるようになります。

YouTube Embed

実際に貼り付けてみると、こんな感じ。

» Partial YouTube Embeds

スポンサーリンク

フォローする

スポンサーリンク