Advertisement
firoze

ইউটিউব ভিডিও এমবেডের যত পদ্ধতি

Dec 24th, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.32 KB | None | 0 0
  1. ইউটিউব ভিডিও এমবেডের যত পদ্ধতি
  2. পোস্ট করেছেন রাসেল আহমেদ • মে ১৫, ২০১৪
  3. কোন ইউটিউব ভিডি এমবেড করতে হলে নরম্যালি আমরা ইউটিউবএ যাই তারপর সেখান থেকে এমবেড কোড নিয়ে সাইটে পেস্ট করে দেই। তাহলেই ইউটিউব ভিডিও প্লেয়ার ওয়েবসাইটে চলে আসে। কিন্তু আপনি জানেনকি বিভিন্নভাবে ইউটিউব ভিডিও প্লেয়ার কাস্টমাইজ করা যায়?
  4. আজকে দেখাবো কিভাবে ইউটিউব ভিডিও এমবেড কাস্টমাইজ করা যায়। আমরা নিচের ভিডিওটিকে এমবেড করবো
  5. https://www.youtube.com/watch?v=C5t4BlP85W8
  6. এই ভিডিওটি যদি আমরা এমবেড করতে চাই তাহলে নিচের মত কোড ব্যবহার করবো
  7. [html]<iframe src="//www.youtube.com/embed/C5t4BlP85W8?color=white" width="412" height="232" frameborder="0" allowfullscreen="allowfullscreen"></iframe>[/html]
  8. তাহলে আমরা এরকম দেখতে পারবো
  9. যদি কন্ট্রোল বাটন না যুক্ত করতে চান তাহলে ব্যবহার করুন: controls=0
  10. [html]<iframe src="//www.youtube.com/embed/C5t4BlP85W8?controls=0" width="412" height="232" frameborder="0" allowfullscreen="allowfullscreen"></iframe>[/html]
  11. যদি ইউটিউবের ব্র্যান্ডিং লগো না দেখাতে চান তাহলে ব্যবহার করুন: modestbranding=1
  12. [html]<iframe src="//www.youtube.com/embed/C5t4BlP85W8?modestbranding=1" width="412" height="232" frameborder="0" allowfullscreen="allowfullscreen"></iframe>[/html]
  13. যদি প্লেলিস্ট এমবেড করতে চান তাহলে ব্যবহার করুন: playlist=PLhPBqF–77InHDeO6VzFbonXNvJ-CR9Kw
  14. [html]<iframe src="//www.youtube.com/embed/C5t4BlP85W8?playlist=PLhPBqF–77InHDeO6VzFbonXNvJ-CR9Kw" width="412" height="232" frameborder="0" allowfullscreen="allowfullscreen"></iframe>[/html]
  15. প্লে হওয়ার পর রিলেটেড ভিডিও দেখায়, যদি না দেখাতে চান তাহলে ব্যবহার করুন: rel=0
  16. [html]<iframe src="//www.youtube.com/embed/C5t4BlP85W8?rel=0" width="412" height="232" frameborder="0" allowfullscreen="allowfullscreen"></iframe>[/html]
  17. যদি টাইটেলবার না দেখাতে চান তাহলে ব্যবহার করুন: showinfo=0
  18. [html]<iframe src="//www.youtube.com/embed/C5t4BlP85W8?showinfo=0" width="412" height="232" frameborder="0" allowfullscreen="allowfullscreen"></iframe>[/html]
  19. যদি নির্দিষ্ট সেকেন্ড থেকে প্লে শুরু করতে চান তাহলে ব্যবহার করুন: start=102
  20. [html]<iframe src="//www.youtube.com/embed/C5t4BlP85W8?start=102" width="412" height="232" frameborder="0" allowfullscreen="allowfullscreen"></iframe>[/html]
  21. যদি লাইট থিম ব্যবহার করতে চান তাহলে ব্যবহার করুন: theme=light
  22. [html]<iframe src="//www.youtube.com/embed/C5t4BlP85W8?theme=light" width="412" height="232" frameborder="0" allowfullscreen="allowfullscreen"></iframe>[/html]
  23. টাইটেলবার ও প্লে কন্ট্রোল বাটন হাইড করতে ব্যবহার করুন: showinfo=0&iv_load_policy=3&controls=0
  24. [html]<iframe src="//www.youtube.com/embed/C5t4BlP85W8?showinfo=0&iv_load_policy=3&controls=0" width="412" height="232" frameborder="0" allowfullscreen="allowfullscreen"></iframe>[/html]
  25. একাধিক প্যারামিটার একই সাথে ব্যবহার করতে & ব্যবহার করুন। যেমন
  26. [html]<iframe src="//www.youtube.com/embed/C5t4BlP85W8?color=white&showinfo=0" width="412" height="232" frameborder="0" allowfullscreen="allowfullscreen"></iframe>[/html]
  27. সতর্কতা: আপনি যদি লোকালহোস্টে ভিডিও এমবেড করতে চান, তাহলে অবশ্যই src এর পরে http অথবা https ব্যবহার করবেন। তা না হলে লোকালহোস্টে ভিডিও আসবে না। সার্ভারের ক্ষেত্রে এই টেক্সট না যোগ করলেও হবে।
  28. Wordpress এর জন্নে যেভাবে use করতে হবে । red mark area font
  29. // For youtube video function our_video_short_code($atts, $content = null ){ $a = shortcode_atts( array( 'id' => '', ), $atts ); return '<div class="test_vits"><iframe src="http://www.youtube.com/embed/' . esc_attr($a['id']) . '?controls=0" frameborder="0" allowfullscreen></iframe></div>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement