mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
35f69d09ea
commit
51fcbbf744
15 changed files with 114 additions and 83 deletions
|
@ -172,6 +172,7 @@ class MP4 {
|
|||
}
|
||||
|
||||
static mdhd(timescale, duration) {
|
||||
duration *= timescale;
|
||||
return MP4.box(MP4.types.mdhd, new Uint8Array([
|
||||
0x00, // version 0
|
||||
0x00, 0x00, 0x00, // flags
|
||||
|
@ -243,6 +244,7 @@ class MP4 {
|
|||
}
|
||||
|
||||
static mvhd(timescale,duration) {
|
||||
duration*=timescale;
|
||||
var
|
||||
bytes = new Uint8Array([
|
||||
0x00, // version 0
|
||||
|
@ -424,7 +426,7 @@ class MP4 {
|
|||
|
||||
static tkhd(track) {
|
||||
var id = track.id,
|
||||
duration = track.duration,
|
||||
duration = track.duration*track.timescale,
|
||||
width = track.width,
|
||||
height = track.height;
|
||||
return MP4.box(MP4.types.tkhd, new Uint8Array([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue