Skip to content

Commit 0fcfbc9

Browse files
committed
Added muxing to the testing
1 parent d5a5ac9 commit 0fcfbc9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

writer_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package media_test
22

33
import (
4+
"context"
45
"path/filepath"
56
"strings"
67
"testing"
@@ -33,5 +34,12 @@ func Test_writer_001(t *testing.T) {
3334
t.SkipNow()
3435
}
3536
defer writer.Close()
37+
3638
t.Log(writer, "=>", filename)
39+
40+
// Perform muxing of packets
41+
writer.Mux(context.Background(), func(stream int) (Packet, error) {
42+
t.Log("Muxing packet for stream", stream)
43+
return nil, nil
44+
})
3745
}

0 commit comments

Comments
 (0)