mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: time in manifest
This commit is contained in:
1 parent
a0d78f89ff
commit
fae9f8bded
2 files changed
+4
-1
No files matched your search
+2
-1
@@ -16,7 +16,8 @@ Header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Body {
|
Body {
|
||||||
primary uint8 base;
|
uint32 time;
|
||||||
|
uint8 base;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ export class RtsmReadStream extends ReadStream {
|
|||||||
|
|
||||||
body() {
|
body() {
|
||||||
return {
|
return {
|
||||||
|
time: this.uint32(),
|
||||||
base: this.uint8(),
|
base: this.uint8(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -56,6 +57,7 @@ export class RtsmWriteStream extends WriteStream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body(base: number) {
|
body(base: number) {
|
||||||
|
this.uint32(Math.round(Date.now() / 1000));
|
||||||
this.uint8(base);
|
this.uint8(base);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user