(HTML/CSS) 从同一页面链接到嵌入的 youtube 视频的特定时间
(HTML/CSS) Linking from the same page to specific times of embedded youtube video
我有一个嵌入的 YouTube 视频,从 0:00:00 开始。它后面是一段包含视频示例的段落,每个示例都有时间戳。有没有办法将这些时间戳 link 返回到视频中,以便点击每个时间戳将视频的起点移动到该特定点?
谢谢!
<div class="video">
<iframe width="100%" height="360px" src="https://www.youtube.com/embed/7A6K2BeCMz0?rel=0" frameborder="0" allowfullscreen></iframe>
</div>
...
<p>I can warmly recommend watching the entire movie, but here’s a shortlist of the strongest moments: Sergey’s being flogged by Boris (41:25), the poisoning of Boris (44:53); Zinovij return and death (1:05:04); the scene with the shabby little man (1:11:06, and especially the orchestral interlude at 1:14:00); the song of the exiled to Siberia (1:22:49—“O, you, road ploughed by chains, / the road to Siberia, sown with bones, / this road has been watered with blood and sweat, / death groans arise from it…”); the purest, most lyrical moment of the opera—Katerina’s words to Sergey as they meet after a day’s march (1:29:12—“Seryozha, my dearest! At last! I’ve gone the whole day without seeing you, Seryozha! Even the pain in my legs has gone, and the tiredness, and the grief, now you are with me…”). And finally, her final monologue, terrible in its disconnectedness, after Sergey’s betrayal, as for the first time since the opera began she understands what she’d done, and we see the dark chasm yawning before her (1:38:10)</p>
Link 到 Youtube 的时间戳 URL 加上一个起始参数(值为起始点的秒数)
对于你的情况,link 41:25 到 https://www.youtube.com/embed/7A6K2BeCMz0?start=2485
YouTube iFrame API 包含 the function player.seekTo(seconds:Number, allowSeekAhead:Boolean):Void
. It requires implementing the iFrame using JavaScript however. You can find instructions here。
我有一个嵌入的 YouTube 视频,从 0:00:00 开始。它后面是一段包含视频示例的段落,每个示例都有时间戳。有没有办法将这些时间戳 link 返回到视频中,以便点击每个时间戳将视频的起点移动到该特定点?
谢谢!
<div class="video">
<iframe width="100%" height="360px" src="https://www.youtube.com/embed/7A6K2BeCMz0?rel=0" frameborder="0" allowfullscreen></iframe>
</div>
...
<p>I can warmly recommend watching the entire movie, but here’s a shortlist of the strongest moments: Sergey’s being flogged by Boris (41:25), the poisoning of Boris (44:53); Zinovij return and death (1:05:04); the scene with the shabby little man (1:11:06, and especially the orchestral interlude at 1:14:00); the song of the exiled to Siberia (1:22:49—“O, you, road ploughed by chains, / the road to Siberia, sown with bones, / this road has been watered with blood and sweat, / death groans arise from it…”); the purest, most lyrical moment of the opera—Katerina’s words to Sergey as they meet after a day’s march (1:29:12—“Seryozha, my dearest! At last! I’ve gone the whole day without seeing you, Seryozha! Even the pain in my legs has gone, and the tiredness, and the grief, now you are with me…”). And finally, her final monologue, terrible in its disconnectedness, after Sergey’s betrayal, as for the first time since the opera began she understands what she’d done, and we see the dark chasm yawning before her (1:38:10)</p>
Link 到 Youtube 的时间戳 URL 加上一个起始参数(值为起始点的秒数)
对于你的情况,link 41:25 到 https://www.youtube.com/embed/7A6K2BeCMz0?start=2485
YouTube iFrame API 包含 the function player.seekTo(seconds:Number, allowSeekAhead:Boolean):Void
. It requires implementing the iFrame using JavaScript however. You can find instructions here。