Package video.api.client.api.models
Class LiveStream
- java.lang.Object
-
- video.api.client.api.models.LiveStream
-
- All Implemented Interfaces:
Serializable,DeepObject
public class LiveStream extends Object implements Serializable, DeepObject
LiveStream- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_ASSETSstatic StringSERIALIZED_NAME_BROADCASTINGstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_LIVE_STREAM_IDstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_PLAYER_IDstatic StringSERIALIZED_NAME_PUBLICstatic StringSERIALIZED_NAME_RESTREAMSstatic StringSERIALIZED_NAME_STREAM_KEYstatic StringSERIALIZED_NAME_UPDATED_AT
-
Constructor Summary
Constructors Constructor Description LiveStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LiveStream_public(Boolean _public)LiveStreamaddRestreamsItem(RestreamsResponseObject restreamsItem)LiveStreamassets(LiveStreamAssets assets)LiveStreambroadcasting(Boolean broadcasting)LiveStreamcreatedAt(OffsetDateTime createdAt)booleanequals(Object o)LiveStreamAssetsgetAssets()Get assetsBooleangetBroadcasting()Whether or not you are broadcasting the live video you recorded for others to see.OffsetDateTimegetCreatedAt()When the player was created, presented in ATOM UTC format.StringgetLiveStreamId()The unique identifier for the live stream.StringgetName()The name of your live stream.StringgetPlayerId()The unique identifier for the player.BooleangetPublic()Whether your video can be viewed by everyone, or requires authentication to see it.List<RestreamsResponseObject>getRestreams()Returns the list of restream destinations.StringgetStreamKey()The unique, private stream key that you use to begin streaming.OffsetDateTimegetUpdatedAt()When the player was last updated, presented in ATOM UTC format.inthashCode()LiveStreamliveStreamId(String liveStreamId)LiveStreamname(String name)LiveStreamplayerId(String playerId)LiveStreamrestreams(List<RestreamsResponseObject> restreams)voidsetAssets(LiveStreamAssets assets)voidsetBroadcasting(Boolean broadcasting)voidsetCreatedAt(OffsetDateTime createdAt)voidsetLiveStreamId(String liveStreamId)voidsetName(String name)voidsetPlayerId(String playerId)voidsetPublic(Boolean _public)voidsetRestreams(List<RestreamsResponseObject> restreams)voidsetStreamKey(String streamKey)voidsetUpdatedAt(OffsetDateTime updatedAt)LiveStreamstreamKey(String streamKey)StringtoString()LiveStreamupdatedAt(OffsetDateTime updatedAt)
-
-
-
Field Detail
-
SERIALIZED_NAME_LIVE_STREAM_ID
public static final String SERIALIZED_NAME_LIVE_STREAM_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STREAM_KEY
public static final String SERIALIZED_NAME_STREAM_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PUBLIC
public static final String SERIALIZED_NAME_PUBLIC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ASSETS
public static final String SERIALIZED_NAME_ASSETS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PLAYER_ID
public static final String SERIALIZED_NAME_PLAYER_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BROADCASTING
public static final String SERIALIZED_NAME_BROADCASTING
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESTREAMS
public static final String SERIALIZED_NAME_RESTREAMS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
- See Also:
- Constant Field Values
-
-
Method Detail
-
liveStreamId
public LiveStream liveStreamId(String liveStreamId)
-
getLiveStreamId
public String getLiveStreamId()
The unique identifier for the live stream. Live stream IDs begin with \"li.\"- Returns:
- liveStreamId
-
setLiveStreamId
public void setLiveStreamId(String liveStreamId)
-
name
public LiveStream name(String name)
-
getName
@Nullable public String getName()
The name of your live stream.- Returns:
- name
-
setName
public void setName(String name)
-
streamKey
public LiveStream streamKey(String streamKey)
-
getStreamKey
@Nullable public String getStreamKey()
The unique, private stream key that you use to begin streaming.- Returns:
- streamKey
-
setStreamKey
public void setStreamKey(String streamKey)
-
_public
public LiveStream _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/delivery/video-privacy-access-management).- Returns:
- _public
-
setPublic
public void setPublic(Boolean _public)
-
assets
public LiveStream assets(LiveStreamAssets assets)
-
getAssets
@Nullable public LiveStreamAssets getAssets()
Get assets- Returns:
- assets
-
setAssets
public void setAssets(LiveStreamAssets assets)
-
playerId
public LiveStream playerId(String playerId)
-
getPlayerId
@Nullable public String getPlayerId()
The unique identifier for the player.- Returns:
- playerId
-
setPlayerId
public void setPlayerId(String playerId)
-
broadcasting
public LiveStream broadcasting(Boolean broadcasting)
-
getBroadcasting
@Nullable public Boolean getBroadcasting()
Whether or not you are broadcasting the live video you recorded for others to see. True means you are broadcasting to viewers, false means you are not.- Returns:
- broadcasting
-
setBroadcasting
public void setBroadcasting(Boolean broadcasting)
-
restreams
public LiveStream restreams(List<RestreamsResponseObject> restreams)
-
addRestreamsItem
public LiveStream addRestreamsItem(RestreamsResponseObject restreamsItem)
-
getRestreams
public List<RestreamsResponseObject> getRestreams()
Returns the list of restream destinations.- Returns:
- restreams
-
setRestreams
public void setRestreams(List<RestreamsResponseObject> restreams)
-
createdAt
public LiveStream createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
When the player was created, presented in ATOM UTC format.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
updatedAt
public LiveStream updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nullable public OffsetDateTime getUpdatedAt()
When the player was last updated, presented in ATOM UTC format.- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
-