thêm dòng này đằng sau video_id ?modestbranding=1
<iframe width="420" height="315" src="https://www.youtube.com/embed/w3b2fDXZqMQ?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
thành
<iframe width="420" height="315" src="https://www.youtube.com/embed/w3b2fDXZqMQ?rel=0&showinfo=1;modestbranding=1" frameborder="0" allowfullscreen></iframe>
hoặc
<object width="560" height="349">
<param name="movie" value="http://www.youtube.com/v/w3b2fDXZqMQ?modestbranding=1&version=3&hl=en_US"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/w3b2fDXZqMQ?modestbranding=1&version=3&hl=en_US" type="application/x-shockwave-flash" width="560" height="349" allowscriptaccess="always" allowfullscreen="true"></embed>
</object>
Một số thủ thuật khi up video khác<iframe width="532" height="300" src="http://www.youtube.com/watch?v=w3b2fDXZqMQ?theme=light&hl=en_US&fs=0&hd=1&ap=%2526fmt%3D22&showsearch=0&showinfo=0&modestbranding=0&rel=0&disablekb=1&iv_load_policy=3&cc_load_policy=1&autoplay=1&start=0&loop=1&autohide=1" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
?theme=light là giao diện (màu trắng), có thể đổi thành ?theme=dark (màu đen).
&hl=en_US bộ mã la tinh.
&fs=0 tắt chế độ xem toàn màn hình.
&hd=1 mở chế độ xem phim HD.
&ap=%2526fmt%3D22 xem với độ phân giải tối đa.
&showsearch=0 tắt khung tìm kiếm.
&showinfo=0 tắt thông tin và tiêu đề clip.
&modestbranding=0 tắt logo thương hiệu nếu có.
&rel=0 tắt các gợi ý về video khác nếu có.
&disablekb=1 tắt sự điều chỉnh từ bàn phím nếu có.
&iv_load_policy=3 tắt chú thích nếu có.
&cc_load_policy=1 tắt phụ đề nếu có.
&autoplay=1 tự động chạy video khi truy cập.
&start=0 bắt đầu chạy từ giây thứ 0.
&loop=1 tự động lặp lại video khi xem hết.
&autohide=1 tự động ẩn thanh điều khiển khi rời chuột khỏi clip.
Ngoài ra bạn còn có thể tùy chình chiểu rộng, chiều cao của video qua 2 thuốc tính là width và height .

Không có nhận xét nào:
Đăng nhận xét