YouTube Embedded Players and Player Parameters

ওভারভিউ

এই নথিটি ব্যাখ্যা করে যে কীভাবে আপনার অ্যাপ্লিকেশনে একটি YouTube প্লেয়ার এম্বেড করতে হয় এবং YouTube এম্বেড করা প্লেয়ারে উপলব্ধ প্যারামিটারগুলিকেও সংজ্ঞায়িত করে৷

IFrame URL-এ পরামিতি যুক্ত করে, আপনি আপনার অ্যাপ্লিকেশনে প্লেব্যাকের অভিজ্ঞতা কাস্টমাইজ করতে পারেন। উদাহরণস্বরূপ, আপনি স্বয়ংক্রিয়ভাবে autoplay প্যারামিটার ব্যবহার করে ভিডিও চালাতে পারেন বা loop প্যারামিটার ব্যবহার করে একটি ভিডিও বারবার প্লে করতে পারেন। আপনি IFrame Player API-এর মাধ্যমে প্লেয়ারকে নিয়ন্ত্রণ করতে সক্ষম করতে enablejsapi প্যারামিটার ব্যবহার করতে পারেন।

এই পৃষ্ঠাটি বর্তমানে যেকোনো YouTube এম্বেড করা প্লেয়ারে সমর্থিত সমস্ত প্যারামিটারকে সংজ্ঞায়িত করে। প্রতিটি পরামিতি সংজ্ঞা সংশ্লিষ্ট প্যারামিটার সমর্থন করে এমন খেলোয়াড়দের চিহ্নিত করে।

দ্রষ্টব্য: এমবেড করা প্লেয়ারদের অবশ্যই একটি ভিউপোর্ট থাকতে হবে যা কমপক্ষে 200px x 200px। প্লেয়ার যদি কন্ট্রোল প্রদর্শন করে, তাহলে ভিউপোর্টকে ন্যূনতম আকারের নিচে সঙ্কুচিত না করে নিয়ন্ত্রণগুলি সম্পূর্ণরূপে প্রদর্শনের জন্য যথেষ্ট বড় হতে হবে। আমরা 16:9 প্লেয়ারদের কমপক্ষে 480 পিক্সেল চওড়া এবং 270 পিক্সেল লম্বা হওয়ার পরামর্শ দিই।

একটি YouTube প্লেয়ার এম্বেড করুন

আপনি আপনার অ্যাপ্লিকেশনে একটি YouTube প্লেয়ার এম্বেড করতে এবং প্লেয়ারের পরামিতিগুলি নির্দিষ্ট করতে নিম্নলিখিত পদ্ধতিগুলির যেকোনও ব্যবহার করতে পারেন৷ নোট করুন যে নীচের নির্দেশাবলী প্রদর্শন করে যে কীভাবে একটি প্লেয়ারকে এম্বেড করতে হয় যা একটি একক ভিডিও লোড করে। নিম্নলিখিত বিভাগটি ব্যাখ্যা করে যে কীভাবে আপনার প্লেয়ারকে একটি প্লেলিস্ট বা ব্যবহারকারীর আপলোড করা ভিডিও লোড করতে কনফিগার করতে হয়।

একটি <iframe> ট্যাগ ব্যবহার করে একটি প্লেয়ার এম্বেড করুন

আপনার অ্যাপ্লিকেশানে একটি <iframe> ট্যাগ সংজ্ঞায়িত করুন যেখানে src URL সেই বিষয়বস্তু নির্দিষ্ট করে যা প্লেয়ারটি লোড করবে সেইসাথে আপনি যে প্লেয়ার প্যারামিটার সেট করতে চান। <iframe> ট্যাগের height এবং width প্যারামিটার প্লেয়ারের মাত্রা নির্দিষ্ট করে।

আপনি যদি নিজেই <iframe> উপাদানটি তৈরি করেন (এটি তৈরি করতে IFrame Player API ব্যবহার না করে), আপনি প্লেয়ার প্যারামিটার সরাসরি URL এর শেষে যুক্ত করতে পারেন। URL এর নিম্নলিখিত বিন্যাস রয়েছে:

https://www.youtube.com/embed/VIDEO_ID

নিচের <iframe> ট্যাগটি একটি 640x360px প্লেয়ার লোড করবে যা YouTube ভিডিও M7lc1UVf-VE চালাবে। যেহেতু URL autoplay প্যারামিটারটিকে 1 এ সেট করে, তাই প্লেয়ার লোড হয়ে গেলে ভিডিওটি স্বয়ংক্রিয়ভাবে প্লে হবে।

<iframe id="ytplayer" type="text/html" width="640" height="360"
  src="https://www.youtube.com/embed/M7lc1UVf-VE?autoplay=1&origin=http://example.com"
  frameborder="0"></iframe>

IFrame Player API ব্যবহার করে একটি প্লেয়ার এম্বেড করুন

প্লেয়ার API এর জাভাস্ক্রিপ্ট কোড লোড হওয়ার পরে আপনার ওয়েব পৃষ্ঠা বা অ্যাপ্লিকেশনে একটি ভিডিও প্লেয়ার সন্নিবেশ করতে IFrame Player API নির্দেশাবলী অনুসরণ করুন৷ ভিডিও প্লেয়ারের কনস্ট্রাক্টরের দ্বিতীয় প্যারামিটারটি এমন একটি বস্তু যা প্লেয়ারের বিকল্পগুলি নির্দিষ্ট করে। সেই বস্তুর মধ্যে, playerVars সম্পত্তি প্লেয়ার পরামিতি সনাক্ত করে।

নীচের এইচটিএমএল এবং জাভাস্ক্রিপ্ট কোডটি একটি সাধারণ উদাহরণ দেখায় যা একটি YouTube প্লেয়ারকে পৃষ্ঠা উপাদানে সন্নিবেশ করায় যার একটি id মান ytplayer । IFrame Player API কোড লোড হয়ে গেলে এখানে উল্লেখিত onYouTubePlayerAPIReady() ফাংশন স্বয়ংক্রিয়ভাবে কল করা হয়। এই কোড কোনো প্লেয়ার প্যারামিটার সংজ্ঞায়িত করে না এবং অন্যান্য ইভেন্ট হ্যান্ডলারকেও সংজ্ঞায়িত করে না।

<div id="ytplayer"></div>

<script>
  // Load the IFrame Player API code asynchronously.
  var tag = document.createElement('script');
  tag.src = "https://www.youtube.com/player_api";
  var firstScriptTag = document.getElementsByTagName('script')[0];
  firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

  // Replace the 'ytplayer' element with an <iframe> and
  // YouTube player after the API code downloads.
  var player;
  function onYouTubePlayerAPIReady() {
    player = new YT.Player('ytplayer', {
      height: '360',
      width: '640',
      videoId: 'M7lc1UVf-VE'
    });
  }
</script>

খেলার জন্য সামগ্রী নির্বাচন করুন

আপনি একটি ভিডিও, একটি প্লেলিস্ট বা ব্যবহারকারীর আপলোড করা ভিডিও লোড করতে আপনার এমবেড করা প্লেয়ার কনফিগার করতে পারেন৷

নিম্নলিখিত তালিকা এই বিকল্পগুলি ব্যাখ্যা করে:

  • একটি ভিডিও লোড হচ্ছে৷

    একটি IFrame এম্বেডের জন্য, আপনি যে ভিডিওটি লোড করতে চান তার YouTube ভিডিও আইডিটি IFrame-এর src URL-এ নির্দিষ্ট করা আছে৷

    https://www.youtube.com/embed/VIDEO_ID

    আপনি যদি YouTube ডেটা API (v3) ব্যবহার করেন, তাহলে আপনি অনুসন্ধান ফলাফল , প্লেলিস্ট আইটেম সংস্থান , ভিডিও সংস্থান বা অন্যান্য সংস্থানগুলি থেকে ভিডিও আইডি পুনরুদ্ধার করে প্রোগ্রামেটিকভাবে এই URLগুলি তৈরি করতে পারেন৷ একটি ভিডিও আইডি পাওয়ার পরে, প্লেয়ার URL তৈরি করতে উপরের URLগুলির VIDEO_ID পাঠ্যটিকে সেই মান দিয়ে প্রতিস্থাপন করুন৷

  • একটি প্লেলিস্ট লোড হচ্ছে৷

    playlist listType প্লেয়ার প্যারামিটার সেট করুন। এছাড়াও, আপনি যে YouTube প্লেলিস্ট আইডি লোড করতে চান তাতে list প্লেয়ার প্যারামিটার সেট করুন।

    https://www.youtube.com/embed?listType=playlist&list=PLAYLIST_ID

    মনে রাখবেন যে আপনাকে প্লেলিস্ট আইডিকে PL অক্ষর দিয়ে প্রিপেন্ড করতে হবে যেমনটি নিম্নলিখিত উদাহরণে দেখানো হয়েছে:

    https://www.youtube.com/embed?listType=playlist&list=PLC77007E23FF423C6

    আপনি যদি YouTube ডেটা API (v3) ব্যবহার করেন, তাহলে আপনি অনুসন্ধান ফলাফল , চ্যানেল সংস্থান বা কার্যকলাপ সংস্থানগুলি থেকে প্লেলিস্ট আইডি পুনরুদ্ধার করে এই URLগুলি প্রোগ্রাম্যাটিকভাবে তৈরি করতে পারেন৷ একটি প্লেলিস্ট আইডি পাওয়ার পরে, উপরের URL-এ PLAYLIST_ID পাঠ্যটিকে সেই মান দিয়ে প্রতিস্থাপন করুন৷

  • ব্যবহারকারীর আপলোড করা ভিডিও লোড করা হচ্ছে

    user_uploadslistType প্লেয়ার প্যারামিটার সেট করুন। এছাড়াও, YouTube ব্যবহারকারীর নামের list প্লেয়ার প্যারামিটার সেট করুন যার আপলোড করা ভিডিও আপনি লোড করতে চান।

    https://www.youtube.com/embed?listType=user_uploads&list=USERNAME

