如何在 Moodle 中嵌入视频播放器?
- 我有一些视频文件将在视频播放器的帮助下播放。
- 我想在我的脚本中嵌入一个视频播放器,它将在 Moodle 1.9 中播放这些视频文件。
- 我无法在某些视频托管网站上上传这些视频文件,因为它们受到版权保护。
我怎样才能实现这一点?
- I have some video files that will be played with the help of a video player.
- I want to embed a video player in my script which will play these video files in moodle 1.9.
- I cannot upload those video files on some video hosting sites because those are copy protected.
How can I achieve that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Dinesh,
您没有提到您正在使用什么类型的视频文件,或者您喜欢的媒体播放器类型。如果它是常见格式 mpeg、flv、avi、m4v、quicktime 或 realplayer,那么 Moodle 内置的媒体过滤器可能会对您有所帮助。 Moodle 可以检测媒体文件的链接,并用嵌入式播放器替换它们。
http://docs.moodle.org/en/Multimedia_plugins
操作方法如下:
模块/过滤器/多媒体过滤器
然后使用模块/过滤器/多媒体插件进行配置
将视频文件上传到moodle课程或首页文件区域。如果文件太大而无法使用基于 Web 的上传进行上传,您可能必须直接在服务器上的 Moodledata 目录中执行此操作。
然后添加普通链接,例如 myvideo。您几乎可以在moodle允许您输入富文本的任何地方执行此操作。
因此,您可以通过将链接添加到课程中的主题描述中,或者创建一个单独的 Moodle“网页资源”(其中包含类似的链接)来将其添加到课程页面。
打开媒体过滤器后,Moodle 将尝试使用合适的嵌入式媒体播放器替换媒体文件的链接。
这对于短视频剪辑和音频效果很好,但长视频文件可能需要更复杂的解决方案,并且性能将取决于您托管网站的方式。
Dinesh,
You have not mentioned what type of video files you are using, or the type of media player which you prefer. If it is a common format mpeg, flv, avi, m4v, quicktime, or realplayer then the media filters built in to moodle might help you. Moodle can detect links to media files, and replace them with an embedded player.
http://docs.moodle.org/en/Multimedia_plugins
Here's how to do it:
Turn on Modules / Filters / Multimedia filter
Then configure using Modules / Filters / Multimedia Plugins
Uploading the video file to a moodle course or to the front page files area. You may have to do this directly to your moodledata directory on your server if the file is too large to upload using a web based upload.
Then add a normal link eg <a href="my-video.flv">myvideo</a>. You can do this almost anywhere that moodle allows you to enter rich text.
So you could add it to a course page by adding a link into the a topic description in a course, or by creating a separate moodle "web page resource", which includes a similar link.
With media filters turned on, moodle will try to replace the link to the media file with a suitable embedded media player.
This works well for short video clips and audio, but long video files might require a more complex solution and performance will depend on how you are hosting your site.
您可以使用 moodle-mplayer Activity (http://code. google.com/p/moodle-mplayer/)。
将其安装到服务器上后,您将能够添加一个新的活动,这将使您能够将视频添加到课程中并为每个课程设置特殊的视频相关设置。
顺便说一句,您可能也会对 Moodle 的 Kaltura 插件感兴趣。
http://www.kaltura.org/kaltura-moodle-plugin-installation-指南
You can use moodle-mplayer Activity ( http://code.google.com/p/moodle-mplayer/ ).
After you installed it on your server you will be able to add a new Activity which will enable you to add videos into your courses + set special video related settings for each one.
btw, there is a Kaltura plugin for Moodle that might interest you too.
http://www.kaltura.org/kaltura-moodle-plugin-installation-guide