Closed Sorrow446 closed 2 years ago
@Sorrow446
The box size header of ilst
will be fixed by w.EndBox
in copy
.
In this code, addMeta
function will be called after w.EndBox
which called by copy
.
Therefore ©alb
will be appended as brother of ilst
box.
If you want to append it as child of ilst
, you should call addMeta
between mp4.Marshal
and w.EndBox
of ilst
box.
For example,
w.StartBox(infoA)
mp4.Marshal(w, a, ctx)
w.StartBox(infoB)
mp4.Marshal(w, b, ctx)
w.EndBox() // end of B
w.StartBox(infoC)
mp4.Marshal(w, c, ctx)
w.EndBox() // end of C
w.EndBox(...) // end of A
w.StartBox(infoD)
mp4.Marshal(w, d, ctx)
w.EndBox() // end of D
will generates following tree:
Working great now. I'm still getting used to your library. Thanks for the quick reply and your great library.
Hello. I'm trying to write a new ©alb atom inside ilst, but it writes it outside of it instead. Could you give me a working example?