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

Refactor of including javascript content to brightcove player #49

Merged
merged 1 commit into from
Jan 4, 2017

Conversation

sendr
Copy link

@sendr sendr commented Jan 4, 2017

No description provided.

var controlsTabOrder = [
'progressControl',
'playToggle',
'playbackRateMenuButton',
'volumeMenuButton',
'resolutionSwitcher',
// 'resolutionSwitcher',
Copy link

Choose a reason for hiding this comment

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

Delete it

'captionsButton': controlBar.captionsButton.el_,
'volumeMenuButton': controlBar.volumeMenuButton.volumeBar.el_,
'fullscreenToggle': controlBar.fullscreenToggle.el_,
// 'resolutionSwitcher': _player.controlBar.resolutionSwitcher,
Copy link

Choose a reason for hiding this comment

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

Delete it

'volumeMenuButton': controlBar.volumeMenuButton.volumeBar.el_,
'fullscreenToggle': controlBar.fullscreenToggle.el_,
// 'resolutionSwitcher': _player.controlBar.resolutionSwitcher,
'playbackRateMenuButton': controlBar.playbackRateMenuButton.el_
};

// Swith off tabIndex for volumeMenuButton and free slot for volumeBar
Copy link

Choose a reason for hiding this comment

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

Typo: Switch

@@ -396,3 +396,42 @@ body .video-js .vjs-menu-button-popup .vjs-menu .vjs-menu-item:hover {
background-color: #171a1b;
color: #0ea6ec;
}

Copy link

Choose a reason for hiding this comment

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

Extract this new code to .../css/transcripts.css.


def add_js_content(self, path, **context):
"""
Helper for adding javascript content to brightcove player
Copy link

Choose a reason for hiding this comment

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

Is it only for brightcove or can be used in other players?

Copy link

Choose a reason for hiding this comment

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

Right now we need this for Brightcove only. But it can be used for other players too.

Copy link

Choose a reason for hiding this comment

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

In this case, it makes sense to avoid using brightcove player name in the docstring

@sendr sendr force-pushed the brightcove_player_refactor branch from 5a0f1e3 to c87c596 Compare January 4, 2017 16:02
@sendr sendr merged commit 8f32dae into dev Jan 4, 2017
@sendr sendr deleted the brightcove_player_refactor branch February 24, 2017 15:29
dyudyunov pushed a commit that referenced this pull request Jan 13, 2022
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.

3 participants