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 |
---|
Captions() |
Modifier and Type | Method and Description |
---|---|
YouTube.Captions.Delete |
delete(String id)
Deletes a resource.
|
YouTube.Captions.Download |
download(String id)
Downloads a caption track.
|
YouTube.Captions.Insert |
insert(List<String> part,
Caption content)
Inserts a new resource into this collection.
|
YouTube.Captions.Insert |
insert(List<String> part,
Caption content,
AbstractInputStreamContent mediaContent)
Inserts a new resource into this collection.
|
YouTube.Captions.List |
list(List<String> part,
String videoId)
Retrieves a list of resources, possibly filtered.
|
YouTube.Captions.Update |
update(List<String> part,
Caption content)
Updates an existing resource.
|
YouTube.Captions.Update |
update(List<String> part,
Caption content,
AbstractInputStreamContent mediaContent)
Updates an existing resource.
|
public YouTube.Captions.Delete delete(String id) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.id
- IOException
public YouTube.Captions.Download download(String id) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.id
- The ID of the caption track to download, required for One Platform.IOException
public YouTube.Captions.Insert insert(List<String> part, Caption content) throws 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
IOException
public YouTube.Captions.Insert insert(List<String> part, Caption content, AbstractInputStreamContent mediaContent) throws 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.IOException
- if the initialization of the request failspublic YouTube.Captions.List list(List<String> part, String videoId) throws 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
- Returns the captions for the specified video.IOException
public YouTube.Captions.Update update(List<String> part, Caption content) throws 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.content
- the Caption
IOException
public YouTube.Captions.Update update(List<String> part, Caption content, AbstractInputStreamContent mediaContent) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
This method should be used for uploading media content.
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.content
- the Caption
media metadata or null
if nonemediaContent
- The media HTTP content or null
if none.IOException
- if the initialization of the request failsCopyright © 2011–2020 Google. All rights reserved.