সমর্থিত পরামিতি

নিম্নলিখিত পরামিতি সব ঐচ্ছিক.

পরামিতি

autoplay

প্লেয়ার লোড হলে প্রাথমিক ভিডিও স্বয়ংক্রিয়ভাবে চলতে শুরু করবে কিনা এই প্যারামিটারটি নির্দিষ্ট করে। সমর্থিত মান হল 0 বা 1 । ডিফল্ট মান হল 0

আপনি যদি অটোপ্লে সক্ষম করেন, প্লেব্যাক প্লেয়ারের সাথে কোনো ব্যবহারকারীর মিথস্ক্রিয়া ছাড়াই ঘটবে; প্লেব্যাক ডেটা সংগ্রহ এবং ভাগ করে নেওয়া তাই পৃষ্ঠা লোড হওয়ার পরে ঘটবে৷

cc_lang_pref

এই প্যারামিটারটি ডিফল্ট ভাষা নির্দিষ্ট করে যা প্লেয়ার ক্যাপশন প্রদর্শন করতে ব্যবহার করবে। একটি ISO 639-1 দুই-অক্ষরের ভাষা কোডে প্যারামিটারের মান সেট করুন।

আপনি যদি এই প্যারামিটারটি ব্যবহার করেন এবং cc_load_policy প্যারামিটারটি 1 এ সেট করেন, তাহলে প্লেয়ার লোড হওয়ার সময় প্লেয়ারটি নির্দিষ্ট ভাষায় ক্যাপশন দেখাবে। আপনি যদি cc_load_policy প্যারামিটারও সেট না করেন, তাহলে ক্যাপশনগুলি ডিফল্টরূপে প্রদর্শিত হবে না, তবে ব্যবহারকারী ক্যাপশন চালু করতে চাইলে নির্দিষ্ট ভাষায় প্রদর্শিত হবে।

cc_load_policy

প্যারামিটারের মান 1 তে সেট করার ফলে ক্লোজড ক্যাপশনগুলি ডিফল্টরূপে দেখানো হবে, এমনকি ব্যবহারকারী ক্যাপশন বন্ধ করে দিলেও। ডিফল্ট আচরণ ব্যবহারকারী পছন্দ উপর ভিত্তি করে.

color

এই পরামিতিটি দর্শক ইতিমধ্যেই দেখেছে এমন ভিডিওর পরিমাণ হাইলাইট করতে প্লেয়ারের ভিডিও প্রগ্রেস বারে যে রঙটি ব্যবহার করা হবে তা নির্দিষ্ট করে৷ বৈধ প্যারামিটার মান হল red এবং white , এবং, ডিফল্টরূপে, প্লেয়ার ভিডিও প্রগ্রেস বারে লাল রঙ ব্যবহার করে। রঙের বিকল্পগুলি সম্পর্কে আরও তথ্যের জন্য YouTube API ব্লগটি দেখুন।

controls

এই প্যারামিটারটি নির্দেশ করে যে ভিডিও প্লেয়ার নিয়ন্ত্রণগুলি প্রদর্শিত হচ্ছে কিনা:

  • controls=0 - প্লেয়ার নিয়ন্ত্রণ প্লেয়ারে প্রদর্শিত হয় না।
  • controls=1 (ডিফল্ট) - প্লেয়ারে প্লেয়ার নিয়ন্ত্রণ প্রদর্শন।

disablekb

প্যারামিটারের মান 1 এ সেট করার ফলে প্লেয়ার কীবোর্ড নিয়ন্ত্রণে সাড়া দেয় না। ডিফল্ট মান হল 0 , যার মানে হল কীবোর্ড নিয়ন্ত্রণগুলি সক্ষম৷ বর্তমানে সমর্থিত কীবোর্ড নিয়ন্ত্রণগুলি হল:

  • স্পেসবার বা [কে]: প্লে/পজ
  • বাঁদিকের তীর: বর্তমান ভিডিওতে 5 সেকেন্ড পিছনে যান
  • ডানদিকে তীর: বর্তমান ভিডিওতে 5 সেকেন্ড এগিয়ে যান
  • তীর উপরে: ভলিউম আপ
  • তীর নিচে: ভলিউম কম
  • [f]: পূর্ণ-স্ক্রীন প্রদর্শন টগল করুন
  • [j]: বর্তমান ভিডিওতে 10 সেকেন্ড পিছনে যান
  • [l]: বর্তমান ভিডিওতে 10 সেকেন্ড এগিয়ে যান
  • [মি]: ভিডিওটি মিউট বা আনমিউট করুন
  • [০-৯]: ভিডিওতে একটি বিন্দুতে যান। ভিডিওর শুরুতে 0 লাফ দেয়, 1 ভিডিওতে 10% পয়েন্টে, 2 ভিডিওতে 20% পয়েন্টে লাফ দেয় এবং আরও অনেক কিছু।

enablejsapi

প্যারামিটারের মান 1 এ সেট করা প্লেয়ারটিকে IFrame Player API কলের মাধ্যমে নিয়ন্ত্রণ করতে সক্ষম করে। ডিফল্ট মান হল 0 , যার মানে হল যে সেই API ব্যবহার করে প্লেয়ারকে নিয়ন্ত্রণ করা যাবে না।

IFrame API এবং এটি কীভাবে ব্যবহার করবেন সে সম্পর্কে আরও তথ্যের জন্য, IFrame API ডকুমেন্টেশন দেখুন।

end

এই প্যারামিটারটি ভিডিওর শুরু থেকে সেকেন্ডে পরিমাপ করা সময় নির্দিষ্ট করে, যখন প্লেয়ার ভিডিও চালানো বন্ধ করবে। পরামিতি মান একটি ধনাত্মক পূর্ণসংখ্যা।

মনে রাখবেন যে সময়টি ভিডিওর শুরু থেকে পরিমাপ করা হয় এবং start প্লেয়ার প্যারামিটার বা startSeconds প্যারামিটারের মান থেকে নয়, যা একটি ভিডিও লোড বা সারিবদ্ধ করার জন্য YouTube প্লেয়ার API ফাংশনে ব্যবহৃত হয়।

fs

এই প্যারামিটারটি 0 তে সেট করা হলে পূর্ণস্ক্রীন বোতামটিকে প্লেয়ারে প্রদর্শিত হতে বাধা দেয়। ডিফল্ট মান হল 1 , যার ফলে পূর্ণস্ক্রীন বোতামটি প্রদর্শিত হয়৷

hl

প্লেয়ারের ইন্টারফেসের ভাষা সেট করে। প্যারামিটার মান হল একটি ISO 639-1 দুই-অক্ষরের ভাষা কোড বা একটি সম্পূর্ণ নির্দিষ্ট লোকেল। উদাহরণস্বরূপ, fr এবং fr-ca উভয়ই বৈধ মান। অন্যান্য ভাষার ইনপুট কোড, যেমন IETF ভাষা ট্যাগ (BCP 47) সঠিকভাবে পরিচালনা করা যেতে পারে।

ইন্টারফেস ভাষাটি প্লেয়ারে টুলটিপের জন্য ব্যবহৃত হয় এবং এটি ডিফল্ট ক্যাপশন ট্র্যাককেও প্রভাবিত করে। মনে রাখবেন যে ব্যবহারকারীর স্বতন্ত্র ভাষা পছন্দ এবং ক্যাপশন ট্র্যাকগুলির উপলব্ধতার উপর ভিত্তি করে YouTube একটি নির্দিষ্ট ব্যবহারকারীর জন্য একটি ভিন্ন ক্যাপশন ট্র্যাক ভাষা নির্বাচন করতে পারে৷

iv_load_policy

প্যারামিটারের মান 1 তে সেট করার ফলে ভিডিও টীকাগুলি ডিফল্টরূপে দেখানো হয়, যেখানে 3 তে সেট করার ফলে ভিডিও টীকাগুলি ডিফল্টরূপে দেখানো হয় না৷ ডিফল্ট মান হল 1

list

list প্যারামিটার, listType প্যারামিটারের সাথে একত্রে, প্লেয়ারে লোড করা বিষয়বস্তু চিহ্নিত করে।

  • যদি listType প্যারামিটারের মান user_uploads হয়, তাহলে list প্যারামিটার মানটি YouTube চ্যানেলটিকে চিহ্নিত করে যার আপলোড করা ভিডিওগুলি লোড করা হবে৷
  • যদি listType প্যারামিটার মান playlist হয়, তাহলে list প্যারামিটার মান একটি YouTube প্লেলিস্ট আইডি নির্দিষ্ট করে। প্যারামিটার মানের মধ্যে, নীচের উদাহরণে দেখানো হিসাবে আপনাকে PL অক্ষর দিয়ে প্লেলিস্ট আইডির আগে প্রিপেন্ড করতে হবে।
    https://www.youtube.com/embed?
        listType=playlist
        &list=PLC77007E23FF423C6
  • যদি listType পরামিতি মান search হয়, তাহলে list প্যারামিটার মান অনুসন্ধান ক্যোয়ারী নির্দিষ্ট করে। দ্রষ্টব্য: এই কার্যকারিতা বাতিল করা হয়েছে এবং 15 নভেম্বর 2020 থেকে আর সমর্থিত হবে না।
