MediaPlayer:Macros
From Metrixstream
(Difference between revisions)
MetrixAdmin (Talk | contribs) (Created page with "== Getting Started == There are several macros internally define that let you instantiate a media player. There are several details that you need to pay attention to and we will...") |
Revision as of 07:42, 21 March 2011
Contents |
Getting Started
There are several macros internally define that let you instantiate a media player. There are several details that you need to pay attention to and we will go over them below.
getPlayerUrl
This is the most basic player macro and also the most common. It will instantiate a media player in the mp (default) skin and allow playback for both logged in and logged out viewers.
Parameters
- obj
- this is the content item. Normally this will be MS.activeContent
- index
- this is an offset into the video. This offset is a normalized offset between 0 and 1000. This means that index=500 would be half way through the video.
Example Usage
<?cs call:getPlayerUrl(MS.activeContent, #0) ?>