MediaPlayer:Macros

From Metrixstream
Revision as of 07:42, 21 March 2011 by MetrixAdmin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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) ?>
Personal tools