تضمين فيديوهات اليوتيوب بدون صوت داخل موقعك
تضمين فيدوهات اليوتيوب بدون صوت داخل موقع هدا هو درس اليوم الدي سنتحدث من خلاله عن طريقة لاضافة فيديوهاتك داخل
موقعك بدون صوت طبعا ما ستستفيده : شاهد الفيديو لمزيد من التفاصيل
الكود الدي ستحتاجه
<div id="muteYouTubeVideoPlayer"></div>
<script async src="https://www.youtube.com/iframe_api"></script>
<script>
function onYouTubeIframeAPIReady() {
var player;
player = new YT.Player('muteYouTubeVideoPlayer', {
videoId: 'QqsY53kuxig', // YouTube Video ID
width: 300, // Player width (in px)
height: 250, // Player height (in px)
playerVars: {
autoplay: 1, // Auto-play the video on load
controls: 1, // Show pause/play buttons in player
showinfo: 0, // Hide the video title
modestbranding: 1, // Hide the Youtube Logo
loop: 1, // Run the video in a loop
fs: 0, // Hide the full screen button
cc_load_policy: 0, // Hide closed captions
iv_load_policy: 3, // Hide the Video Annotations
autohide: 0 // Hide video controls when playing
},
events: {
onReady: function(e) {
e.target.mute();
}
}
});
}
</script>
قم بتغير الكود الدي باللون الاحمر الى كود الفيديو الخاص بك
قم بتغير الكود الدي باللون الاحمر الى كود الفيديو الخاص بك