Phương thức này có một trường hợp sử dụng phổ biến, theo mô tả dưới đây. Các nút bên dưới phần mô tả sẽ điền các giá trị mẫu vào APIs Explorer hoặc mở APIs Explorer toàn màn hình để hiển thị mã mẫu sử dụng các giá trị đó. Các mã mẫu cũng tự động cập nhật nếu bạn thay đổi các giá trị.

This example updates a caption track. When updating a track, you must set the snippet.videoId, snippet.language, and snippet.name property values to the values set for an existing caption track.

You can change the snippet.isDraft property to make the track public or private.

You can also modify the track itself by uploading a new file.