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

fix: typo #4603

Merged
merged 1 commit into from
Mar 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- [`Hls.DefaultConfig get/set`](#hlsdefaultconfig-getset)
- [`capLevelToPlayerSize`](#capleveltoplayersize)
- [`capLevelOnFPSDrop`](#caplevelonfpsdrop)
- ['ignoreDevicePixelRatio'](#ignoreDevicePixelRatio)
- [`ignoreDevicePixelRatio`](#ignoreDevicePixelRatio)
- [`debug`](#debug)
- [`autoStartLoad`](#autostartload)
- [`startPosition`](#startposition)
Expand Down
1 change: 1 addition & 0 deletions docs/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ design idea is pretty simple :
[src/controller/subtitle-stream-controller.ts]: ../src/controller/subtitle-stream-controller.ts
[src/controller/subtitle-track-controller.ts]: ../src/controller/subtitle-track-controller.ts
[src/controller/timeline-controller.ts]: ../src/controller/timeline-controller.ts
[src/controller/gap-controller.ts]: ../src/controller/gap-controller.ts
[src/crypt/aes.ts]: ../src/crypt/aes.ts
[src/crypt/aes128-decrypter.ts]: ../src/crypt/aes128-decrypter.ts
[src/crypt/aes-decrypter.ts]: ..src/crypt/aes-decrypter.ts
Expand Down
4 changes: 2 additions & 2 deletions src/controller/cap-level-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class CapLevelController implements ComponentAPI {

// Levels can have the same dimensions but differing bandwidths - since levels are ordered, we can look to the next
// to determine whether we've chosen the greatest bandwidth for the media's dimensions
const atGreatestBandiwdth = (curLevel, nextLevel) => {
const atGreatestBandwidth = (curLevel, nextLevel) => {
if (!nextLevel) {
return true;
}
Expand All @@ -271,7 +271,7 @@ class CapLevelController implements ComponentAPI {
const level = levels[i];
if (
(level.width >= width || level.height >= height) &&
atGreatestBandiwdth(level, levels[i + 1])
atGreatestBandwidth(level, levels[i + 1])
) {
maxLevelIndex = i;
break;
Expand Down
6 changes: 3 additions & 3 deletions src/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export enum Events {
MEDIA_ATTACHING = 'hlsMediaAttaching',
// Fired when MediaSource has been successfully attached to media element
MEDIA_ATTACHED = 'hlsMediaAttached',
// Fired before deatching MediaSource from media element
// Fired before detaching MediaSource from media element
MEDIA_DETACHING = 'hlsMediaDetaching',
// Fired when MediaSource has been detached from media element
MEDIA_DETACHED = 'hlsMediaDetached',
Expand Down Expand Up @@ -150,9 +150,9 @@ export enum Events {
FRAG_BUFFERED = 'hlsFragBuffered',
// fired when fragment matching with current media position is changing - data : { id : demuxer id, frag : fragment object }
FRAG_CHANGED = 'hlsFragChanged',
// Identifier for a FPS drop event - data: { curentDropped, currentDecoded, totalDroppedFrames }
// Identifier for a FPS drop event - data: { currentDropped, currentDecoded, totalDroppedFrames }
FPS_DROP = 'hlsFpsDrop',
// triggered when FPS drop triggers auto level capping - data: { level, droppedlevel }
// triggered when FPS drop triggers auto level capping - data: { level, droppedLevel }
FPS_DROP_LEVEL_CAPPING = 'hlsFpsDropLevelCapping',
// Identifier for an error event - data: { type : error type, details : error details, fatal : if true, hls.js cannot/will not try to recover, if false, hls.js will try to recover,other error specific data }
ERROR = 'hlsError',
Expand Down
2 changes: 1 addition & 1 deletion src/utils/discontinuities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export function alignMediaPlaylistByPDT(
const refPDT = refDetails.fragments[0].programDateTime!; // hasProgramDateTime check above makes this safe.
const refStart = refDetails.fragments[0].start;
// Use the delta between the reference details' presentation timeline's start time and its PDT
// to align the other rendtion's timeline.
// to align the other rendition's timeline.
const delta = refPDT - refStart * 1000;
// Per spec: "If any Media Playlist in a Master Playlist contains an EXT-X-PROGRAM-DATE-TIME tag, then all
// Media Playlists in that Master Playlist MUST contain EXT-X-PROGRAM-DATE-TIME tags with consistent mappings
Expand Down