Package video.api.client.api.models
Class LiveStreamCreationPayload
- java.lang.Object
-
- video.api.client.api.models.LiveStreamCreationPayload
-
- All Implemented Interfaces:
Serializable
public class LiveStreamCreationPayload extends Object implements Serializable
LiveStreamCreationPayload- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_PLAYER_IDstatic StringSERIALIZED_NAME_PUBLICstatic StringSERIALIZED_NAME_RECORDstatic StringSERIALIZED_NAME_RESTREAMS
-
Constructor Summary
Constructors Constructor Description LiveStreamCreationPayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LiveStreamCreationPayload_public(Boolean _public)LiveStreamCreationPayloadaddRestreamsItem(RestreamsRequestObject restreamsItem)booleanequals(Object o)StringgetName()Add a name for your live stream here.StringgetPlayerId()The unique identifier for the player.BooleangetPublic()Whether your video can be viewed by everyone, or requires authentication to see it.BooleangetRecord()Whether you are recording or not.List<RestreamsRequestObject>getRestreams()Use this parameter to add, edit, or remove RTMP services where you want to restream a live stream.inthashCode()LiveStreamCreationPayloadname(String name)LiveStreamCreationPayloadplayerId(String playerId)LiveStreamCreationPayloadrecord(Boolean record)LiveStreamCreationPayloadrestreams(List<RestreamsRequestObject> restreams)voidsetName(String name)voidsetPlayerId(String playerId)voidsetPublic(Boolean _public)voidsetRecord(Boolean record)voidsetRestreams(List<RestreamsRequestObject> restreams)StringtoString()
-
-
-
Field Detail
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RECORD
public static final String SERIALIZED_NAME_RECORD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PUBLIC
public static final String SERIALIZED_NAME_PUBLIC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PLAYER_ID
public static final String SERIALIZED_NAME_PLAYER_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESTREAMS
public static final String SERIALIZED_NAME_RESTREAMS
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public LiveStreamCreationPayload name(String name)
-
getName
public String getName()
Add a name for your live stream here.- Returns:
- name
-
setName
public void setName(String name)
-
record
public LiveStreamCreationPayload record(Boolean record)
-
getRecord
@Nullable public Boolean getRecord()
Whether you are recording or not. True for record, false for not record.- Returns:
- record
-
setRecord
public void setRecord(Boolean record)
-
_public
public LiveStreamCreationPayload _public(Boolean _public)
-
getPublic
@Nullable public Boolean getPublic()
Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/docs/private-videos).- Returns:
- _public
-
setPublic
public void setPublic(Boolean _public)
-
playerId
public LiveStreamCreationPayload playerId(String playerId)
-
getPlayerId
@Nullable public String getPlayerId()
The unique identifier for the player.- Returns:
- playerId
-
setPlayerId
public void setPlayerId(String playerId)
-
restreams
public LiveStreamCreationPayload restreams(List<RestreamsRequestObject> restreams)
-
addRestreamsItem
public LiveStreamCreationPayload addRestreamsItem(RestreamsRequestObject restreamsItem)
-
getRestreams
@Nullable public List<RestreamsRequestObject> getRestreams()
Use this parameter to add, edit, or remove RTMP services where you want to restream a live stream. The list can only contain up to 5 destinations.- Returns:
- restreams
-
setRestreams
public void setRestreams(List<RestreamsRequestObject> restreams)
-
-