node-media-server
Version:
A Node.js implementation of RTMP Server
23 lines (20 loc) • 408 B
JavaScript
// @ts-check
//
// Created by Chen Mingliang on 23/12/01.
// illuspas@msn.com
// Copyright (c) 2023 NodeMedia. All rights reserved.
//
class AVPacket {
constructor() {
this.codec_id = 0;
this.codec_type = 0;
this.duration = 0;
this.flags = 0;
this.pts = 0;
this.dts = 0;
this.size = 0;
this.offset = 0;
this.data = Buffer.alloc(0);
}
}
module.exports = AVPacket;