forked from fifarafa/epub
/
smil.go
38 lines (32 loc) · 812 Bytes
/
smil.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package epub
// SMIL or Synchronized Multimedia Integration Language, wrapper
type SMIL struct {
Body Body `xml:"body"`
}
// Body provides the SMIL body element
type Body struct {
TextRef string `xml:"textref,attr"`
Seq []Seq `xml:"seq"`
Par []Par `xml:"par"`
}
// Seq provides sequential SMIL elements
type Seq struct {
TextRef string `xml:"textref,attr"`
Par []Par `xml:"par"`
Seq []Seq `xml:"seq"`
}
// Par provides parallel SMIL elements
type Par struct {
Text Text `xml:"text"`
Audio Audio `xml:"audio"`
}
// Text provides the source text
type Text struct {
Src string `xml:"src,attr"`
}
// Audio provides the audio element details
type Audio struct {
Src string `xml:"src,attr"`
ClipBegin string `xml:"clipBegin,attr"`
ClipEnd string `xml:"clipEnd,attr"`
}