Skip to content

Commit

Permalink
Merge pull request #97 from Videodock/feat/use-playlist-item-in-playe…
Browse files Browse the repository at this point in the history
…r-config

feat(player): use playlist item in player config
  • Loading branch information
ChristiaanScheermeijer authored Jul 30, 2021
2 parents 5d2f7a4 + 5ee0a59 commit bc9dae1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
'home',
'playlist',
'videodetail',
'player',
'series',
'search',
'user',
Expand Down
11 changes: 1 addition & 10 deletions src/containers/Cinema/Cinema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,7 @@ const Cinema: React.FC<Props> = ({ item, onPlay, onPause, onComplete, onUserActi
playerRef.current = window.jwplayer(playerElementRef.current);

playerRef.current.setup({
playlist: [
{
mediaid: item.mediaid,
image: item.image,
title: item.title,
description: item.description,
sources: item.sources.map((source) => ({ ...source })),
tracks: item.tracks,
},
],
playlist: [item],
aspect: false,
width: '100%',
height: '100%',
Expand Down

0 comments on commit bc9dae1

Please sign in to comment.