Open edx 里面内置video组件源代码 & tracking event

找video的代码和event tracker找了好久,最后在slack里面openedx的channel里提问,很快就得到回复:(其实video组件是用xmodule来做的,open edx打算弃用xmodule但是目前还没有时间表,所以需要看此部分代码的童鞋,只能看下面的连接啦)

There is not very much documentation that I can find. This page provides a high level overview of the pieces: https://openedx.atlassian.net/wiki/display/TNL/Video+Module+architecture

It is indeed still an XModule. There are plans to convert all the modules over to XBlocks but I don’t believe that this has been scheduled. You can see the current roadmap here: https://openedx.atlassian.net/wiki/display/PROD/Product+Roadmap
https://openedx.atlassian.net/wiki/display/TNL/Video+Module+architecture

直接看源码就可以了。
话说我捣鼓edx时,遇到的第一个问题就是改造视频播放器。源码就在common/lib/xmoudle/底下。js,scss,py都有了,跟着事件调就可以了
看懂应该不难,我赶脚比看英文文章容易多了……:sweat_smile:

谢谢啦。已经开始看代码啦!

Powered by eduStack & ifLab