This is a Display plugin that gives MC Automation access to javascript in an html page. It uses Internet Explorer to render the html content.
Setup- Shut down MC if it is running.
- Make sure you have the .NET Framework v3.0 installed (should already be the case for Win 7 and maybe Vista).
- Download the attached zip file and extract the contents to a directory.
- Open a Command Prompt (*must 'Run As Administrator' if using Vista or Win 7) and run the following command making sure to include the quotes:
"C:\Windows\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" /codebase "UNZIPDIR\MC.HtmlAutoDisplayView.dll" (replacing UNZIPDIR with the correct directory)
It will give you a warning but the last lines of text must say "registration succeeded" and "Types registered successfully". If it doesn't then you will need to change the paths in the above command to match your setup and try again. - Start MC, start playing some music, open display view, right-click and select "Html With Automation" to see the new display.
The default sample has the following features:
- Playing Now count and time-of-day
- Current track cover art and info text (editable expression)
- Progress bar
- Next track cover art and info text (editable expression)
- Shifts content around screen as a kind of "screensaver" (can be disabled)
- Scales font sizes based on screen height (can be disabled)
To edit much of the behavior (font sizes, info expressions, etc.) open "options.js" in the unzipped folder in a text editor and carefully edit the values. You can also edit "display.css" to modify the styles. If you want a scrollbar so you can see longer text instead of it just being cut off, rename "display.css" to "display_default.css" and rename "display_scrollbar.css" to "display.css".
Custom Display PageYou can, of course, use your own html page created from scratch. It has to be named "display.html" and be located in the unzipped directory. You also need a javascript function named "init" with one argument that is the main MC automation object that can be assigned to a global variable and used later (see the default sample).