- You will need to go to Youtube
- Go to your video
- Below the video there is a "SHARE" button
- Use the EMBED link This will look like this:
<iframe width="560" height="315" src="https://www.youtube.com/embed/m7rO-lC2ZEM" frameborder="0" allowfullscreen></iframe>
- Change the "width="560" to width="320"
- Go to http://www.opinionatedgeek.com/DotNet/Tools/HTMLEncode/Encode.aspx
- Paste the EMBED url in it en press "encode"
- You can paste this url in your Excel sheet.
To show it in your template, click on "source" and paste:
- <webview field="video" margin="10" width="fill_parent" height="200" />
(where "video" is the column name of your Excel where you have to url to the video)
Comments
1 comment
<webview name="Webview1" margin="5" value="&lt;style&gt;.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } --&gt; &lt;/style&gt; &lt;div class=&quot;embed-container&quot;&gt; &lt;iframe src=&quot;http://www.youtube.com/embed/{data:video}?rel=0&amp;amp;showinfo=0&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;"></webview>
Where video in {data:video} is the colom name with only the video code like 6-bgxikANQo
Please sign in to leave a comment.