YouTube কীভাবে Short-এর জন্য ভিউ গণনা করে তা মেলাতে আমরা Data API আপডেট করছি।
আরও জানুন
Watermarks
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি watermark
রিসোর্স একটি ইমেজ সনাক্ত করে যা একটি নির্দিষ্ট চ্যানেলের ভিডিও প্লেব্যাকের সময় প্রদর্শিত হয়। আপনি একটি টার্গেট চ্যানেলও নির্দিষ্ট করতে পারেন যার সাথে ইমেজটি লিঙ্ক করবে সেইসাথে সময়ের বিবরণ যা ভিডিও প্লেব্যাকের সময় ওয়াটারমার্কটি কখন প্রদর্শিত হবে এবং এটি দৃশ্যমান হওয়ার সময় নির্ধারণ করে।
পদ্ধতি
API watermarks
সংস্থানগুলির জন্য নিম্নলিখিত পদ্ধতিগুলিকে সমর্থন করে:
- set
- ইউটিউবে একটি ওয়াটারমার্ক ইমেজ আপলোড করে এবং একটি চ্যানেলের জন্য সেট করে।
- unset
- একটি চ্যানেলের ওয়াটারমার্ক ইমেজ মুছে দেয়। এখনই চেষ্টা করে দেখুন ।
বৈশিষ্ট্য
নিম্নলিখিত সারণী এই সম্পদে প্রদর্শিত বৈশিষ্ট্যগুলিকে সংজ্ঞায়িত করে:
বৈশিষ্ট্য |
---|
timing | object timing অবজেক্টটি ভিডিও প্লেব্যাকের সময় সম্পর্কে তথ্য এনক্যাপসুলেট করে যখন একটি চ্যানেলের ওয়াটারমার্ক ইমেজ প্রদর্শিত হবে। |
timing. type | string ভিডিও প্লেব্যাকের সময় ওয়াটারমার্ক ইমেজ কখন প্রদর্শিত হবে তা নির্ধারণ করে এমন সময় পদ্ধতি। যদি মানটি offsetFromStart হয়, তাহলে offsetMs ক্ষেত্রটি ভিডিওর শুরু থেকে একটি অফসেট উপস্থাপন করে। যদি মানটি offsetFromEnd হয়, তাহলে offsetMs ক্ষেত্রটি ভিডিওর শেষ থেকে একটি অফসেট উপস্থাপন করে। |
timing. offsetMs | unsigned long মিলিসেকেন্ডে নির্দিষ্ট করা সময় অফসেট, যা ভিডিও প্লেব্যাকের সময় প্রচারিত আইটেমটি কখন উপস্থিত হবে তা নির্ধারণ করে। type প্রপার্টির মান নির্ধারণ করে যে অফসেট ভিডিওর শুরু বা শেষ থেকে পরিমাপ করা হয়েছে। |
timing. durationMs | unsigned long সময়ের দৈর্ঘ্য, মিলিসেকেন্ডে, যে ওয়াটারমার্ক চিত্রটি প্রদর্শন করা উচিত৷ |
position | object position বস্তুটি ভিডিওর মধ্যে স্থানিক অবস্থান সম্পর্কে তথ্য ধারণ করে যেখানে ওয়াটারমার্ক চিত্রটি প্রদর্শিত হবে। |
position. type | string ভিডিও প্লেয়ারে প্রচারিত আইটেমটি যেভাবে অবস্থান করা হয়েছে।
এই সম্পত্তির জন্য বৈধ মান হল: |
position. cornerPosition | string প্লেয়ারের কোণ যেখানে প্রচারিত আইটেম প্রদর্শিত হবে। আইটেমটি সর্বদা প্লেয়ারের উপরের ডানদিকে প্রদর্শিত হয়।
এই সম্পত্তির জন্য বৈধ মান হল: |
imageUrl | string চ্যানেলের ওয়াটারমার্ক ছবির URL। YouTube এই URL তৈরি করবে এবং একটি watermark.set অনুরোধের API প্রতিক্রিয়াতে এটি ফিরিয়ে দেবে। |
imageBytes | bytes ওয়াটারমার্ক ছবির আকার, বাইটে। |
targetChannelId | string ওয়াটারমার্ক ছবিটি যে চ্যানেলের সাথে লিঙ্ক করে তার YouTube চ্যানেল আইডি। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-21 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-21 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eA watermark resource displays an image during a channel's video playbacks, with the option to link to a target channel.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides \u003ccode\u003eset\u003c/code\u003e and \u003ccode\u003eunset\u003c/code\u003e methods to upload and delete watermark images respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etiming\u003c/code\u003e object controls when a watermark appears, using \u003ccode\u003etype\u003c/code\u003e to determine if it's measured from the start or end of a video and \u003ccode\u003eoffsetMs\u003c/code\u003e for the time offset, with \u003ccode\u003edurationMs\u003c/code\u003e defining its display length.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eposition\u003c/code\u003e object defines the watermark's location within the video, with \u003ccode\u003ecornerPosition\u003c/code\u003e specifically determining the corner.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etargetChannelId\u003c/code\u003e property is used to indicate the YouTube channel ID that the image links to when interacted with.\u003c/p\u003e\n"]]],["A watermark resource is an image displayed during a channel's video playbacks. Key actions include setting a watermark by uploading an image and specifying its `targetChannelId` for linking. The `timing` object defines when the image appears using `type`, `offsetMs`, and `durationMs`. The `position` object, set to 'corner', determines the spatial location, specifically `topRight`. Watermarks can be removed using the `unset` method. The API response provides an `imageUrl` and `imageBytes`.\n"],null,["# Watermarks\n\nA **watermark** resource identifies an image that displays during playbacks of a specified channel's videos. You can also specify a target channel to which the image will link as well as timing details that determine when the watermark appears during video playbacks and the length of time it is visible.\n\nMethods\n-------\n\nThe API supports the following methods for `watermarks` resources:\n\n[set](/youtube/v3/docs/watermarks/set)\n: Uploads a watermark image to YouTube and sets it for a channel.\n\n[unset](/youtube/v3/docs/watermarks/unset)\n: Deletes a channel's watermark image.\n [Try it now](/youtube/v3/docs/watermarks/unset#try-it).\n\nResource representation\n-----------------------\n\nThe JSON structure below shows the format of a `watermarks` resource: \n\n```carbon\n{\n \"#timing\": {\n \"#timing.type\": string,\n \"#timing.offsetMs\": unsigned long,\n \"#timing.durationMs\": unsigned long\n },\n \"#position\": {\n \"#position.type\": string,\n \"#position.cornerPosition\": string\n },\n \"#imageUrl\": string,\n \"#imageBytes\": bytes,\n \"#targetChannelId\": string\n}\n```\n\n### Properties\n\nThe following table defines the properties that appear in this resource:\n\n| Properties ||\n|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `timing` | `object` The `timing` object encapsulates information about the time during a video playback when a channel's watermark image will display. |\n| timing.`type` | `string` The timing method that determines when the watermark image is displayed during the video playback. If the value is `offsetFromStart`, then the `offsetMs` field represents an offset from the start of the video. If the value is `offsetFromEnd`, then the `offsetMs` field represents an offset from the end of the video. |\n| timing.`offsetMs` | `unsigned long` The time offset, specified in milliseconds, that determines when the promoted item appears during video playbacks. The `type` property's value determines whether the offset is measured from the start or end of the video. |\n| timing.`durationMs` | `unsigned long` The length of time, in milliseconds, that the watermark image should display. |\n| `position` | `object` The `position` object encapsulates information about the spatial position within the video where the watermark image will display. |\n| position.`type` | `string` The manner in which the promoted item is positioned in the video player. Valid values for this property are: - corner |\n| position.`cornerPosition` | `string` The corner of the player where the promoted item will appear. The item always appears in the upper right corner of the player. Valid values for this property are: - `topRight` |\n| `imageUrl` | `string` The URL for the channel's watermark image. YouTube will generate this URL and return it in the API response to a `watermark.set` request. |\n| `imageBytes` | `bytes` The size of the watermark image, in bytes. |\n| `targetChannelId` | `string` The YouTube channel ID of the channel that the watermark image links to. |"]]