当前时间youtube嵌入式视频 [英] current time youtube embedded video

查看:114
本文介绍了当前时间youtube嵌入式视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以使用Jquery或任何其他语言来了解youtube嵌入式视频的当前时间,如果可以,如何?

I will like to know if there's a way with Jquery or any other language to know the current time on a youtube embedded video, if yes, How?

预先感谢

推荐答案

是.

这取决于您如何嵌入YouTube视频.但是,无论如何,JavaScript API都具有以下功能:

It depends on how you are embedding the YouTube video. But, in any case the JavaScript API has this function:

player.getCurrentTime()

阅读:

  • https://developers.google.com/youtube/iframe_api_reference
  • https://developers.google.com/youtube/js_api_reference
  • https://developers.google.com/youtube/flash_api_reference

这篇关于当前时间youtube嵌入式视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