Lớp GCKMediaInformation
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Một lớp tổng hợp thông tin về một mục nội dung nghe nhìn.
Kế thừa NSObject. Triển khai <NSCopying>.
- (instancetype) initWithContentID: |
|
(NSString *) |
contentID |
streamType: |
|
(GCKMediaStreamType) |
streamType |
contentType: |
|
(NSString *) |
contentType |
metadata: |
|
(GCKMediaMetadata *__nullable) |
metadata |
streamDuration: |
|
(NSTimeInterval) |
streamDuration |
mediaTracks: |
|
(NSArray< GCKMediaTrack * > *__nullable) |
mediaTracks |
textTrackStyle: |
|
(GCKMediaTextTrackStyle *__nullable) |
textTrackStyle |
customData: |
|
(id __nullable) |
customData |
|
|
| |
Trình khởi tạo được chỉ định.
- Parameters
-
contentID | The content ID. |
streamType | The stream type. |
contentType | The content (MIME) type. |
metadata | The media item metadata. |
streamDuration | The stream duration. |
mediaTracks | The media tracks, if any, otherwise nil . |
textTrackStyle | The text track style, if any, otherwise nil . |
customData | The custom application-specific data. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil . |
- (instancetype) initWithContentID: |
|
(NSString *) |
contentID |
streamType: |
|
(GCKMediaStreamType) |
streamType |
contentType: |
|
(NSString *) |
contentType |
metadata: |
|
(GCKMediaMetadata *__nullable) |
metadata |
streamDuration: |
|
(NSTimeInterval) |
streamDuration |
customData: |
|
(id __nullable) |
customData |
|
|
| |
Trình khởi tạo cũ; không bao gồm các bản âm thanh hoặc kiểu phụ đề.
- Parameters
-
contentID | The content ID. |
streamType | The stream type. |
contentType | The content (MIME) type. |
metadata | The media item metadata. |
streamDuration | The stream duration. |
customData | Custom application-specific data. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil . |
- Deprecated:
- Sử dụng trình khởi tạo được chỉ định.
- (GCKMediaTrack *__nullable) mediaTrackWithID: |
|
(NSInteger) |
trackID |
|
Tìm kiếm một bản phụ đề bằng mã bản phụ đề đã cho.
- Parameters
-
trackID | The media track ID. |
- Giá trị trả về
- Đối tượng GCKMediaTrack khớp hoặc
nil
nếu không có bản nhạc đa phương tiện nào có mã nhận dạng đã cho.
Mã nội dung của luồng này.
- (NSString*) contentType |
|
readnonatomiccopy |
Siêu dữ liệu của mục nội dung nghe nhìn.
Danh sách các điểm chèn quảng cáo trong nội dung này.
Danh sách các đoạn quảng cáo trong nội dung này.
- Năm thành lập
- 3.3
- (NSTimeInterval) streamDuration |
|
readnonatomicassign |
Thời lượng của luồng phát (tính bằng giây) hoặc INFINITY
nếu đó là luồng phát trực tiếp.
Các bản phụ đề cho luồng này.
Kiểu phụ đề cho luồng này.
Dữ liệu tuỳ chỉnh (nếu có).
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[],["The GCKMediaInformation class aggregates data about a media item, including its content ID, stream type, and content type. Key actions include initializing with content details like `contentID`, `streamType`, `contentType`, `metadata`, `streamDuration`, `mediaTracks`, `textTrackStyle`, and `customData`. It also supports legacy initialization, excluding media/text tracks. The class facilitates searching for media tracks by ID, and provides properties for ad breaks, ad break clips, stream duration, and custom data.\n"],null,[]]