Chứa các thuộc tính siêu dữ liệu được tính thời gian theo giao thức HLS (Phát trực tuyến dựa trên HTTP) có trong thuộc tính #EXT-X- Health.
https://tools.ietf.org/html/draft-pantos-hls-rfc8216bis-06#section-4.4.5.1
Hàm dựng
HlsTimedMetadata
mới
HlsTimedMetadata()
Thuộc tính
clientAttributes
(Đối tượng không rỗng hoặc không xác định)
Tiền tố "X-" xác định một không gian tên dành riêng cho các thuộc tính do ứng dụng xác định. Thuộc tính ứng dụng khách PHẢI là tên thuộc tính hợp pháp. Clients NÊN sử dụng cú pháp DNS ngược khi xác định tên thuộc tính của riêng họ để tránh xung đột. Giá trị thuộc tính PHẢI là một chuỗi, một chuỗi thập lục phân, hoặc một dấu thập phân-floating-point. Ví dụ về thuộc tính do khách hàng xác định là X-COM-EXAMPLE-AD-ID="XYZ123". Các thuộc tính này là KHÔNG BẮT BUỘC.
duration
(số hoặc không xác định)
Thời lượng của Phạm vi ngày được biểu thị bằng số giây dấu phẩy động thập phân. Giá trị này KHÔNG ĐƯỢC là số âm. A single instant in time (e.g., Dữ liệu của người hoàn tất về việc kết thúc) Bắt đầu đại diện với thời lượng của 0. Thuộc tính này là KHÔNG BẮT BUỘC.
endDate
(chuỗi hoặc không xác định)
Một chuỗi chứa ngày theo ISO-8601 mà tại đó Phạm vi ngày kết thúc. Giá trị này PHẢI bằng hoặc sau giá trị của thuộc tính START-DATE.
Thuộc tính này là KHÔNG BẮT BUỘC.
endOnNext
(Boolean hoặc không xác định)
Một giá trị boolean cho biết điểm kết thúc của dải ô chứa dải ô đó bằng với ngày bắt đầu của dải ô theo dõi. Phạm vi sau là Phạm vi ngày của cùng một CLASS có ngày START-DATE sớm nhất sau ngày START-DATE của phạm vi được đề cập. Thuộc tính này là KHÔNG BẮT BUỘC và mặc định là false.
plannedDuration
(số hoặc không xác định)
Thời lượng dự kiến của Phạm vi ngày được biểu thị bằng số giây dấu phẩy động thập phân. Giá trị này KHÔNG ĐƯỢC là số âm. Thuộc tính này should be use to continue the vẽ duration of a Date Range which real duration is not not rõ. Thuộc tính này là KHÔNG BẮT BUỘC.
rangeClass
(chuỗi hoặc không xác định)
Một chuỗi do ứng dụng xác định, chỉ định một số tập hợp thuộc tính và ngữ nghĩa giá trị được liên kết với các thuộc tính đó. Tất cả Phạm vi ngày có cùng giá trị thuộc tính CLASS PHẢI tuân thủ những ngữ nghĩa này. Thuộc tính này là KHÔNG BẮT BUỘC.
scte35
(chuỗi hoặc không xác định)
Mang dữ liệu SCTE-35 splice_info_section(). Thuộc tính này là KHÔNG BẮT BUỘC.
scte35in
(chuỗi hoặc không xác định)
Dùng mối nối dữ liệu SCTE-35 trong dữ liệu. Thuộc tính này là KHÔNG BẮT BUỘC.
scte35Out
(chuỗi hoặc không xác định)
Dùng dữ liệu SCTE-35 để ghép nối dữ liệu. Thuộc tính này là KHÔNG BẮT BUỘC.
startDate
(chuỗi hoặc không xác định)
Một chuỗi ký tự chứa ngày theo ISO-8601 mà tại đó Phạm vi ngày bắt đầu.
Thuộc tính này là REQUIRED.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003ecast.framework.HlsTimedMetadata\u003c/code\u003e handles HLS timed metadata, specifically properties within the \u003ccode\u003e#EXT-X-DATERANGE\u003c/code\u003e tag, as defined in the HLS RFC.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003estartDate\u003c/code\u003e, \u003ccode\u003eendDate\u003c/code\u003e, \u003ccode\u003eduration\u003c/code\u003e, and various SCTE-35 related attributes for managing date ranges and content signaling.\u003c/p\u003e\n"],["\u003cp\u003eClient-defined attributes, prefixed with "X-", allow for custom metadata to be included within the timed metadata.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003erangeClass\u003c/code\u003e property enables grouping of date ranges with shared semantics for specific functionalities.\u003c/p\u003e\n"]]],["The `HlsTimedMetadata` class manages HLS timed metadata properties from the `#EXT-X-DATERANGE` tag. Key properties include `startDate` (required ISO-8601 start date), `endDate` (optional ISO-8601 end date), `duration` (optional duration in seconds), and `plannedDuration` (optional expected duration). `rangeClass` allows for custom attribute sets. Additional attributes cover client-defined data (`clientAttributes`) and SCTE-35 information (`scte35Cmd`, `scte35In`, `scte35Out`). The `endOnNext` property indicates if the range ends at the start of the next one.\n"],null,["# Class: HlsTimedMetadata\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).HlsTimedMetadata\n===================================================================================\n\nclass static\n\nContains HLS-specific timed metadata properties found in the #EXT-X-DATERANGE\nproperty.\nhttps://tools.ietf.org/html/draft-pantos-hls-rfc8216bis-06#section-4.4.5.1\n\nConstructor\n-----------\n\n### HlsTimedMetadata\n\nnew\nHlsTimedMetadata()\n\nProperties\n----------\n\n### clientAttributes\n\n(non-null Object or undefined)\n\nThe \"X-\" prefix defines a namespace reserved for client-defined\nattributes. The client-attribute MUST be a legal AttributeName. Clients\nSHOULD use a reverse-DNS syntax when defining their own attribute names\nto avoid collisions. The attribute value MUST be a string, a\nhexadecimal-sequence, or a decimal-floating-point. An example of a\nclient-defined attribute is X-COM-EXAMPLE-AD-ID=\"XYZ123\". These\nattributes are OPTIONAL.\n\n### duration\n\n(number or undefined)\n\nThe duration of the Date Range expressed as a decimal-floating-point\nnumber of seconds. It MUST NOT be negative. A single instant in time\n(e.g., crossing a finish line) SHOULD be represented with a duration of\n0. This attribute is OPTIONAL.\n\n### endDate\n\n(string or undefined)\n\nA string containing the ISO-8601 date at which the Date Range ends. It\nMUST be equal to or later than the value of the START-DATE attribute.\nThis attribute is OPTIONAL.\n\n### endOnNext\n\n(boolean or undefined)\n\nA boolean indicating the end of the range containing it is equal to the\nSTART-DATE of its Following Range. The Following Range is the Date Range\nof the same CLASS that has the earliest START-DATE after the START-DATE\nof the range in question. This attribute is OPTIONAL and defaults to\nfalse.\n\n### plannedDuration\n\n(number or undefined)\n\nThe expected duration of the Date Range expressed as a\ndecimal-floating-point number of seconds. It MUST NOT be negative. This\nattribute SHOULD be used to indicate the expected duration of a Date\nRange whose actual duration is not yet known. This attribute is OPTIONAL.\n\n### rangeClass\n\n(string or undefined)\n\nA client-defined string that specifies some set of attributes and their\nassociated value semantics. All Date Ranges with the same CLASS\nattribute value MUST adhere to these semantics. This attribute is\nOPTIONAL.\n\n### scte35Cmd\n\n(string or undefined)\n\nCarries SCTE-35 splice_info_section() data. This attribute is OPTIONAL.\n\n### scte35In\n\n(string or undefined)\n\nCarries SCTE-35 data splice in data. This attribute is OPTIONAL.\n\n### scte35Out\n\n(string or undefined)\n\nCarries SCTE-35 data splice out data. This attribute is OPTIONAL.\n\n### startDate\n\n(string or undefined)\n\nA string containing the ISO-8601 date at which the Date Range begins.\nThis attribute is REQUIRED."]]