Video Player

By James KanjoJames Kanjo

Description

With the traditional Video Player, you need to manually inject your video's url into the html code. This also means you need an individual code block for each song you want to play.

This is very tedious, and frankly, too complicated for less advanced users. So I've expanded upon the original code, and made it possible to dynamically play videos as specified in the URL:

Code

The video player can play *.flv files and H.264 encoded files.

[[iframe http://snippets.wdfiles.com/local--code/code:video#VIDEO-URL frameborder="0" scrolling="no" height="320px" width="440px"]]

To make the player automatically start playing when the page loads, just append #autoplay to the video's URL. For example:

[[iframe http://snippets.wdfiles.com/local--code/code:video#http://squark.wdfiles.com/local--files/dev:9/video.flv#autoplay frameborder="0" scrolling="no" height="320px" width="440px"]]

In action


Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by James Kanjo


Rate this solution

If you think this solution is useful — rate it up!

rating: +7+x
Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License