敏捷工具包的视频播放器
我正在寻找一个为 Agile Toolkit 实现基本视频播放器的附加组件。有人可以贡献什么吗?这是我希望编写的使用它的代码:
$player = $video->add('VideoPlayer_YouTube');
$player->setSource($url);
但也应该能够播放 .mp4 视频或使用 MediaElementJS
$player = $video->add('VidoPlayer_HTML5');
$player->setSource($url);
$player->js(true)
->_load('mediaelement-and-player.min')
->_css('mediaelementplayer')
->mediaelementplayer();
(ps代码界面好看吗?)
I'm looking for an add-on implementing a basic video player for Agile Toolkit. Does anyone have anything to contribute? Here is the code I'd expect to write to use it:
$player = $video->add('VideoPlayer_YouTube');
$player->setSource($url);
But should also be capable of playing .mp4 videos or with MediaElementJS
$player = $video->add('VidoPlayer_HTML5');
$player->setSource($url);
$player->js(true)
->_load('mediaelement-and-player.min')
->_css('mediaelementplayer')
->mediaelementplayer();
(p.s. is code interface looks good?)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论