|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.brightcove.proserve.mediaapi.wrapper.apiobjects.CuePoint
public class CuePoint
Represents a Cue Point object to/from the Media API.
From the Brightcove documentation on 2009/08/18 (http://support.brightcove.com/en/docs/media-api-objects-reference):
The CuePoint object is a marker set at a precise time point in the duration of a video. You can use cue points to trigger mid-roll ads or to separate chapters or scenes in a long-form video. For more information, see Adding Cue Points to Videos and Setting CuePoints with the Media API.
property name | type | read only? | description |
---|---|---|---|
name | String | yes | Required. A name for the cue point, so that you can refer to it. |
videoId | String | yes | A comma-separated list of the ids of one or more videos that this cue point applies to. |
time | Long | yes | Required. The time of the cue point, measured in milliseconds from the beginning of the video. |
forceStop | Boolean | no | If true, the video stops playback at the cue point. This setting is valid only for AD type cue points. |
type | Enum | yes | Required. An integer code corresponding to the type of cue point. One of 0 (AD), 1 (CODE), or 2 (CHAPTER). An AD cue point is used to trigger mid-roll ad requests. A CHAPTER cue point indicates a chapter or scene break in the video. A CODE cue point causes an event that you can listen for and respond to. |
metadata | String | no | A string that can be passed along with a CODE cue point. |
Constructor Summary | |
---|---|
CuePoint()
Default Constructor. |
|
CuePoint(java.lang.String json)
Constructor using JSON string. |
Method Summary | |
---|---|
java.lang.Boolean |
getForceStop()
Gets the forceStop attribute of the Cue Point. |
java.lang.Long |
getId()
Gets the id of the Cue Point. |
java.lang.String |
getMetadata()
Gets the meta data on the Cue Point. |
java.lang.String |
getName()
Gets the name of the Cue Point. |
java.lang.Long |
getTime()
Gets the time of the Cue Point. |
CuePointTypeEnum |
getType()
Gets the type of the Cue Point. |
java.lang.String |
getVideoId()
Gets the unique id of the Cue Point. |
void |
InitAll()
Initializes all variables to null |
void |
setForceStop(java.lang.Boolean forceStop)
Sets the forceStop attribute of the Cue Point. |
void |
setId(java.lang.Long id)
Sets the id of the Cue Point. |
void |
setMetadata(java.lang.String metadata)
Sets the meta data on the Cue Point. |
void |
setName(java.lang.String name)
Sets the name of the Cue Point. |
void |
setTime(java.lang.Long time)
Sets the time of the Cue Point. |
void |
setType(CuePointTypeEnum type)
Sets the type of the Cue Point. |
void |
setVideoId(java.lang.String videoId)
Sets the unique id of the Cue Point. |
JSONObject |
toJson()
Converts the cue point into a JSON object suitable for use with the Media API |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CuePoint()
Default Constructor.
All fields set to null to start - required fields must be set before calling Write Media API.
public CuePoint(java.lang.String json) throws JSONException
Constructor using JSON string.
Given a JSON string from the Media API, attempts to construct a new Cue Point object and fill out all of the fields defined. All other fields will be null.
JSONException
Method Detail |
---|
public void InitAll()
Initializes all variables to null
public java.lang.String getName()
Gets the name of the Cue Point.
Required. A name for the cue point, so that you can refer to it.
public void setName(java.lang.String name)
Sets the name of the Cue Point.
Required. A name for the cue point, so that you can refer to it.
name
- Name of the Cue Pointpublic java.lang.Long getId()
Gets the id of the Cue Point.
public void setId(java.lang.Long id)
Sets the id of the Cue Point.
id
- Id of the Cue Pointpublic java.lang.String getVideoId()
Gets the unique id of the Cue Point.
A comma-separated list of the ids of one or more videos that this cue point applies to.
public void setVideoId(java.lang.String videoId)
Sets the unique id of the Cue Point.
A comma-separated list of the ids of one or more videos that this cue point applies to.
videoId
- Comma-separated String of the ids of the Cue Pointpublic java.lang.Long getTime()
Gets the time of the Cue Point.
Required. The time of the cue point, measured in milliseconds from the beginning of the video.
public void setTime(java.lang.Long time)
Sets the time of the Cue Point.
Required. The time of the cue point, measured in milliseconds from the beginning of the video.
time
- Time (in milliseconds from the beginning of the video) of the Cue Pointpublic java.lang.Boolean getForceStop()
Gets the forceStop attribute of the Cue Point.
If true, the video stops playback at the cue point. This setting is valid only for AD type cue points.
public void setForceStop(java.lang.Boolean forceStop)
Sets the forceStop attribute of the Cue Point.
If true, the video stops playback at the cue point. This setting is valid only for AD type cue points.
forceStop
- forceStop attribute of the Cue Pointpublic CuePointTypeEnum getType()
Gets the type of the Cue Point.
Required. An integer code corresponding to the type of cue point. One of 0 (AD), 1 (CODE), or 2 (CHAPTER). An AD cue point is used to trigger mid-roll ad requests. A CHAPTER cue point indicates a chapter or scene break in the video. A CODE cue point causes an event that you can listen for and respond to.
public void setType(CuePointTypeEnum type)
Sets the type of the Cue Point.
Required. An integer code corresponding to the type of cue point. One of 0 (AD), 1 (CODE), or 2 (CHAPTER). An AD cue point is used to trigger mid-roll ad requests. A CHAPTER cue point indicates a chapter or scene break in the video. A CODE cue point causes an event that you can listen for and respond to.
type
- Type of the Cue Pointpublic java.lang.String getMetadata()
Gets the meta data on the Cue Point.
A string that can be passed along with a CODE cue point.
public void setMetadata(java.lang.String metadata)
Sets the meta data on the Cue Point.
A string that can be passed along with a CODE cue point.
metadata
- Meta data on the Cue Pointpublic JSONObject toJson() throws JSONException
Converts the cue point into a JSON object suitable for use with the Media API
JSONException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |