Last updated 2015.04.24 16:42 MediaShow ========= Plugins - for people who manually code page/magazine/screen files ----------------------------------------------------------------- Plugins are special DLLs that reside the in same directory as MediaShow's executable. They have an .MPI extension for "Mediashow PlugIn". To use a plugin in a page or magazine simply add: =[] in with the other parameters. The .MPI extension is usually omitted for the plugin_name. Not all plugins take options - see documentation for individual plugins. The older syntax was: PLUGIN= [] but this only permitted one plugin per page. Knowledgeable users can write plugins. Here are descriptions of the sample plugins supplied with MediaShow: Others= Summary: Only play when there are other pages like me. Others assumes that the page has a name in the form of: .pge - "Hello03.pge" for example. This plugin will not let a page run until there are files of the same type. For example if page hello07.pge specified "Others=3" and there were pages hello08.pge and hello09.pge then it would be played. (Improved 2003Mar23 to handle any number of digits) If you want to make sure those other pages are actually valid to play look at the AnyPlay plugin. Others is less CPU intensive than AnyPlay since it doesn't look inside the files. TimeChg={Spring|Fall} Summary: Play a page/mag on the day clocks spring forward or fall back. TimeCng gets its information from the Windows registry so it respects any changes you make with the Control Panel. Time changes typically occur at am so you may want to use this plugin with a time option to make sure a page/mag is played after or before the actual time change. A page using the Spring option might say "Hope you didn't forget to set your clock an hour forward last night". Year={Leap|WorldCup|SummerOlympics|WinterOlympics|StartDecade|EndDecade|StartCentury|EndCentury|} Summary: Plays a page/mag based on the year. The options are: Leap: leap years WorldCup: years when there is a World Cup WinterOlympics: years when there is a Winter Olympics StartDecade: first year of a decade (e.g. 2000, 2010) EndDecade: last year of a decade (e.g. 1999, 2009) StartCentury: first year of a century (e.g. 2000) EndCentury: last year of a century (e.g. 1999, 2099) : any year (e.g. 1901, 2003) Month={Q1|Q2|Q3|Q4 | Winter|Spring|Summer|Fall | Jan|Feb|Mar...} Summary: Plays pages/mags based on the month. For business applications Q1 is the first quarter and Q2 is the second quarter and so on. Winter is Dec, Jan, Feb. Spring is the next 3 months, etc. Note: the seasons are not astronomically correct. Date={YYYY.MM.DD|MM.DD|DD} ... Summary: Plays a page/mag based on the date Where YYYY is the year, MM is the month and DD is the day of the month. You may also use "last" for DD. Multiples are allowed on the command line but not supported by the GUI. Examples: Date=13 - play every month on the 13th Date=last - play the last day of each month Date=12.15 - play every year on Christmas Date=2010.10.10 - play only on a single date Occasion= Summary: Knows many special occasions. Supported s are: NewYearsDay, TeslaDied, HalBirthday, ElvisBirthday, RobbieBurnsDay, GroundHogDay, Valentines, LeapDay, PiDay, IdesOfMarch, StPats, VernalEquinox, AprilFools, UsTaxDue, CanadaTaxDue, EarthDay, CincoDeMayo, BobMarleyDay, JeanBaptisteDay, CanadaDay, IndepDay, TelsaBorn, Halloween, RememberanceDay, VeteransDay, XmasEve, Xmas, BoxingDay, NewYearsEve, Easter, Friday13. If you know of an occasion that occurs on the same month and day of month every year that we haven't included - let us know. UN= Summary: Play a page/mag on special U.N. days. The United Nations has declared certain days as "observances". For example, to play a page on World Health Day do this: UN=World Health Day. Of course, our favorite is World Television Day. See the GUI for a full list of observances available. Our source is the U.N. website at http://www.un.org/Overview/observ.htm Once={1|0|yes|no} Summary: Rename after playing once. Once ensures that a page or magazine will only run once by renaming it to .old after its been played. The option enables or disables the plugin ("Once=no" does nothing) MaxPlay= Summary: Limit the number of times a page plays. This plugin only works for XML pages. The default is one time. This plugin ensures a given content of a page will not play more than a maximum number of times. It compares the current content (ie the s) and video file (ie ) of the XML page with the content/video file that was in previous plays. Moon=[] [] [] [] Summary: Play a page/mag based on the phase of the moon. Where: is the number of days since a new moon - e.g. "day10" is one of New, FirstQuarter, Full, LastQuarter is either Waxing or Waning is either Crescent or Gibbous All s are one day events. The moon is either waxing or waning when it is not full or new. The moon is either crescent or gibbous when its waxing or waning. You can specify one or several of the options. Examples: Moon=Full - is it a full moon? (every ~29.5 days) Moon=Waxing - moving a from new to a full moon Moon=Waxing Crescent - waxing and crescent shape Moon=FirstQuarter - a 1/4 sliver (every ~29.5 days) Sunspot= Summary: Play based on predicted sunspot level Where: is a number between 0 and 150 representing the minimum required sunspot number (ie number of sunspots). Sunspots have an appropriately 11 year cycle. When strong they can interfere with satellite communication. LowDisk= Summary: Play a page/mag when disk space is low. You specify the number of megabytes which is considered low. E.g.: LowDisk=5 - play when there is less than 5 megabytes of free disk space on drive C:. You can design a page that displays a discrete overlay - like a single pixel red dot in the corner - that's only displayed when diskspace is low! (Note that LowDisk uses the "computer" meaning of a megabyte: 1,048,576 bytes.) OneIn={ | % } Summary: Play randomly. If you want a page to have 1 in 10 odds of playing each time MediaShow checks it specify: OneIn=10 Alternately, you can state the percent the page/mag should play: OneIn=80% TimeSlot= Summary: Play a TV Guide page/mag according to its timeslot TV Guide pages are named TV?0900?.pge[.xml] where 0900 is the time the page is valid for. A timeslot a half-hour period. If we want a page with 9:00 in its name to play in the 9:00-9:29 timeslot we would code: TimeSlot=0 0. If we want this same page to play from 8:50-9:20 we code: TimeSlot=10 0. Here 10 minutes are added to the current time making it start playing 10 minutes "early". To play the pages for the next timeslot code: TimeSlot=0 1. Typical use: TimeSlot=10 0 - what's on TimeSlot=0 1 - coming up You may optionally specify a range for the either number, for example: TimeSlot=10 0..5 - what's on in the next 5 slots Negative numbers are permitted. Finally, for those really tricky situations you can tweak the time of the page: TimeSlot=minutes -25..25 This will play the page 25 minutes before the time in the filename to 25 minutes after the time in the filename. You can specify multiple minute ranges. Expire= Summary: stop playing a page/mag after a certain point in time. A typical use is to stop sports scores from playing after 11am on the day after the game. So if today is 1997.12.04 and we want this page to stop playing tomorrow at 11am we code: Expire=2020.12.05 11:00:00:00 Target=[-host= -userid= -password= -creds=] Summary: play something else (possibly remotely) while this plays. This is the same as the target page that can be specified in a page except this plugin supports remote targets. Also supports target magazines. TargetExpire= Summary: play the target page until the specified date/time. Does NOT change whether the base page plays or not. TargetExpire=2020.12.05 11:00:00:00 c:\digimation\pages\TutorialTitle\Intro.pge.xml RunDuration=HH:MM:SS:FF Summary: Stop playing a certain duration after the file was created. For example to stop playing 30 minutes after a page was created: RunDuration=00:30:00:00 Absolute= Summary: Play a page/mag between two absolute points in time. Regular date and time ranges in page/mags are still processed. Example: Absolute=2007.12.05 11:00:00:00 2007.12.06 10:59:59:29 ShowMinute={|odd|even|all} ... Summary: play only in the given minute(s). This plugin works like the old MediaShow command SHOW_MINUTE=nn. Example: ShowMinute=0 10 20 30 40 50 Play only on the hour, ten minutes past, etc. ShowMinute also supports "even" for minutes that are divisible by two and "odd" for minutes that aren't. So: ShowMinute=even 1 2 3 4 5 6 7 8 9 Will play then first 10 minutes of every hour and even minutes Hour={|odd|even|all} ... Summary: play only in the given hour(s) Options are the same as ShowMinute - above. Weekday={|} ... Summary: play based on the day of the week This plugin works like the magazine attribute MAG_DAY but the syntax is more general. Examples: Weekday=sun - play only on Sundays Weekday=sat sun - play only on weekends Weekday=7fh - play every day (assembler-style hex) Weekday=0x7f - play every day (C-style hex) Weekday=0x02 tue 04H - combining the above Weekday=Workday - Monday to Friday inclusive Weekday=Weekend - Saturday and Sunday Weekday=All - every day Week=[-] [-s