mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-09-27 04:36:12 +08:00
16 lines
253 B
Go
16 lines
253 B
Go
package streams
|
|
|
|
import (
|
|
"encoding/json"
|
|
"github.com/AlexxIT/go2rtc/pkg/streamer"
|
|
)
|
|
|
|
type Consumer struct {
|
|
element streamer.Consumer
|
|
tracks []*streamer.Track
|
|
}
|
|
|
|
func (c *Consumer) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(c.element)
|
|
}
|