You want to embed a video that is uploaded to textpattern in an article and you want this with more than one article. With cfm_videoplayer this is easy, just follow these steps
The basic setup
- Get the cfm_videoplayer plugin and activate it under the admin->plugins menu.
- Place the jwplayer in the root of your website and be shure it’s called player.swf
- Place the javascript that came with the player in /js folder (or a folder you prefer on the server) and embed it between the
<head> </head>tags in the page template.
<script src="/js/swfobject.js" type="text/javascript"></script> - Create two custom fields called “video” and “poster”
- Add the cfm_videoplayer code to the form you use to output the article.
<txp:cfm_videoplayer width="512" height="288" fieldname="video" pmfieldname="poster" js="true" scale="aspect" autoplay ="false" showdownload="true" bufferlength="2" controlbar="over" />
Create the article
- upload your file, set the title and description and remember the id
- upload the image you have chosen to use as a posterframe, do not forget to set the meta data and remember the id
- create the article and put the id of the movie file in the field video and put the id of the image in the poster field
Your done!
