CRI Sofdec2
Last Updated: 2022-11-21 16:25 p
|
Cuepoints are used to embed timing information (event points) in a movie.
When the time specified by an event point is reached during movie playback, a callback function is called.
A cuepoint information file is a text file that defines these event points.
(a) | On the first line, write the time unit (integer value). | |
(b) | From the second line onward, write the time, value, event point name, and string separated by commas. Each new cuepoint must be on its own line. | |
(c) | The first parameter is the time, and specifies when the event should be issued. The time is divided by the time unit to determine the number of seconds. | |
(d) | The second parameter is the value of the cuepoint, and can be used in your application as needed. | |
(e) | The third parameter is the event point name, and represents the name of the event point. | |
(f) | The fourth parameter is the string of the cuepoint, and can be used in your application as needed. The library does not parse this parameter. Use it as needed in your application. | |
(g) | Lines that begin with a semicolon (;) are treated as comments. | |
(h) | The following character encodings are supported: ASCII, Shift-JIS, UTF-8, and UTF-16 with BOM (UTF-16LE). |
[Example 1]
In this example, the time unit is 1000.
Events will be triggered at 0, 5, 7, 8, 15, and 25 seconds.
The third and fourth event strings are separated by commas, but this must be parsed by the application.