একটি cast.framework.events.EventType.EMSG ইভেন্টের জন্য ইভেন্ট ডেটা।
কনস্ট্রাক্টর
EmsgEvent
নতুন EmsgEvent(emsgData)
প্যারামিটার
emsgData
অবজেক্ট
মান শূন্য হতে হবে না.
বৈশিষ্ট্য
শেষ সময়
ধ্রুবক
(সংখ্যা বা অনির্ধারিত)
ইভেন্ট শেষ হওয়ার সময় (প্রেজেন্টেশনের সময়)।
অনুষ্ঠানের সময়কাল
ধ্রুবক
(সংখ্যা বা অনির্ধারিত)
ইভেন্টের সময়কাল (টাইমস্কেলের এককে)।
আইডি
ধ্রুবক
(সংখ্যা বা অনির্ধারিত)
বার্তার এই দৃষ্টান্ত সনাক্তকারী একটি ক্ষেত্র৷
বার্তা ডেটা
ধ্রুবক
(নন-নাল Uint8 Array বা অনির্ধারিত)
বার্তার মূল অংশ, এতে ID3 মেটাডেটা থাকতে পারে যদি schemeIdUri মান দ্বারা সংকেত করা হয়। schemeIdUri "https://aomedia.org/emsg/ID3" এবং "https://developer.apple.com/streaming/emsg-id3" সবসময় ID3 মেটাডেটা সংকেত দেয়।
উপস্থাপনা সময় ডেল্টা
ধ্রুবক
(সংখ্যা বা অনির্ধারিত)
যে অফসেটটি ইভেন্টটি শুরু হয়, সেই অংশের শুরুর সাপেক্ষে (টাইমস্কেলের এককে)।
স্কিম আইডিউরি
ধ্রুবক
(স্ট্রিং বা অনির্ধারিত)
বার্তা স্কিম সনাক্ত করে।
সেগমেন্ট ডেটা
ধ্রুবক
(নন-নাল Uint8 Array বা অনির্ধারিত)
সম্পূর্ণ, কাঁচা সেগমেন্ট ডেটা EMSG জুড়ে। এই ক্ষেত্রটি অবচয়ের জন্য নির্ধারিত হয়েছে৷ এই ক্ষেত্রের পরিবর্তে প্রদত্ত EMSG ইভেন্ট ডেটা ক্ষেত্রগুলি ব্যবহার করার পরামর্শ দেওয়া হয়৷
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eEmsgEvent provides data for events of type \u003ccode\u003ecast.framework.events.EventType.EMSG\u003c/code\u003e, including timing, duration, and message content.\u003c/p\u003e\n"],["\u003cp\u003eThe event data includes details like \u003ccode\u003estartTime\u003c/code\u003e, \u003ccode\u003eendTime\u003c/code\u003e, \u003ccode\u003eeventDuration\u003c/code\u003e, \u003ccode\u003etimescale\u003c/code\u003e, and \u003ccode\u003epresentationTimeDelta\u003c/code\u003e for precise timing information.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003emessageData\u003c/code\u003e contains the main message body, potentially including ID3 metadata based on \u003ccode\u003eschemeIdUri\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eschemeIdUri\u003c/code\u003e identifies the message scheme, while \u003ccode\u003evalue\u003c/code\u003e offers an additional event value.\u003c/p\u003e\n"],["\u003cp\u003eAlthough \u003ccode\u003esegmentData\u003c/code\u003e holds the entire raw segment data, it's recommended to utilize other provided fields due to its planned deprecation.\u003c/p\u003e\n"]]],["The `EmsgEvent` class provides data for an EMSG event, detailing its properties. Key information includes `startTime` and `endTime` for event timing, `eventDuration`, and `presentationTimeDelta` for timing within the segment. `messageData` contains the message body, potentially with ID3 metadata, identified by `schemeIdUri`. `id` identifies the message instance, `timescale` defines the time unit, and `value` specifies the event's value. `segmentData` is present but being deprecated, with individual data fields preferred.\n"],null,["# Class: EmsgEvent\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[events](/cast/docs/reference/web_receiver/cast.framework.events).EmsgEvent\n==============================================================================================================================================\n\nclass static\n\nEvent data for a `cast.framework.events.EventType.EMSG` event.\n\nConstructor\n-----------\n\n### EmsgEvent\n\nnew\nEmsgEvent(emsgData)\n\n| #### Parameter ||\n|----------|--------------------------------|\n| emsgData | Object Value must not be null. |\n\nProperties\n----------\n\n### endTime\n\nconstant\n\n(number or undefined)\n\nThe time that the event ends (in presentation time).\n\n### eventDuration\n\nconstant\n\n(number or undefined)\n\nThe duration of the event (in units of timescale).\n\n### id\n\nconstant\n\n(number or undefined)\n\nA field identifying this instance of the message.\n\n### messageData\n\nconstant\n\n(non-null Uint8Array or undefined)\n\nThe body of the message, which can contain ID3 metadata if signaled by\nthe `schemeIdUri` value. The `schemeIdUri` \"https://aomedia.org/emsg/ID3\"\nand \"https://developer.apple.com/streaming/emsg-id3\" always signals\nID3 metadata.\n\n### presentationTimeDelta\n\nconstant\n\n(number or undefined)\n\nThe offset that the event starts, relative to the start of the\ncontaining segment (in units of timescale).\n\n### schemeIdUri\n\nconstant\n\n(string or undefined)\n\nIdentifies the message scheme.\n\n### segmentData\n\nconstant\n\n(non-null Uint8Array or undefined)\n\nThe entire, raw segment data encompassing the EMSG. This field is\nscheduled for deprecation. It is recommended to use the provided\nEMSG event data fields instead of this field.\n\n### startTime\n\nconstant\n\n(number or undefined)\n\nThe time that the event starts (in presentation time).\n\n### timescale\n\nconstant\n\n(number or undefined)\n\nDefines the timescale, in ticks per second.\n\n### value\n\nconstant\n\n(string or undefined)\n\nSpecifies the value for the event."]]