দ্রষ্টব্য: আপনি যদি list এবং listType প্যারামিটারের জন্য মান নির্দিষ্ট করেন, তাহলে IFrame এম্বেড URL-এর একটি ভিডিও আইডি নির্দিষ্ট করার প্রয়োজন নেই৷

listType

listType প্যারামিটার, list প্যারামিটারের সাথে একত্রে, প্লেয়ারে লোড হওয়া বিষয়বস্তু চিহ্নিত করে। বৈধ প্যারামিটার মান হল playlist এবং user_uploads

আপনি যদি list এবং listType পরামিতিগুলির জন্য মান নির্দিষ্ট করেন, তাহলে IFrame এম্বেড URL-এর একটি ভিডিও আইডি নির্দিষ্ট করার প্রয়োজন নেই৷

দ্রষ্টব্য: একটি তৃতীয় প্যারামিটার মান, search , বাতিল করা হয়েছে এবং 15 নভেম্বর 2020 থেকে আর সমর্থিত হবে না।

loop

একটি একক ভিডিও প্লেয়ারের ক্ষেত্রে, 1 এর একটি সেটিং প্লেয়ারকে প্রাথমিক ভিডিও বারবার প্লে করতে দেয়। একটি প্লেলিস্ট প্লেয়ারের ক্ষেত্রে (বা কাস্টম প্লেয়ার), প্লেয়ার পুরো প্লেলিস্টটি প্লে করে এবং তারপর প্রথম ভিডিওতে আবার শুরু করে।

সমর্থিত মান হল 0 এবং 1 , এবং ডিফল্ট মান হল 0

দ্রষ্টব্য: IFrame এম্বেডগুলিতে এই পরামিতিটির সীমিত সমর্থন রয়েছে৷ একটি একক ভিডিও লুপ করতে, loop প্যারামিটার মান 1 এ সেট করুন এবং playlist প্যারামিটার মানটিকে প্লেয়ার API URL-এ ইতিমধ্যেই নির্দিষ্ট করা একই ভিডিও আইডিতে সেট করুন:
https://www.youtube.com/embed/VIDEO_ID?playlist=VIDEO_ID&loop=1

modestbranding

দ্রষ্টব্য: এই প্যারামিটারটি অবহেলিত এবং এর কোন প্রভাব নেই। আরও তথ্যের জন্য অবচয় ঘোষণা দেখুন।

origin

এই প্যারামিটারটি IFrame API-এর জন্য একটি অতিরিক্ত নিরাপত্তা পরিমাপ প্রদান করে এবং শুধুমাত্র IFrame এম্বেডের জন্য সমর্থিত। আপনি যদি IFrame API ব্যবহার করেন, যার মানে আপনি enablejsapi প্যারামিটার মান 1 তে সেট করছেন, আপনার সর্বদা আপনার ডোমেনটিকে origin প্যারামিটার মান হিসাবে নির্দিষ্ট করা উচিত।

playlist

এই প্যারামিটারটি প্লে করার জন্য ভিডিও আইডিগুলির একটি কমা দ্বারা পৃথক করা তালিকা নির্দিষ্ট করে৷ আপনি যদি একটি মান নির্দিষ্ট করেন, তাহলে প্রথম যে ভিডিওটি প্লে হবে সেটি হবে URL পাথে নির্দিষ্ট করা VIDEO_ID , এবং playlist প্যারামিটারে নির্দিষ্ট করা ভিডিওগুলি তার পরে প্লে হবে৷

playsinline

এই প্যারামিটারটি নিয়ন্ত্রণ করে যে ভিডিওগুলি iOS-এ ইনলাইন বা পূর্ণস্ক্রীনে চলবে। বৈধ মান হল:

  • 0 : ফুলস্ক্রিন প্লেব্যাকের ফলাফল। এটি বর্তমানে ডিফল্ট মান, যদিও ডিফল্ট পরিবর্তন সাপেক্ষে।
  • 1 : মোবাইল ব্রাউজারগুলির জন্য ইনলাইন প্লেব্যাকের ফলাফল এবং YES সেট করা allowsInlineMediaPlayback প্রপার্টি দিয়ে তৈরি WebViews জন্য।

rel

দ্রষ্টব্য: এই প্যারামিটারটি 25 সেপ্টেম্বর, 2018 তারিখে বা তার পরে পরিবর্তিত হচ্ছে।

পরিবর্তনের আগে, এই প্যারামিটারটি নির্দেশ করে যে প্লেয়ারের প্রাথমিক ভিডিওর প্লেব্যাক শেষ হলে সংশ্লিষ্ট ভিডিও দেখাতে হবে কিনা।
  • যদি প্যারামিটারের মান 1 তে সেট করা হয়, যা ডিফল্ট মান, তাহলে প্লেয়ারটি সম্পর্কিত ভিডিওগুলি দেখায়৷
  • যদি প্যারামিটারের মান 0 তে সেট করা হয়, তাহলে প্লেয়ারটি সম্পর্কিত ভিডিও দেখায় না।
পরিবর্তনের পরে, আপনি সম্পর্কিত ভিডিওগুলি অক্ষম করতে পারবেন না। পরিবর্তে, যদি rel প্যারামিটারটি 0 তে সেট করা হয়, তবে সম্পর্কিত ভিডিওগুলি একই চ্যানেল থেকে আসবে যে ভিডিওটি এইমাত্র প্লে করা হয়েছিল৷

start

এই প্যারামিটারটি প্লেয়ারকে ভিডিওর শুরু থেকে প্রদত্ত সেকেন্ডে ভিডিও চালানো শুরু করে। পরামিতি মান একটি ধনাত্মক পূর্ণসংখ্যা। লক্ষ্য করুন যে seekTo ফাংশনের অনুরূপ, প্লেয়ারটি আপনার নির্দিষ্ট করা সময়ের নিকটতম কীফ্রেমটি সন্ধান করবে। এর মানে হল যে কখনও কখনও প্লে হেড অনুরোধ করা সময়ের ঠিক আগে চেষ্টা করতে পারে, সাধারণত প্রায় দুই সেকেন্ডের বেশি নয়।

widget_referrer

এই প্যারামিটারটি ইউআরএল সনাক্ত করে যেখানে প্লেয়ার এমবেড করা আছে। এই মানটি ইউটিউব অ্যানালিটিক্স রিপোর্টিং-এ ব্যবহৃত হয় যখন YouTube প্লেয়ার একটি উইজেটে এম্বেড করা হয় এবং সেই উইজেটটি তারপর একটি ওয়েব পৃষ্ঠা বা অ্যাপ্লিকেশনে এম্বেড করা হয়। সেই পরিস্থিতিতে, origin প্যারামিটারটি উইজেট প্রদানকারীর ডোমেনকে শনাক্ত করে, কিন্তু ইউটিউব অ্যানালিটিক্স উইজেট প্রদানকারীকে প্রকৃত ট্রাফিক উৎস হিসেবে চিহ্নিত করা উচিত নয়। পরিবর্তে, ইউটিউব অ্যানালিটিক্স ট্রাফিক উৎসের সাথে যুক্ত ডোমেন সনাক্ত করতে widget_referrer প্যারামিটার মান ব্যবহার করে।

পরিবর্ধন ও পরিবর্তন তালিকা

August 15, 2023

Note: This is a deprecation announcement for the modestbranding parameter.

The modestbranding parameter is deprecated and will have no effect. To align with YouTube's branding requirements, the player now determines the appropriate branding treatment based on a combination of factors, including player size, other API parameters (e.g. controls ), and additional signals.

April 27, 2021

The playsinline parameter definition has been updated slightly to explain that the parameter pertains to both mobile browsers on iOS and iOS WebViews.

October 15, 2020

The autoplay parameter definition has been updated to explain that if you enable Autoplay, playback will occur without any user interaction with the player; playback data collection and sharing will therefore occur upon page load.

October 13, 2020

Note: This is a deprecation announcement for the embedded player functionality that lets you configure the player to load search results. This announcement affects the player's list and listType parameters.

This change will become effective on or after 15 November 2020 . After that time, setting the listType parameter value to search will generate a 4xx response code, such as 404 ( Not Found ) or 410 ( Gone ).

As an alternative, you can use the YouTube Data API's search.list method to retrieve search results and then load selected videos in the player.

In addition to the change described above, the showinfo parameter, which was deprecated in 2018, has been removed from this document.

August 23, 2018

Note: This is a deprecation announcement for the showinfo parameter. In addition, the behavior for the rel parameter is changing. Titles, channel information, and related videos are an important part of YouTube’s core user experience, and these changes help to make the YouTube viewing experience consistent across different platforms.

  • The behavior for the rel parameter is changing on or after September 25, 2018. The effect of the change is that you will not be able to disable related videos. However, you will have the option of specifying that the related videos shown in the player should be from the same channel as the video that was just played.

    To be more specific:
    • Prior to the change, if the parameter's value is set to 0 , then the player does not show related videos.
    • After the change, if the rel parameter is set to 0 , the player will show related videos that are from the same channel as the video that was just played.
  • The showinfo parameter, which indicates whether the player should display information like the video title and uploader before the video starts playing, is also being deprecated. Following the change, the channel avatar and video title will always display before playback begins, when playback is paused, and when playback ends. The avatar being displayed is new behavior that will be consistent across all embedded players.

These changes will become effective on or after September 25, 2018. After that time, the showinfo parameter will be ignored. The behavior following the changes is consistent with the current default behavior for embedded players with the exception of the channel avatar changes mentioned above.

August 16, 2018

The cc_lang_pref parameter can be used to specify the default language that the player will use to display captions. This parameter can be used in conjunction with the cc_load_policy parameter to automatically show captions in the specified language during playback.

September 15, 2017

The controls parameter's definition has been updated to remove references to the deprecated Flash (AS3) player. The value 2 has been deprecated as it was originally designed to provide a performance improvement for embeds that loaded a Flash player.

June 12, 2017

The new widget_referrer parameter helps to enable more accurate YouTube Analytics reporting when the YouTube player is embedded in a widget, and that widget is then embedded in a web page or application.

November 1, 2016

This document has been updated to remove references to the deprecated Flash (AS3) player as well as to parameters only supported by that player. The YouTube Flash player was deprecated in January 2015.

October 20, 2016

This update contains the following changes:

  • The disablekb parameter definition has been corrected to note that the default value is 0 , which means that keyboard controls are enabled. A value of 1 indicates that keyboard controls should be disabled.

    The list of keyboard controls that the player supports has also been updated to include the following:

    • [f]: Toggle full-screen display
    • [j]: Jump back 10 seconds in the current video
    • [k]: Play / Pause
    • [l]: Jump ahead 10 seconds in the current video
    • [m]: Mute or unmute the video
    • [0-9]: Jump to a point in the video. 0 jumps to the beginning of the video, 1 jumps to the time 10% into the video, 2 jumps to the point 20% into the video, and so forth.

    In addition, the effect of pressing the [arrow left] or [arrow right] keys has changed. These keys now jump 5 seconds back (arrow left) or ahead (arrow right) in the current video.

August 11, 2016

This update contains the following changes:

  • The newly published YouTube API Services Terms of Service ("the Updated Terms"), discussed in detail on the YouTube Engineering and Developers Blog , provides a rich set of updates to the current Terms of Service. In addition to the Updated Terms , which will go into effect as of February 10, 2017, this update includes several supporting documents to help explain the policies that developers must follow.

    The full set of new documents is described in the revision history for the Updated Terms . In addition, future changes to the Updated Terms or to those supporting documents will also be explained in that revision history. You can subscribe to an RSS feed listing changes in that revision history from a link in that document.

December 18, 2015

European Union (EU) laws require that certain disclosures must be given to and consents obtained from end users in the EU. Therefore, for end users in the European Union, you must comply with the EU User Consent Policy . We have added a notice of this requirement in our YouTube API Terms of Service .

August 19, 2015

  • The autohide parameter has been deprecated for the HTML5 player. In HTML5 players, the video progress bar and player controls display or hide automatically. That behavior corresponds to an autohide setting of 1 .

  • The theme parameter has been deprecated for the HTML5 player. HTML5 players now always use the dark theme.

March 9, 2015

  • The document has been updated to reflect the fact that YouTube <object> embeds, the YouTube Flash Player API and the YouTube JavaScript Player API have all been deprecated as of January 27, 2015. A deprecation warning appears in several sections of this document to help point readers to the IFrame Player API as an alternative.

  • The definition of the autohide parameter has been updated to clarify the meaning of the parameter's values. The default behavior ( autohide=2 ) is that if the player has a 16:9 or 4:3 aspect ratio, the player's video progress bar and player controls display or hide automatically. Otherwise, those controls are visible throughout the video.

  • The definition of the hl parameter has been updated to note that the parameter value could be an ISO 639-1 two-letter language code or a fully specified locale. For example, fr and fr-ca are both valid parameter values.

  • The definition of the enablejsapi parameter has been reworded to clarify that the parameter enables a player to be controlled via API calls. The API could be either the IFrame Player API or the JavaScript Player API .

October 14, 2014

July 18, 2014

  • The new hl parameter can be used to set the player's interface language. The interface language is used for tooltips in the player and also affects the default caption track. The selected caption track may also depend on the availability of caption tracks and user's individual language preferences.

    The parameter's value is an ISO 639-1 two-letter language code , though other language input codes, such as IETF language tags (BCP 47) may also be handled properly.

  • The definition of the playsinline parameter, which only affects HTML5 players on iOS, has been modified slightly. The definition now notes that setting the parameter value to 1 causes inline playback only for UIWebViews created with the allowsInlineMediaPlayback property set to TRUE .

January 28, 2014

  • The playsinline parameter controls whether videos play inline or fullscreen in an HTML5 player on iOS. Setting the value to 1 causes inline playback.

  • The Selecting content to play section has been updated to explain how to find YouTube video IDs and playlist IDs using the YouTube Data API (v3) rather than the older API version.

  • The controls parameter's definition has been updated to reflect the fact that the parameter value only affects the time that the Flash player actually loads in IFrame embeds. In addition, for IFrame embeds, the parameter value also determines when the controls display in the player. If you set the parameter's value to 2 , then the controls display and the Flash player loads after the user initiates the video playback.

May 10, 2013

This update contains the following changes:

July 20, 2012

This update contains the following changes:

  • The definition of the controls parameter has been updated to reflect support for a parameter value of 2 and to explain that, for AS3 players, the parameter value determines the time when the Flash player actually loads. If the controls parameter is set to 0 or 1 , the Flash player loads immediately. If the parameter value is 2 , the Flash player does not load until the video playback is initiated.

June 5, 2012

This update contains the following changes:

  • The HTML5 player now supports the color , modestbranding , and rel parameters, and the definitions for these parameters have been updated accordingly.

  • The definition of the showinfo parameter has been updated to explain how that if the player is loading a playlist, and you explicitly set the parameter value to 1 , then, upon loading, the player will also display thumbnail images for the videos in the playlist. Note that this functionality is only supported for the AS3 player since that is the only player that can load a playlist.

May 4, 2012

This update contains the following changes:

  • The showinfo parameter's definition has been updated to reflect the fact that the HTML5 player supports this parameter.

May 3, 2012

This update contains the following changes:

  • The new end parameter specifies the time, measured in seconds from the start of the video, when the player should stop playing a video. Note that the time when playback is stopped is measured from the beginning of the video and not from the value of either the start player parameter or the startSeconds parameter, which is used in YouTube Player API functions for loading or queueing a video.

March 29, 2012

This update contains the following changes:

  • The new Embedding a YouTube player section explains different ways to embed a YouTube player in your application. This section covers manual IFrame embeds, IFrame embeds that use the IFrame Player API, and AS3 and AS2 object embeds. This section incorporates information from the old Example usage section, which has been removed.

  • The new Selecting content to play section explains how to configure the player to load a video, a playlist, search results for a specified query, or uploaded videos for a specified user.

  • The new list and listType parameters let you specify the content that the player should load. You can specify a playlist, a search query, or a particular user's uploaded videos.

  • The definitions of the fs and rel parameters have been updated to more clearly explain the default parameter values for the AS3 player.

  • The border , color1 , egm , hd , and showsearch parameters, which are all only supported for the deprecated AS2 Player API, have been moved to a new section named deprecated parameters only used in the AS2 Player API .

  • The document no longer provides a way to filter the parameter list to only display parameters supported in either the AS3, AS2, or HTML5 player. Instead, each parameter definition has been updated to identify the players that support that parameter.

August 11, 2011

This update contains the following changes:

  • The new theme and color parameters let you customize the appearance of the embedded player's player controls. See the YouTube API blog for more information.

June 8, 2011

This update contains the following changes:

  • The new modestbranding parameter lets you use a YouTube player that does not show a YouTube logo. As of this release, the parameter was only supported for the AS3 embedded player and for IFrame embeds that loaded the AS3 player. As of June 5, 2012, the HTML5 player also supported this parameter.

February 14, 2011

This update contains the following changes:

  • The documentation has been updated to note that the AS2 Player API has been deprecated. The deprecation of the AS2 Player API was actually announced on October 14, 2009.

February 3, 2011

This update contains the following changes:

  • The documentation has been updated to identify parameters supported in the HTML5 ( IFrame ) embedded player.

  • The document now displays all of the parameters supported in any of YouTube's embedded players (HTML5, AS3, AS2).

  • The following parameters are supported in the AS2 player but have been deprecated for the newer AS3 and HTML5 players: border , color1 , color2 , egm , hd , and showsearch .

    In addition, the loop parameter has limited support in the AS3 player and in IFrame embeds, which could load either an AS3 or HTML player. Currently, the loop parameter only works in the AS3 player when used in conjunction with the playlist parameter. To loop a single video, set the loop parameter to 1 and set the playlist parameter value to the same video ID already specified in the Player API URL:

    https://www.youtube.com/v/VIDEO_ID?version=3&loop=1&playlist=VIDEO_ID

    Similarly, the controls and playlist parameters are supported in the AS3 and HTML5 players but are not and will not be supported in the AS2 player.

    As noted above, IFrame embeds can load either an AS3 or HTML5 player. Though some parameters are not supported in both players, an IFrame embed that loads the AS3 player will support all parameters that work with that player and ignore all other parameters. Similarly, an IFrame embed that loads the HTML5 player will support all parameters that work with that player while ignoring all other parameters.

  • The parameter list has been updated to include the autohide parameter, which indicates whether the player's video controls will automatically hide after a video begins playing.

  • The parameter list has been updated to include the controls parameter, which indicates whether the player's video controls will display at all. (Player controls do display by default.)

  • The parameter list has been updated to include the playlist parameter, which specifies a comma-separated list of video IDs to play.

  • The definition of the fs has been updated to note that the fullscreen option will not work if you load the YouTube player into another SWF.

  • The example at the end of the document has been updated to use the embedded AS3 player instead of the embedded AS2 player. The parameters used in the example have also been updated to only include parameters that the AS3 player supports.

    In addition, the instructions for constructing the URLs that contain player parameters have been updated to reflect the URL formats used by the AS3 and AS2 embedded and chromeless players as well as by the HTML5 player.

,

ওভারভিউ

এই নথিটি ব্যাখ্যা করে যে কীভাবে আপনার অ্যাপ্লিকেশনে একটি YouTube প্লেয়ার এম্বেড করতে হয় এবং YouTube এম্বেড করা প্লেয়ারে উপলব্ধ প্যারামিটারগুলিকেও সংজ্ঞায়িত করে৷

IFrame URL-এ পরামিতি যুক্ত করে, আপনি আপনার অ্যাপ্লিকেশনে প্লেব্যাকের অভিজ্ঞতা কাস্টমাইজ করতে পারেন। উদাহরণস্বরূপ, আপনি স্বয়ংক্রিয়ভাবে autoplay প্যারামিটার ব্যবহার করে ভিডিও চালাতে পারেন বা loop প্যারামিটার ব্যবহার করে একটি ভিডিও বারবার প্লে করতে পারেন। আপনি IFrame Player API-এর মাধ্যমে প্লেয়ারকে নিয়ন্ত্রণ করতে সক্ষম করতে enablejsapi প্যারামিটার ব্যবহার করতে পারেন।

এই পৃষ্ঠাটি বর্তমানে যেকোনো YouTube এম্বেড করা প্লেয়ারে সমর্থিত সমস্ত প্যারামিটারকে সংজ্ঞায়িত করে। প্রতিটি পরামিতি সংজ্ঞা সংশ্লিষ্ট প্যারামিটার সমর্থন করে এমন খেলোয়াড়দের চিহ্নিত করে।

দ্রষ্টব্য: এমবেড করা প্লেয়ারদের অবশ্যই একটি ভিউপোর্ট থাকতে হবে যা কমপক্ষে 200px x 200px। প্লেয়ার যদি কন্ট্রোল প্রদর্শন করে, তাহলে ভিউপোর্টকে ন্যূনতম আকারের নিচে সঙ্কুচিত না করে নিয়ন্ত্রণগুলি সম্পূর্ণরূপে প্রদর্শনের জন্য যথেষ্ট বড় হতে হবে। আমরা 16:9 প্লেয়ারদের কমপক্ষে 480 পিক্সেল চওড়া এবং 270 পিক্সেল লম্বা হওয়ার পরামর্শ দিই।

একটি YouTube প্লেয়ার এম্বেড করুন

আপনি আপনার অ্যাপ্লিকেশনে একটি YouTube প্লেয়ার এম্বেড করতে এবং প্লেয়ারের পরামিতিগুলি নির্দিষ্ট করতে নিম্নলিখিত পদ্ধতিগুলির যেকোনও ব্যবহার করতে পারেন৷ নোট করুন যে নীচের নির্দেশাবলী প্রদর্শন করে যে কীভাবে একটি প্লেয়ারকে এম্বেড করতে হয় যা একটি একক ভিডিও লোড করে। নিম্নলিখিত বিভাগটি ব্যাখ্যা করে যে কীভাবে আপনার প্লেয়ারকে একটি প্লেলিস্ট বা ব্যবহারকারীর আপলোড করা ভিডিও লোড করতে কনফিগার করতে হয়।

একটি <iframe> ট্যাগ ব্যবহার করে একটি প্লেয়ার এম্বেড করুন

আপনার অ্যাপ্লিকেশানে একটি <iframe> ট্যাগ সংজ্ঞায়িত করুন যেখানে src URL সেই বিষয়বস্তু নির্দিষ্ট করে যা প্লেয়ারটি লোড করবে সেইসাথে আপনি যে প্লেয়ার প্যারামিটার সেট করতে চান। <iframe> ট্যাগের height এবং width প্যারামিটার প্লেয়ারের মাত্রা নির্দিষ্ট করে।

আপনি যদি নিজেই <iframe> উপাদানটি তৈরি করেন (এটি তৈরি করতে IFrame Player API ব্যবহার না করে), আপনি প্লেয়ার প্যারামিটার সরাসরি URL এর শেষে যুক্ত করতে পারেন। URL এর নিম্নলিখিত বিন্যাস রয়েছে:

https://www.youtube.com/embed/VIDEO_ID

নিচের <iframe> ট্যাগটি একটি 640x360px প্লেয়ার লোড করবে যা YouTube ভিডিও M7lc1UVf-VE চালাবে। যেহেতু URL autoplay প্যারামিটারটিকে 1 এ সেট করে, তাই প্লেয়ার লোড হয়ে গেলে ভিডিওটি স্বয়ংক্রিয়ভাবে প্লে হবে।

<iframe id="ytplayer" type="text/html" width="640" height="360"
  src="https://www.youtube.com/embed/M7lc1UVf-VE?autoplay=1&origin=http://example.com"
  frameborder="0"></iframe>

IFrame Player API ব্যবহার করে একটি প্লেয়ার এম্বেড করুন

প্লেয়ার API এর জাভাস্ক্রিপ্ট কোড লোড হওয়ার পরে আপনার ওয়েব পৃষ্ঠা বা অ্যাপ্লিকেশনে একটি ভিডিও প্লেয়ার সন্নিবেশ করতে IFrame Player API নির্দেশাবলী অনুসরণ করুন৷ ভিডিও প্লেয়ারের কনস্ট্রাক্টরের দ্বিতীয় প্যারামিটারটি এমন একটি বস্তু যা প্লেয়ারের বিকল্পগুলি নির্দিষ্ট করে। সেই বস্তুর মধ্যে, playerVars সম্পত্তি প্লেয়ার পরামিতি সনাক্ত করে।

নীচের এইচটিএমএল এবং জাভাস্ক্রিপ্ট কোডটি একটি সাধারণ উদাহরণ দেখায় যা একটি YouTube প্লেয়ারকে পৃষ্ঠা উপাদানে সন্নিবেশ করায় যার একটি id মান ytplayer । IFrame Player API কোড লোড হয়ে গেলে এখানে উল্লেখিত onYouTubePlayerAPIReady() ফাংশন স্বয়ংক্রিয়ভাবে কল করা হয়। এই কোড কোনো প্লেয়ার প্যারামিটার সংজ্ঞায়িত করে না এবং অন্যান্য ইভেন্ট হ্যান্ডলারকেও সংজ্ঞায়িত করে না।

<div id="ytplayer"></div>

<script>
  // Load the IFrame Player API code asynchronously.
  var tag = document.createElement('script');
  tag.src = "https://www.youtube.com/player_api";
  var firstScriptTag = document.getElementsByTagName('script')[0];
  firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

  // Replace the 'ytplayer' element with an <iframe> and
  // YouTube player after the API code downloads.
  var player;
  function onYouTubePlayerAPIReady() {
    player = new YT.Player('ytplayer', {
      height: '360',
      width: '640',
      videoId: 'M7lc1UVf-VE'
    });
  }
</script>

খেলার জন্য সামগ্রী নির্বাচন করুন

আপনি একটি ভিডিও, একটি প্লেলিস্ট বা ব্যবহারকারীর আপলোড করা ভিডিও লোড করতে আপনার এমবেড করা প্লেয়ার কনফিগার করতে পারেন৷

নিম্নলিখিত তালিকা এই বিকল্পগুলি ব্যাখ্যা করে:

  • একটি ভিডিও লোড হচ্ছে৷

    একটি IFrame এম্বেডের জন্য, আপনি যে ভিডিওটি লোড করতে চান তার YouTube ভিডিও আইডিটি IFrame-এর src URL-এ নির্দিষ্ট করা আছে৷

    https://www.youtube.com/embed/VIDEO_ID

    আপনি যদি YouTube ডেটা API (v3) ব্যবহার করেন, তাহলে আপনি অনুসন্ধান ফলাফল , প্লেলিস্ট আইটেম সংস্থান , ভিডিও সংস্থান বা অন্যান্য সংস্থানগুলি থেকে ভিডিও আইডি পুনরুদ্ধার করে প্রোগ্রামেটিকভাবে এই URLগুলি তৈরি করতে পারেন৷ একটি ভিডিও আইডি পাওয়ার পরে, প্লেয়ার URL তৈরি করতে উপরের URLগুলির VIDEO_ID পাঠ্যটিকে সেই মান দিয়ে প্রতিস্থাপন করুন৷

  • একটি প্লেলিস্ট লোড হচ্ছে৷

    playlist listType প্লেয়ার প্যারামিটার সেট করুন। এছাড়াও, আপনি যে YouTube প্লেলিস্ট আইডি লোড করতে চান তাতে list প্লেয়ার প্যারামিটার সেট করুন।

    https://www.youtube.com/embed?listType=playlist&list=PLAYLIST_ID

    মনে রাখবেন যে আপনাকে প্লেলিস্ট আইডিকে PL অক্ষর দিয়ে প্রিপেন্ড করতে হবে যেমনটি নিম্নলিখিত উদাহরণে দেখানো হয়েছে:

    https://www.youtube.com/embed?listType=playlist&list=PLC77007E23FF423C6

    আপনি যদি YouTube ডেটা API (v3) ব্যবহার করেন, তাহলে আপনি অনুসন্ধান ফলাফল , চ্যানেল সংস্থান বা কার্যকলাপ সংস্থানগুলি থেকে প্লেলিস্ট আইডি পুনরুদ্ধার করে এই URLগুলি প্রোগ্রাম্যাটিকভাবে তৈরি করতে পারেন৷ একটি প্লেলিস্ট আইডি পাওয়ার পরে, উপরের URL-এ PLAYLIST_ID পাঠ্যটিকে সেই মান দিয়ে প্রতিস্থাপন করুন৷

  • ব্যবহারকারীর আপলোড করা ভিডিও লোড করা হচ্ছে

    user_uploadslistType প্লেয়ার প্যারামিটার সেট করুন। এছাড়াও, YouTube ব্যবহারকারীর নামের list প্লেয়ার প্যারামিটার সেট করুন যার আপলোড করা ভিডিও আপনি লোড করতে চান।

    https://www.youtube.com/embed?listType=user_uploads&list=USERNAME

সমর্থিত পরামিতি

নিম্নলিখিত পরামিতি সব ঐচ্ছিক.

পরামিতি

autoplay

প্লেয়ার লোড হলে প্রাথমিক ভিডিও স্বয়ংক্রিয়ভাবে চলতে শুরু করবে কিনা এই প্যারামিটারটি নির্দিষ্ট করে। সমর্থিত মান হল 0 বা 1 । ডিফল্ট মান হল 0

আপনি যদি অটোপ্লে সক্ষম করেন, প্লেব্যাক প্লেয়ারের সাথে কোনো ব্যবহারকারীর মিথস্ক্রিয়া ছাড়াই ঘটবে; প্লেব্যাক ডেটা সংগ্রহ এবং ভাগ করে নেওয়া তাই পৃষ্ঠা লোড হওয়ার পরে ঘটবে৷

cc_lang_pref

এই প্যারামিটারটি ডিফল্ট ভাষা নির্দিষ্ট করে যা প্লেয়ার ক্যাপশন প্রদর্শন করতে ব্যবহার করবে। একটি ISO 639-1 দুই-অক্ষরের ভাষা কোডে প্যারামিটারের মান সেট করুন।

আপনি যদি এই প্যারামিটারটি ব্যবহার করেন এবং cc_load_policy প্যারামিটারটি 1 এ সেট করেন, তাহলে প্লেয়ার লোড হওয়ার সময় প্লেয়ারটি নির্দিষ্ট ভাষায় ক্যাপশন দেখাবে। আপনি যদি cc_load_policy প্যারামিটারও সেট না করেন, তাহলে ক্যাপশনগুলি ডিফল্টরূপে প্রদর্শিত হবে না, তবে ব্যবহারকারী ক্যাপশন চালু করতে চাইলে নির্দিষ্ট ভাষায় প্রদর্শিত হবে।

cc_load_policy

প্যারামিটারের মান 1 তে সেট করার ফলে ক্লোজড ক্যাপশনগুলি ডিফল্টরূপে দেখানো হবে, এমনকি ব্যবহারকারী ক্যাপশন বন্ধ করে দিলেও। ডিফল্ট আচরণ ব্যবহারকারী পছন্দ উপর ভিত্তি করে.

color

এই পরামিতিটি দর্শক ইতিমধ্যেই দেখেছে এমন ভিডিওর পরিমাণ হাইলাইট করতে প্লেয়ারের ভিডিও প্রগ্রেস বারে যে রঙটি ব্যবহার করা হবে তা নির্দিষ্ট করে৷ বৈধ প্যারামিটার মান হল red এবং white , এবং, ডিফল্টরূপে, প্লেয়ার ভিডিও প্রগ্রেস বারে লাল রঙ ব্যবহার করে। রঙের বিকল্পগুলি সম্পর্কে আরও তথ্যের জন্য YouTube API ব্লগটি দেখুন।

controls

এই প্যারামিটারটি নির্দেশ করে যে ভিডিও প্লেয়ার নিয়ন্ত্রণগুলি প্রদর্শিত হচ্ছে কিনা:

  • controls=0 - প্লেয়ার নিয়ন্ত্রণ প্লেয়ারে প্রদর্শিত হয় না।
  • controls=1 (ডিফল্ট) - প্লেয়ারে প্লেয়ার নিয়ন্ত্রণ প্রদর্শন।

disablekb

প্যারামিটারের মান 1 এ সেট করার ফলে প্লেয়ার কীবোর্ড নিয়ন্ত্রণে সাড়া দেয় না। ডিফল্ট মান হল 0 , যার মানে হল কীবোর্ড নিয়ন্ত্রণগুলি সক্ষম৷ বর্তমানে সমর্থিত কীবোর্ড নিয়ন্ত্রণগুলি হল:

  • স্পেসবার বা [কে]: প্লে/পজ
  • বাঁদিকের তীর: বর্তমান ভিডিওতে 5 সেকেন্ড পিছনে যান
  • ডানদিকে তীর: বর্তমান ভিডিওতে 5 সেকেন্ড এগিয়ে যান
  • তীর উপরে: ভলিউম আপ
  • তীর নিচে: ভলিউম কম
  • [f]: পূর্ণ-স্ক্রীন প্রদর্শন টগল করুন
  • [j]: বর্তমান ভিডিওতে 10 সেকেন্ড পিছনে যান
  • [l]: বর্তমান ভিডিওতে 10 সেকেন্ড এগিয়ে যান
  • [মি]: ভিডিওটি মিউট বা আনমিউট করুন
  • [০-৯]: ভিডিওতে একটি বিন্দুতে যান। ভিডিওর শুরুতে 0 লাফ দেয়, 1 ভিডিওতে 10% পয়েন্টে, 2 ভিডিওতে 20% পয়েন্টে লাফ দেয় এবং আরও অনেক কিছু।

enablejsapi

প্যারামিটারের মান 1 এ সেট করা প্লেয়ারটিকে IFrame Player API কলের মাধ্যমে নিয়ন্ত্রণ করতে সক্ষম করে। ডিফল্ট মান হল 0 , যার মানে হল যে সেই API ব্যবহার করে প্লেয়ারকে নিয়ন্ত্রণ করা যাবে না।

IFrame API এবং এটি কীভাবে ব্যবহার করবেন সে সম্পর্কে আরও তথ্যের জন্য, IFrame API ডকুমেন্টেশন দেখুন।

end

এই প্যারামিটারটি ভিডিওর শুরু থেকে সেকেন্ডে পরিমাপ করা সময় নির্দিষ্ট করে, যখন প্লেয়ার ভিডিও চালানো বন্ধ করবে। পরামিতি মান একটি ধনাত্মক পূর্ণসংখ্যা।

মনে রাখবেন যে সময়টি ভিডিওর শুরু থেকে পরিমাপ করা হয় এবং start প্লেয়ার প্যারামিটার বা startSeconds প্যারামিটারের মান থেকে নয়, যা একটি ভিডিও লোড বা সারিবদ্ধ করার জন্য YouTube প্লেয়ার API ফাংশনে ব্যবহৃত হয়।

fs

এই প্যারামিটারটি 0 তে সেট করা হলে পূর্ণস্ক্রীন বোতামটিকে প্লেয়ারে প্রদর্শিত হতে বাধা দেয়। ডিফল্ট মান হল 1 , যার ফলে পূর্ণস্ক্রীন বোতামটি প্রদর্শিত হয়৷

hl

প্লেয়ারের ইন্টারফেসের ভাষা সেট করে। প্যারামিটার মান হল একটি ISO 639-1 দুই-অক্ষরের ভাষা কোড বা একটি সম্পূর্ণ নির্দিষ্ট লোকেল। উদাহরণস্বরূপ, fr এবং fr-ca উভয়ই বৈধ মান। অন্যান্য ভাষার ইনপুট কোড, যেমন IETF ভাষা ট্যাগ (BCP 47) সঠিকভাবে পরিচালনা করা যেতে পারে।

ইন্টারফেস ভাষাটি প্লেয়ারে টুলটিপের জন্য ব্যবহৃত হয় এবং এটি ডিফল্ট ক্যাপশন ট্র্যাককেও প্রভাবিত করে। মনে রাখবেন যে ব্যবহারকারীর স্বতন্ত্র ভাষা পছন্দ এবং ক্যাপশন ট্র্যাকগুলির উপলব্ধতার উপর ভিত্তি করে YouTube একটি নির্দিষ্ট ব্যবহারকারীর জন্য একটি ভিন্ন ক্যাপশন ট্র্যাক ভাষা নির্বাচন করতে পারে৷

iv_load_policy

প্যারামিটারের মান 1 তে সেট করার ফলে ভিডিও টীকাগুলি ডিফল্টরূপে দেখানো হয়, যেখানে 3 তে সেট করার ফলে ভিডিও টীকাগুলি ডিফল্টরূপে দেখানো হয় না৷ ডিফল্ট মান হল 1

list

list প্যারামিটার, listType প্যারামিটারের সাথে একত্রে, প্লেয়ারে লোড করা বিষয়বস্তু চিহ্নিত করে।

  • যদি listType প্যারামিটারের মান user_uploads হয়, তাহলে list প্যারামিটার মানটি YouTube চ্যানেলটিকে চিহ্নিত করে যার আপলোড করা ভিডিওগুলি লোড করা হবে৷
  • যদি listType প্যারামিটার মান playlist হয়, তাহলে list প্যারামিটার মান একটি YouTube প্লেলিস্ট আইডি নির্দিষ্ট করে। প্যারামিটার মানের মধ্যে, নীচের উদাহরণে দেখানো হিসাবে আপনাকে PL অক্ষর দিয়ে প্লেলিস্ট আইডির আগে প্রিপেন্ড করতে হবে।
    https://www.youtube.com/embed?
        listType=playlist
        &list=PLC77007E23FF423C6
  • যদি listType পরামিতি মান search হয়, তাহলে list প্যারামিটার মান অনুসন্ধান ক্যোয়ারী নির্দিষ্ট করে। দ্রষ্টব্য: এই কার্যকারিতা বাতিল করা হয়েছে এবং 15 নভেম্বর 2020 থেকে আর সমর্থিত হবে না।
দ্রষ্টব্য: আপনি যদি list এবং listType প্যারামিটারের জন্য মান নির্দিষ্ট করেন, তাহলে IFrame এম্বেড URL-এর একটি ভিডিও আইডি নির্দিষ্ট করার প্রয়োজন নেই৷

listType

listType প্যারামিটার, list প্যারামিটারের সাথে একত্রে, প্লেয়ারে লোড হওয়া বিষয়বস্তু চিহ্নিত করে। বৈধ প্যারামিটার মান হল playlist এবং user_uploads

আপনি যদি list এবং listType পরামিতিগুলির জন্য মান নির্দিষ্ট করেন, তাহলে IFrame এম্বেড URL-এর একটি ভিডিও আইডি নির্দিষ্ট করার প্রয়োজন নেই৷

দ্রষ্টব্য: একটি তৃতীয় প্যারামিটার মান, search , বাতিল করা হয়েছে এবং 15 নভেম্বর 2020 থেকে আর সমর্থিত হবে না।

loop

একটি একক ভিডিও প্লেয়ারের ক্ষেত্রে, 1 এর একটি সেটিং প্লেয়ারকে প্রাথমিক ভিডিও বারবার প্লে করতে দেয়। একটি প্লেলিস্ট প্লেয়ারের ক্ষেত্রে (বা কাস্টম প্লেয়ার), প্লেয়ার পুরো প্লেলিস্টটি প্লে করে এবং তারপর প্রথম ভিডিওতে আবার শুরু করে।

সমর্থিত মান হল 0 এবং 1 , এবং ডিফল্ট মান হল 0

দ্রষ্টব্য: IFrame এম্বেডগুলিতে এই পরামিতিটির সীমিত সমর্থন রয়েছে৷ একটি একক ভিডিও লুপ করতে, loop প্যারামিটার মান 1 এ সেট করুন এবং playlist প্যারামিটার মানটিকে প্লেয়ার API URL-এ ইতিমধ্যেই নির্দিষ্ট করা একই ভিডিও আইডিতে সেট করুন:
https://www.youtube.com/embed/VIDEO_ID?playlist=VIDEO_ID&loop=1

modestbranding

দ্রষ্টব্য: এই প্যারামিটারটি অবহেলিত এবং এর কোন প্রভাব নেই। আরও তথ্যের জন্য অবচয় ঘোষণা দেখুন।

origin

এই প্যারামিটারটি IFrame API-এর জন্য একটি অতিরিক্ত নিরাপত্তা পরিমাপ প্রদান করে এবং শুধুমাত্র IFrame এম্বেডের জন্য সমর্থিত। আপনি যদি IFrame API ব্যবহার করেন, যার মানে আপনি enablejsapi প্যারামিটার মান 1 তে সেট করছেন, আপনার সর্বদা আপনার ডোমেনটিকে origin প্যারামিটার মান হিসাবে নির্দিষ্ট করা উচিত।

playlist

এই প্যারামিটারটি প্লে করার জন্য ভিডিও আইডিগুলির একটি কমা দ্বারা পৃথক করা তালিকা নির্দিষ্ট করে৷ আপনি যদি একটি মান নির্দিষ্ট করেন, তাহলে প্রথম যে ভিডিওটি প্লে হবে সেটি হবে URL পাথে নির্দিষ্ট করা VIDEO_ID , এবং playlist প্যারামিটারে নির্দিষ্ট করা ভিডিওগুলি তার পরে প্লে হবে৷

playsinline

এই প্যারামিটারটি নিয়ন্ত্রণ করে যে ভিডিওগুলি iOS-এ ইনলাইন বা পূর্ণস্ক্রীনে চলবে। বৈধ মান হল:

  • 0 : ফুলস্ক্রিন প্লেব্যাকের ফলাফল। এটি বর্তমানে ডিফল্ট মান, যদিও ডিফল্ট পরিবর্তন সাপেক্ষে।
  • 1 : মোবাইল ব্রাউজারগুলির জন্য ইনলাইন প্লেব্যাকের ফলাফল এবং YES সেট করা allowsInlineMediaPlayback প্রপার্টি দিয়ে তৈরি WebViews জন্য।

rel

দ্রষ্টব্য: এই প্যারামিটারটি 25 সেপ্টেম্বর, 2018 তারিখে বা তার পরে পরিবর্তিত হচ্ছে।

পরিবর্তনের আগে, এই প্যারামিটারটি নির্দেশ করে যে প্লেয়ারের প্রাথমিক ভিডিওর প্লেব্যাক শেষ হলে সংশ্লিষ্ট ভিডিও দেখাতে হবে কিনা।
  • যদি প্যারামিটারের মান 1 তে সেট করা হয়, যা ডিফল্ট মান, তাহলে প্লেয়ারটি সম্পর্কিত ভিডিওগুলি দেখায়৷
  • যদি প্যারামিটারের মান 0 তে সেট করা হয়, তাহলে প্লেয়ারটি সম্পর্কিত ভিডিও দেখায় না।
পরিবর্তনের পরে, আপনি সম্পর্কিত ভিডিওগুলি অক্ষম করতে পারবেন না। পরিবর্তে, যদি rel প্যারামিটারটি 0 তে সেট করা হয়, তবে সম্পর্কিত ভিডিওগুলি একই চ্যানেল থেকে আসবে যে ভিডিওটি এইমাত্র প্লে করা হয়েছিল৷

start

এই প্যারামিটারটি প্লেয়ারকে ভিডিওর শুরু থেকে প্রদত্ত সেকেন্ডে ভিডিও চালানো শুরু করে। পরামিতি মান একটি ধনাত্মক পূর্ণসংখ্যা। লক্ষ্য করুন যে seekTo ফাংশনের অনুরূপ, প্লেয়ারটি আপনার নির্দিষ্ট করা সময়ের নিকটতম কীফ্রেমটি সন্ধান করবে। এর মানে হল যে কখনও কখনও প্লে হেড অনুরোধ করা সময়ের ঠিক আগে চেষ্টা করতে পারে, সাধারণত প্রায় দুই সেকেন্ডের বেশি নয়।

widget_referrer

এই প্যারামিটারটি ইউআরএল সনাক্ত করে যেখানে প্লেয়ার এমবেড করা আছে। এই মানটি ইউটিউব অ্যানালিটিক্স রিপোর্টিং-এ ব্যবহৃত হয় যখন YouTube প্লেয়ার একটি উইজেটে এম্বেড করা হয় এবং সেই উইজেটটি তারপর একটি ওয়েব পৃষ্ঠা বা অ্যাপ্লিকেশনে এম্বেড করা হয়। সেই পরিস্থিতিতে, origin প্যারামিটারটি উইজেট প্রদানকারীর ডোমেনকে শনাক্ত করে, কিন্তু ইউটিউব অ্যানালিটিক্স উইজেট প্রদানকারীকে প্রকৃত ট্রাফিক উৎস হিসেবে চিহ্নিত করা উচিত নয়। পরিবর্তে, ইউটিউব অ্যানালিটিক্স ট্রাফিক উৎসের সাথে যুক্ত ডোমেন সনাক্ত করতে widget_referrer প্যারামিটার মান ব্যবহার করে।

পরিবর্ধন ও পরিবর্তন তালিকা

August 15, 2023

Note: This is a deprecation announcement for the modestbranding parameter.

The modestbranding parameter is deprecated and will have no effect. To align with YouTube's branding requirements, the player now determines the appropriate branding treatment based on a combination of factors, including player size, other API parameters (e.g. controls ), and additional signals.

April 27, 2021

The playsinline parameter definition has been updated slightly to explain that the parameter pertains to both mobile browsers on iOS and iOS WebViews.

October 15, 2020

The autoplay parameter definition has been updated to explain that if you enable Autoplay, playback will occur without any user interaction with the player; playback data collection and sharing will therefore occur upon page load.

October 13, 2020

Note: This is a deprecation announcement for the embedded player functionality that lets you configure the player to load search results. This announcement affects the player's list and listType parameters.

This change will become effective on or after 15 November 2020 . After that time, setting the listType parameter value to search will generate a 4xx response code, such as 404 ( Not Found ) or 410 ( Gone ).

As an alternative, you can use the YouTube Data API's search.list method to retrieve search results and then load selected videos in the player.

In addition to the change described above, the showinfo parameter, which was deprecated in 2018, has been removed from this document.

August 23, 2018

Note: This is a deprecation announcement for the showinfo parameter. In addition, the behavior for the rel parameter is changing. Titles, channel information, and related videos are an important part of YouTube’s core user experience, and these changes help to make the YouTube viewing experience consistent across different platforms.

  • The behavior for the rel parameter is changing on or after September 25, 2018. The effect of the change is that you will not be able to disable related videos. However, you will have the option of specifying that the related videos shown in the player should be from the same channel as the video that was just played.

    To be more specific:
    • Prior to the change, if the parameter's value is set to 0 , then the player does not show related videos.
    • After the change, if the rel parameter is set to 0 , the player will show related videos that are from the same channel as the video that was just played.
  • The showinfo parameter, which indicates whether the player should display information like the video title and uploader before the video starts playing, is also being deprecated. Following the change, the channel avatar and video title will always display before playback begins, when playback is paused, and when playback ends. The avatar being displayed is new behavior that will be consistent across all embedded players.

These changes will become effective on or after September 25, 2018. After that time, the showinfo parameter will be ignored. The behavior following the changes is consistent with the current default behavior for embedded players with the exception of the channel avatar changes mentioned above.

August 16, 2018

The cc_lang_pref parameter can be used to specify the default language that the player will use to display captions. This parameter can be used in conjunction with the cc_load_policy parameter to automatically show captions in the specified language during playback.

