

- How to embed youtube link in powerpoint how to#
- How to embed youtube link in powerpoint update#
- How to embed youtube link in powerpoint code#
When the page is loaded, the onReady event runs that mutes the video. Internally, the player is embedded using the YouTube IFRAME API. Set fs to 1 to show the fullscreen button inside the video player. For instance, if you set loop as 1, the video will play in a loop. You can further customize the player by modifying the various player variables as commented in the code. After pasting the code, click on the Right Arrow icon to insert the video into a slide.
How to embed youtube link in powerpoint code#
Click on the Insert tab > Video > Online Video and paste the video embed code in From a video embed code box.

Next place the edited code on your web page and the embedded video would automatically play but the sound is muted. After that, open PowerPoint 2016 or 2013 and click on the slide in which you want to embed the video.

function onYouTubeIframeAPIReady ( ) // Written by Step 1: Export your PowerPoint presentation to a video. So, if you want to embed PowerPoint presentations on your website, this is another way to do so. In fact, there are viewers who prefer to watch something than reading. Having videos to watch on your website gives it an extra something. Once you have the ID, all you have to do is replace YOUR_VIDEO_ID in the following code with that string. Method 4: Upload presentation to YouTube. For instance, if the YouTube video link is, the YouTube video id is xyz. Go the YouTube video page and note down the ID of the video from the URL. The page loads, the video plays but with the audio slide is all the way down. See the demo page to get an idea of what we are trying to do here. Embed YouTube Player with Autoplay and Sound Muted The volume is however set to 0 and the user can manually click to unmute the video. Similarly, if you are using YouTube video backgrounds, it makes more sense to embed muted videos that run in a loop. This tutorial explains how you can embed a YouTube video that will automatically play when the web page is loaded but with muted audio.įor instance, a products website may use short screencasts to highlight features and these videos will autoplay when the page is loaded. A new window will open with an embed code and several embed options. YouTube does offer basic customization options - like you can modify the player dimensions or hide the YouTube branding - but if you would like to have more control over the layout or behavior of the embedded player, YouTube Player API is the way to go. Here are the steps for using a YouTube embed code to insert a video into your PowerPoint presentation: After you’ve found your video on YouTube, click Share under the video, and then click Embed from the list of sharing options. You just have to copy the IFRAME embed code and paste it anywhere on your web page. See the Youtube reference at YouTube Embedded Players and Player Parameters under "Selecting content to play" for details.It is easy to embed YouTube videos in your website.
How to embed youtube link in powerpoint update#
Just a small update to Alec Smart's answer: since AS2 is deprecated now, the '?version=3' is required to get his example to work. I'm sure it will work just fine for any other purpose as well like a blog for instance.Īll you have to do is call the function "autolink()" and pass it the string to be parsed.įor example include the function below and then echo this code. I made it for a chat room I'm working on and it works pretty well. Here is some code I've wrote to automatically turn URL's into links and automatically embed any video urls from youtube. The regular expression v\=(+) captures a (sub)string of characters and dashes that comes after v= Here's example code in python: > ytlink = ''
How to embed youtube link in powerpoint how to#
I don't know how to deal with regex in php, but it shouldn't be too hard Get the embed code from a random video, remove the video id from the embed code and replace it with the vid you got. Store the video id in a variable, let's call this variable vid Use a regex to extract the "video id" after watch?v= Part of this answer is referred by answer in this question. To get the video id you can fetch it $matches, these will match: In order for your users not spend their entire lifetime trying to find the video id in links to put it in your form field, let them post the link of the video they find on youtube and you can use the following regex to obtain the video id: preg_match("/^(?:http(?:s)?:\/\/)? The and tags are deprecated as per HTML Youtube Videos, it is preferable to use the tag to do so.
