Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onYouTubeIframeAPIReady() {
- var player;
- player = new YT.Player('muteYouTubeVideoPlayer', {
- videoId: 'YF7aaw3jYAU', // YouTube Video ID
- width: 1, // Player width (in px)
- height: 1, // 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_policty: 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();
- }
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement