Skip to content

Commit

Permalink
fix getRelativeUrlPath snippet in README
Browse files Browse the repository at this point in the history
  • Loading branch information
midzdotdev committed Nov 6, 2024
1 parent 61419bc commit a1c811f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ const hlsPackageModel = dir(

const masterPlaylistToVariantPlaylist = getRelativeUrlPath(
hlsPackageModel,
['manifest', { videoId: 42, quality: 720 }],
['variantStream.playlist', { videoId: 42, quality: 720, segmentId: 11 }]
['manifest', { videoId: 42 }],
['variantStream.playlist', { videoId: 42, quality: 720 }]
)
// result: "stream_720/playlist.m3u8"

Expand Down

0 comments on commit a1c811f

Please sign in to comment.