Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 VIDEO.JS,我需要找出哪个播放器 video.js 用于 Javascript 函数.. 示例
var myPlayer = videojs("the_player_id"); if (myPlayer.currentTechnology() == "flash") { console.log("its using the flash player"); }
我在 API 中找不到任何东西。
在缩小的代码中,变量会被混淆,但在未缩小的版本中,您可以使用myPlayer.techName
myPlayer.techName
但是,仍然可以在缩小的代码中访问该属性。相反,它是:
myPlayer.xa