mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 16:07:07 +08:00

This update includes a newer version of the RTMP server that supports the enhances RTMP specification, i.e. HEVC, VP9, and AV1.
18 lines
348 B
Go
18 lines
348 B
Go
package spec
|
|
|
|
import (
|
|
"embed"
|
|
"path"
|
|
)
|
|
|
|
//go:embed schemas/*.json schemas/*/*.json
|
|
var assets embed.FS
|
|
|
|
func jsonschemaDraft04JSONBytes() ([]byte, error) {
|
|
return assets.ReadFile(path.Join("schemas", "jsonschema-draft-04.json"))
|
|
}
|
|
|
|
func v2SchemaJSONBytes() ([]byte, error) {
|
|
return assets.ReadFile(path.Join("schemas", "v2", "schema.json"))
|
|
}
|