public class WebVtt extends Object
| Constructor and Description |
|---|
WebVtt() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCue(VttCue vttCue)
Adds a cue
|
void |
addRegion(VttRegion vttRegion)
Adds a region
|
String |
create()
Creates the WebVTT document
|
String |
getDescription()
Gets the description shown beside WEBVTT
Note: A " - " is prefixed to the description and all \n's are replaced with " " |
String |
getNote()
Gets the document note
|
void |
removeCue(int index)
Removes a cue based on its index
|
void |
removeCue(VttCue vttCue)
Removes a cue
|
void |
removeRegion(int index)
Removes a region based on the given index
|
void |
removeRegion(VttRegion vttRegion)
Removes a region
|
WebVtt |
setDescription(String description)
Gets the description shown beside WEBVTT
Note: A " - " is prefixed to the description and all \n's are replaced with " " |
WebVtt |
setNote(String note)
Sets the document note
|
public String getDescription()
public WebVtt setDescription(String description)
description - the description to be shownpublic String getNote()
public WebVtt setNote(String note)
note - the note to be shown in the documentpublic void addCue(VttCue vttCue)
VttCue - the cue to be addedpublic void removeCue(VttCue vttCue)
vttCue - the cue to be removedpublic void removeCue(int index)
index - the index of the cue to be removedpublic void addRegion(VttRegion vttRegion)
vttRegion - the region to be addedpublic void removeRegion(VttRegion vttRegion)
vttRegion - the region to be removedpublic void removeRegion(int index)
index - the index of the region to be removedpublic String create()
Copyright © 2015. All rights reserved.