Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya authored Sep 9, 2022
1 parent 924a8cd commit 96a2f96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/hls/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ const generateSetting = (
hlsInstance.levels.sort((a, b) => b.height - a.height)

const settingOptions = hlsInstance.levels.map((level, i) => {
const name = level.name || level.height
return {
name: `${level.name || level.height}p` as string,
name: `${name}${typeof name == 'number' && isFinite(name) ? 'p' : ''}` as string,
type: 'switcher',
default: hlsInstance.currentLevel == i,
value: i
Expand Down

1 comment on commit 96a2f96

@vercel
Copy link

@vercel vercel bot commented on 96a2f96 Sep 9, 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.