public class YouTube.Captions
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
YouTube.Captions.Delete |
class |
YouTube.Captions.Download |
class |
YouTube.Captions.Insert |
class |
YouTube.Captions.List |
class |
YouTube.Captions.Update |
Constructor and Description |
---|
YouTube.Captions() |
Modifier and Type | Method and Description |
---|---|
YouTube.Captions.Delete |
delete(java.lang.String id)
Deletes a specified caption track.
|
YouTube.Captions.Download |
download(java.lang.String id)
Downloads a caption track.
|
YouTube.Captions.Insert |
insert(java.lang.String part,
Caption content)
Uploads a caption track.
|
YouTube.Captions.Insert |
insert(java.lang.String part,
Caption content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Uploads a caption track.
|
YouTube.Captions.List |
list(java.lang.String part,
java.lang.String videoId)
Returns a list of caption tracks that are associated with a specified video.
|
YouTube.Captions.Update |
update(java.lang.String part,
Caption content)
Updates a caption track.
|
YouTube.Captions.Update |
update(java.lang.String part,
Caption content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Updates a caption track.
|
public YouTube.Captions.Delete delete(java.lang.String id) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.id
- The id parameter identifies the caption track that is being deleted. The value is a caption track ID
as identified by the id property in a caption resource.java.io.IOException
public YouTube.Captions.Download download(java.lang.String id) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.id
- The id parameter identifies the caption track that is being retrieved. The value is a caption track
ID as identified by the id property in a caption resource.java.io.IOException
public YouTube.Captions.Insert insert(java.lang.String part, Caption content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.part
- The part parameter specifies the caption resource parts that the API response will include. Set the
parameter value to snippet.content
- the Caption
java.io.IOException
public YouTube.Captions.Insert insert(java.lang.String part, Caption content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
This method should be used for uploading media content.
part
- The part parameter specifies the caption resource parts that the API response will include. Set the
parameter value to snippet.content
- the Caption
media metadata or null
if nonemediaContent
- The media HTTP content or null
if none.java.io.IOException
- if the initialization of the request failspublic YouTube.Captions.List list(java.lang.String part, java.lang.String videoId) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.part
- The part parameter specifies a comma-separated list of one or more caption resource parts that the
API response will include. The part names that you can include in the parameter value are
id and snippet.videoId
- The videoId parameter specifies the YouTube video ID of the video for which the API should return
caption tracks.java.io.IOException
public YouTube.Captions.Update update(java.lang.String part, Caption content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.part
- The part parameter serves two purposes in this operation. It identifies the properties that the
write operation will set as well as the properties that the API response will include. Set
the property value to snippet if you are updating the track's draft status. Otherwise, set
the property value to id.content
- the Caption
java.io.IOException
public YouTube.Captions.Update update(java.lang.String part, Caption content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
This method should be used for uploading media content.
part
- The part parameter serves two purposes in this operation. It identifies the properties that the
write operation will set as well as the properties that the API response will include. Set
the property value to snippet if you are updating the track's draft status. Otherwise, set
the property value to id.content
- the Caption
media metadata or null
if nonemediaContent
- The media HTTP content or null
if none.java.io.IOException
- if the initialization of the request fails