-
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
Bug/relocate django vars #117
Conversation
- add into options "tabindex" to togleButton - add into options "tabIndex" to transcript
c9e3f8b
to
864a035
Compare
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.
Now much better. Only two minor things to address. and it's good to go.
}; // eslint-disable-line | ||
|
||
var transcripts = {}; | ||
player_state_obj.transcripts.forEach(function loop_transcript(transcript) { |
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 camelCase - loopTranscript
video_xblock/backends/base.py
Outdated
@@ -105,10 +106,24 @@ def metadata_fields(self): | |||
""" | |||
return [] | |||
|
|||
def _extra_context(self, context): |
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.
Why new function and new context['player_state_json']
?
video_xblock/backends/base.py
Outdated
@@ -5,6 +5,7 @@ | |||
Base Video player plugin | |||
""" | |||
|
|||
import json |
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 order section alphabetically.
864a035
to
18f939f
Compare
-add valid json into player context on backend -parse json on frontend and use js object as global var
18f939f
to
7adf6b5
Compare
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.
👍
* Move django vars from js -add valid json into player context on backend -parse json on frontend and use js object as global var
No description provided.