Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Oct 23, 2022
1 parent 49803fb commit 15cd255
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/ui/src/components/Progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ const render = (player: Player, el: HTMLElement, config: UiConfig) => {
</div>
</div>`
)
const firstElement = $dom.firstElementChild! as HTMLDivElement
const { init: initThumbnail, update: thumbnailUpdater } = config.thumbnails?.isVTT
? renderVTTThumbnail(player, $dom.firstChild, config.thumbnails)
: renderThumbnail(player, $dom.firstChild, config.thumbnails)
? renderVTTThumbnail(player, firstElement, config.thumbnails)
: renderThumbnail(player, firstElement, config.thumbnails)

renderHighlight(player, $dom.firstChild, config.highlight)
renderHighlight(player, firstElement, config.highlight)

const $buffered = $dom.querySelector<HTMLDivElement>(`.${buffered}`)!
const $played = $dom.querySelector<HTMLDivElement>(`.${played}`)!
Expand Down

1 comment on commit 15cd255

@vercel
Copy link

@vercel vercel bot commented on 15cd255 Oct 23, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

oplayer – ./

oplayer-shiyiya.vercel.app
oplayer-git-main-shiyiya.vercel.app
oplayer.vercel.app

Please sign in to comment.