The TimelineMarker JavaScript global object. Remove or edit timeline markers.
This interface is used to access the functionalities of the Timeline Markers such as create/remove/edit markers.
- Note
- The colour for a timeline marker can be defined either by an integer representing an RGBA value at 8 bit per channel, or a color keyword name as defined by the World Wide Web Consortium.
function addMarkerAtFrame(
int frame){
var mLength = 0;
var mColor = "red";
var marker = {
frame:1, length:mLength, color:mColor};
TimelineMarker.createMarker(marker);
}