Skip to content
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

Merged
merged 1 commit into from
Dec 16, 2016
Merged

Feature/bugfix offset #26

merged 1 commit into from
Dec 16, 2016

Conversation

xahgmah
Copy link

@xahgmah xahgmah commented Dec 14, 2016

No description provided.

videojs.plugin('xblockEventPlugin', xblockEventPlugin);
videojs('{{ video_player_id }}').xblockEventPlugin();
player.xblockEventPlugin();
videojs.plugin('offset', vjsoffset);
Copy link

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?

Copy link
Author

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

Copy link

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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

@xahgmah xahgmah Dec 16, 2016

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 }}
});
Copy link

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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@z4y4ts
Copy link

z4y4ts commented Dec 16, 2016

Resolve conflicts, squash and commit!
Please ensure good commit message.

@xahgmah xahgmah force-pushed the feature/bugfix_offset branch 3 times, most recently from ff91bae to 329942b Compare December 16, 2016 12:37
Add new library videojs-offset
Add new fields start_time and end_time
@xahgmah xahgmah force-pushed the feature/bugfix_offset branch from 329942b to 2e05e70 Compare December 16, 2016 12:43
@xahgmah xahgmah merged commit 40d318e into dev Dec 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants