-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/bugfix offset #26
Conversation
videojs.plugin('xblockEventPlugin', xblockEventPlugin); | ||
videojs('{{ video_player_id }}').xblockEventPlugin(); | ||
player.xblockEventPlugin(); | ||
videojs.plugin('offset', vjsoffset); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see where vjsoffset
is defined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vjsoffset
is defined here
https://github.com/raccoongang/videojs-offset/blob/master/dist/videojs-offset.js#L88
I met problem with player visible in
https://github.com/raccoongang/videojs-offset/blob/master/dist/videojs-offset.js#L89
for brightcove. That's why I call plugin inside html file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, now I see. Please change to more explicit window.vjsoffset
.
@@ -14,13 +15,14 @@ | |||
from xblock.fragment import Fragment | |||
from xblock.validation import ValidationMessage | |||
from xblockutils.studio_editable import StudioEditableXBlockMixin | |||
from xmodule.fields import RelativeTime | |||
from django.utils.translation import ugettext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use XBlock's ugettext instead
https://github.com/edx/XBlock/blob/master/xblock/core.py#L204
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Met the problem
We're having trouble rendering your component
Students will not be able to access this component. Re-edit your component to fix the error.
Error: unbound method ugettext() must be called with XBlock instance as first argument (got str instance instead)
Change to _("...")
player.offset({ | ||
"start": {{ start_time }}, | ||
"end": {{ end_time }} | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation looks wrong
@@ -5,6 +5,7 @@ | |||
""" | |||
|
|||
import logging | |||
import datetime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please reorder imports according to code style
https://edx.readthedocs.io/projects/edx-developer-guide/en/latest/style_guides/python_guidelines.html#imports-order
Resolve conflicts, squash and commit! |
ff91bae
to
329942b
Compare
Add new library videojs-offset Add new fields start_time and end_time
329942b
to
2e05e70
Compare
No description provided.