Add MediabunnyServerOptions and configurable hardware context (closes #389)

This commit is contained in:
Vanilagy
2026-06-02 16:28:47 +02:00
parent 8fbd31849b
commit ebfb1e6d75
8 changed files with 130 additions and 6 deletions
+3
View File
@@ -42,6 +42,9 @@ export class AvFrameAudioSampleResource extends AudioSampleResource {
constructor(frame: NodeAv.Frame) {
super();
if (!(frame instanceof NodeAv.Frame)) {
throw new TypeError('frame must be a NodeAv.Frame.');
}
if (frame.getMediaType() !== NodeAv.AVMEDIA_TYPE_AUDIO) {
throw new Error('AvFrameAudioSampleResource must be initialized with an audio frame.');
}