1. How to embed flash video without an iframe
it
simple way you need is only change your video id and videosite-here
bellow code u need to copy and paste in to your web browser :
<object width="640" height="360" title="video" tabindex="asdasd">
<param name="movie"
value="https://www.videosite-here.com/embed/yourVIDEOid?html5=1&rel=0&hl=en_US&version=3"
/ <param name="allowFullScreen" value="true">
<param name="allowscriptaccess" value="always"/>
<embed width="640" height="360"
src="https://www.videosite-here.com/embed/yourVIDEOid?html5=1&rel=0&hl=en_US&version=3"
class="youtube-player" type="text/html" allowscriptaccess="always"
allowfullscreen="true">
</object>
Demo will look like this
Enjoy !
2 How to Embed YouTube with Turned Sound Off
Replace id_of_your_youtube_video in the following code with that string.
<div id="YouTubeVideoPlayerSoundTurnedOff"></div>
<script async src="https://www.youtube.com/iframe_api"></script>
<script>
function onYouTubeIframeAPIReady() {
var player;
player = new YT.Player('muteYouTubeVideoPlayer', {
videoId: 'id_of_your_youtube_video', // YouTube Video ID
width: 430, // Player width (in px)
height: 300, // 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>
Next place that code in to your web html template , Almost Done !