forked from web-padawan/aybolit
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cxl-ui): cxl-jw-player rename jw player component
Co-authored-by: Andrew Noblet <[email protected]> feat(cxl-ui): tweak jw player component Co-authored-by: Andrew Noblet <[email protected]> feat(cxl-ui): rename caption mixin to transcript mixin Co-authored-by: Andrew Noblet <[email protected]> feat(cxl-ui): tweak transcript mixin Co-authored-by: Andrew Noblet <[email protected]> feat(cxl-ui): rename chapter mixin to chapter navigation mixin Co-authored-by: Andrew Noblet <[email protected]> feat(cxl-ui): tweak chapter navigation mixin Co-authored-by: Andrew Noblet <[email protected]> feat(cxl-ui): add cxl-jw-player-transcript element Co-authored-by: Andrew Noblet <[email protected]> feat: cleanup, refactor & improve the code for PHP `cxl/jw-player` * jw-player height tweaks * [jw-player] add support for sources cherry-pick: #236 * cxl-jw-player set up api endpoint cherry-pick: #234
- Loading branch information
Showing
22 changed files
with
178 additions
and
72 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,6 @@ | |
} | ||
} | ||
|
||
:host([captions]) #container { | ||
grid-template-rows: 1fr max-content 1fr; | ||
} | ||
|
||
.captions { | ||
h2, | ||
span { | ||
|
3 changes: 3 additions & 0 deletions
3
packages/cxl-ui/scss/cxl-jw-player/cxl-jw-player-transcript-shadow.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:host(:not([hidden])) { | ||
display: block; | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/cxl-ui/scss/cxl-jw-player/cxl-jw-player-transcript.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:host(:not([hidden])) { | ||
display: block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.jw-player-button { | ||
width: 32px; | ||
fill: rgba(255, 255, 255, 0.8); | ||
|
||
&:hover { | ||
fill: rgba(255, 255, 255, 1); | ||
} | ||
} |
9 changes: 5 additions & 4 deletions
9
...cxl-ui/src/components/jw-player/README.md → ...ui/src/components/cxl-jw-player/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
packages/cxl-ui/src/components/cxl-jw-player/cxl-jw-player-transcript/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { html, LitElement } from 'lit'; | ||
import { customElement } from 'lit/decorators.js'; | ||
import style from '../../../styles/cxl-jw-player/cxl-jw-player-transcript-css'; | ||
import shadowStyle from '../../../styles/cxl-jw-player/cxl-jw-player-transcript-shadow-css'; | ||
|
||
@customElement('cxl-jw-player-transcript') | ||
export class CXLJWPlayerTranscriptElement extends LitElement { | ||
static get styles() { | ||
return [shadowStyle]; | ||
} | ||
|
||
render() { | ||
return html`<slot></slot>`; | ||
} | ||
|
||
async __setup() { | ||
await super.__setup(); | ||
|
||
this.__addStyle(style); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 15 additions & 8 deletions
23
.../cxl-ui/src/components/jw-player/index.js → ...-ui/src/components/cxl-jw-player/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,41 @@ | ||
import { LitElement } from 'lit'; | ||
import { customElement } from 'lit/decorators.js'; | ||
import { BaseMixin, CaptionMixin, ChapterMixin, SavePositionMixin } from './mixins'; | ||
import style from '../../styles/jw-player/jw-player-css'; | ||
import { BaseMixin, TranscriptMixin, ChapterNavigationMixin, SavePositionMixin } from './mixins'; | ||
import style from '../../styles/cxl-jw-player/cxl-jw-player-css'; | ||
import shadowStyle from '../../styles/cxl-jw-player/cxl-jw-player-shadow-css'; | ||
import { mixin } from './utility'; | ||
import { template } from './index.html'; | ||
|
||
@customElement('jw-player') | ||
export class JWPlayerElement extends mixin(LitElement, [ | ||
@customElement('cxl-jw-player') | ||
export class CXLJWPlayerElement extends mixin(LitElement, [ | ||
BaseMixin, | ||
CaptionMixin, | ||
ChapterMixin, | ||
TranscriptMixin, | ||
ChapterNavigationMixin, | ||
SavePositionMixin, | ||
]) { | ||
config = { | ||
width: '100%', | ||
height: '100%', | ||
playbackRateControls: [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2], | ||
plugins: { | ||
// 'http://192.168.0.101:8080/telemetry-8.20.0.js': {}, | ||
}, | ||
skin: { | ||
name: 'cxl-institute', | ||
}, | ||
stretching: 'uniform', | ||
}; | ||
|
||
static get styles() { | ||
return [style]; | ||
return [shadowStyle]; | ||
} | ||
|
||
render() { | ||
return template.bind(this)(); | ||
} | ||
|
||
async __setup() { | ||
await super.__setup(); | ||
|
||
this.__addStyle(style); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export { BaseMixin } from './BaseMixin'; | ||
export { TranscriptMixin } from './TranscriptMixin'; | ||
export { ChapterNavigationMixin } from './chapter-navigation'; | ||
export { SavePositionMixin } from './SavePositionMixin'; |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.