mpd
解析 MPD 文件。
这是对MPD 解析器从 JavaScript 到 Go 的重写。
用法:
// Transforms XML to Go struct
mpd , _ := ParseMpd ( "http://sdk.streamrail.com/pepsi/cdn/0.0.1/601486e52319059b8790c13f7477d2036d042768/dash/manifest.mpd" )
// Print parsed mpd
PrintMPD ( mpd , 0 )
mpdProcessor := NewMpdProcessor ()
// Construct manifest from Mpd struct
mpdProcessor . Process ( mpd )
// Inspect mpdProcessor.ManifestInfo
上面的
2021-09-28 11:48:58
37KB
Go
1