September 15, 2017

The controls parameter's definition has been updated to remove references to the deprecated Flash (AS3) player. The value 2 has been deprecated as it was originally designed to provide a performance improvement for embeds that loaded a Flash player.

June 12, 2017

The new widget_referrer parameter helps to enable more accurate YouTube Analytics reporting when the YouTube player is embedded in a widget, and that widget is then embedded in a web page or application.

November 1, 2016

This document has been updated to remove references to the deprecated Flash (AS3) player as well as to parameters only supported by that player. The YouTube Flash player was deprecated in January 2015.

October 20, 2016

This update contains the following changes:

  • The disablekb parameter definition has been corrected to note that the default value is 0 , which means that keyboard controls are enabled. A value of 1 indicates that keyboard controls should be disabled.

    The list of keyboard controls that the player supports has also been updated to include the following:

    • [f]: Toggle full-screen display
    • [j]: Jump back 10 seconds in the current video
    • [k]: Play / Pause
    • [l]: Jump ahead 10 seconds in the current video
    • [m]: Mute or unmute the video
    • [0-9]: Jump to a point in the video. 0 jumps to the beginning of the video, 1 jumps to the time 10% into the video, 2 jumps to the point 20% into the video, and so forth.

    In addition, the effect of pressing the [arrow left] or [arrow right] keys has changed. These keys now jump 5 seconds back (arrow left) or ahead (arrow right) in the current video.

August 11, 2016

This update contains the following changes:

  • The newly published YouTube API Services Terms of Service ("the Updated Terms"), discussed in detail on the YouTube Engineering and Developers Blog , provides a rich set of updates to the current Terms of Service. In addition to the Updated Terms , which will go into effect as of February 10, 2017, this update includes several supporting documents to help explain the policies that developers must follow.

    The full set of new documents is described in the revision history for the Updated Terms . In addition, future changes to the Updated Terms or to those supporting documents will also be explained in that revision history. You can subscribe to an RSS feed listing changes in that revision history from a link in that document.

December 18, 2015

European Union (EU) laws require that certain disclosures must be given to and consents obtained from end users in the EU. Therefore, for end users in the European Union, you must comply with the EU User Consent Policy . We have added a notice of this requirement in our YouTube API Terms of Service .

August 19, 2015

  • The autohide parameter has been deprecated for the HTML5 player. In HTML5 players, the video progress bar and player controls display or hide automatically. That behavior corresponds to an autohide setting of 1 .

  • The theme parameter has been deprecated for the HTML5 player. HTML5 players now always use the dark theme.

March 9, 2015

  • The document has been updated to reflect the fact that YouTube <object> embeds, the YouTube Flash Player API and the YouTube JavaScript Player API have all been deprecated as of January 27, 2015. A deprecation warning appears in several sections of this document to help point readers to the IFrame Player API as an alternative.

  • The definition of the autohide parameter has been updated to clarify the meaning of the parameter's values. The default behavior ( autohide=2 ) is that if the player has a 16:9 or 4:3 aspect ratio, the player's video progress bar and player controls display or hide automatically. Otherwise, those controls are visible throughout the video.

  • The definition of the hl parameter has been updated to note that the parameter value could be an ISO 639-1 two-letter language code or a fully specified locale. For example, fr and fr-ca are both valid parameter values.

  • The definition of the enablejsapi parameter has been reworded to clarify that the parameter enables a player to be controlled via API calls. The API could be either the IFrame Player API or the JavaScript Player API .

October 14, 2014

July 18, 2014

  • The new hl parameter can be used to set the player's interface language. The interface language is used for tooltips in the player and also affects the default caption track. The selected caption track may also depend on the availability of caption tracks and user's individual language preferences.

    The parameter's value is an ISO 639-1 two-letter language code , though other language input codes, such as IETF language tags (BCP 47) may also be handled properly.

  • The definition of the playsinline parameter, which only affects HTML5 players on iOS, has been modified slightly. The definition now notes that setting the parameter value to 1 causes inline playback only for UIWebViews created with the allowsInlineMediaPlayback property set to TRUE .

January 28, 2014

  • The playsinline parameter controls whether videos play inline or fullscreen in an HTML5 player on iOS. Setting the value to 1 causes inline playback.

  • The Selecting content to play section has been updated to explain how to find YouTube video IDs and playlist IDs using the YouTube Data API (v3) rather than the older API version.

  • The controls parameter's definition has been updated to reflect the fact that the parameter value only affects the time that the Flash player actually loads in IFrame embeds. In addition, for IFrame embeds, the parameter value also determines when the controls display in the player. If you set the parameter's value to 2 , then the controls display and the Flash player loads after the user initiates the video playback.

May 10, 2013

This update contains the following changes:

July 20, 2012

This update contains the following changes:

  • The definition of the controls parameter has been updated to reflect support for a parameter value of 2 and to explain that, for AS3 players, the parameter value determines the time when the Flash player actually loads. If the controls parameter is set to 0 or 1 , the Flash player loads immediately. If the parameter value is 2 , the Flash player does not load until the video playback is initiated.

June 5, 2012

This update contains the following changes:

  • The HTML5 player now supports the color , modestbranding , and rel parameters, and the definitions for these parameters have been updated accordingly.

  • The definition of the showinfo parameter has been updated to explain how that if the player is loading a playlist, and you explicitly set the parameter value to 1 , then, upon loading, the player will also display thumbnail images for the videos in the playlist. Note that this functionality is only supported for the AS3 player since that is the only player that can load a playlist.

May 4, 2012

This update contains the following changes:

  • The showinfo parameter's definition has been updated to reflect the fact that the HTML5 player supports this parameter.

May 3, 2012

This update contains the following changes:

  • The new end parameter specifies the time, measured in seconds from the start of the video, when the player should stop playing a video. Note that the time when playback is stopped is measured from the beginning of the video and not from the value of either the start player parameter or the startSeconds parameter, which is used in YouTube Player API functions for loading or queueing a video.

March 29, 2012

This update contains the following changes:

  • The new Embedding a YouTube player section explains different ways to embed a YouTube player in your application. This section covers manual IFrame embeds, IFrame embeds that use the IFrame Player API, and AS3 and AS2 object embeds. This section incorporates information from the old Example usage section, which has been removed.

  • The new Selecting content to play section explains how to configure the player to load a video, a playlist, search results for a specified query, or uploaded videos for a specified user.

  • The new list and listType parameters let you specify the content that the player should load. You can specify a playlist, a search query, or a particular user's uploaded videos.

  • The definitions of the fs and rel parameters have been updated to more clearly explain the default parameter values for the AS3 player.

  • The border , color1 , egm , hd , and showsearch parameters, which are all only supported for the deprecated AS2 Player API, have been moved to a new section named deprecated parameters only used in the AS2 Player API .

  • The document no longer provides a way to filter the parameter list to only display parameters supported in either the AS3, AS2, or HTML5 player. Instead, each parameter definition has been updated to identify the players that support that parameter.

August 11, 2011

This update contains the following changes:

  • The new theme and color parameters let you customize the appearance of the embedded player's player controls. See the YouTube API blog for more information.

June 8, 2011

This update contains the following changes:

  • The new modestbranding parameter lets you use a YouTube player that does not show a YouTube logo. As of this release, the parameter was only supported for the AS3 embedded player and for IFrame embeds that loaded the AS3 player. As of June 5, 2012, the HTML5 player also supported this parameter.

February 14, 2011

This update contains the following changes:

  • The documentation has been updated to note that the AS2 Player API has been deprecated. The deprecation of the AS2 Player API was actually announced on October 14, 2009.

February 3, 2011

This update contains the following changes:

  • The documentation has been updated to identify parameters supported in the HTML5 ( IFrame ) embedded player.

  • The document now displays all of the parameters supported in any of YouTube's embedded players (HTML5, AS3, AS2).

  • The following parameters are supported in the AS2 player but have been deprecated for the newer AS3 and HTML5 players: border , color1 , color2 , egm , hd , and showsearch .

    In addition, the loop parameter has limited support in the AS3 player and in IFrame embeds, which could load either an AS3 or HTML player. Currently, the loop parameter only works in the AS3 player when used in conjunction with the playlist parameter. To loop a single video, set the loop parameter to 1 and set the playlist parameter value to the same video ID already specified in the Player API URL:

    https://www.youtube.com/v/VIDEO_ID?version=3&loop=1&playlist=VIDEO_ID

    Similarly, the controls and playlist parameters are supported in the AS3 and HTML5 players but are not and will not be supported in the AS2 player.

    As noted above, IFrame embeds can load either an AS3 or HTML5 player. Though some parameters are not supported in both players, an IFrame embed that loads the AS3 player will support all parameters that work with that player and ignore all other parameters. Similarly, an IFrame embed that loads the HTML5 player will support all parameters that work with that player while ignoring all other parameters.

  • The parameter list has been updated to include the autohide parameter, which indicates whether the player's video controls will automatically hide after a video begins playing.

  • The parameter list has been updated to include the controls parameter, which indicates whether the player's video controls will display at all. (Player controls do display by default.)

  • The parameter list has been updated to include the playlist parameter, which specifies a comma-separated list of video IDs to play.

  • The definition of the fs has been updated to note that the fullscreen option will not work if you load the YouTube player into another SWF.

  • The example at the end of the document has been updated to use the embedded AS3 player instead of the embedded AS2 player. The parameters used in the example have also been updated to only include parameters that the AS3 player supports.

    In addition, the instructions for constructing the URLs that contain player parameters have been updated to reflect the URL formats used by the AS3 and AS2 embedded and chromeless players as well as by the HTML5 player.