www.mediacollege.com | Support Forum
MC Media Player

MC Altair Audio Player

This is an example of how MC Altair can be used as an audio-only player. Note that MC Altair doesn't yet support MP3 (that will come ASAP) so for now you'll need to use an FLV or H.264 file (obviously there will be no displayed video, just the audio part). In future I will develop the audio-only option more—this is just a start.

Dave's/old school..
<!-- MC Media Player -->
<script type="text/javascript">
playerSize = "260x24";
playerFile = "http://www.mcmediaplayer.com/public/mcmp_0.7.swf";
fpFileURL = "http://www.mcmediaplayer.com/red5/audio/piano-01.flv";
fpButtonOpacity = "0";
cpPosition = "0x0";
cpBackgroundOpacity = "100";
cpHidePanel = "never";
cpPlayBtnPosition = "8x4";
cpStopBtnPosition = "30x4";
cpVolumeBtnPosition = "55x2";
cpScrubberPosition = "95x8";
cpCounterPosition = "205x4";
cpRepeatBtnPosition = "310x7";
cpFullscreenBtnPosition = "310x7";
cpInfoBtnPosition = "310x7";
</script>
<script type="text/javascript" src="http://www.mcmediaplayer.com/public/mcmp_0.7.js"></script>
<!-- / MC Media Player -->
Actarus's school..
<!-- MC Media Player -->
<script type="text/javascript" src="js/config/examples/audio.js"></script>
<script type="text/javascript" src="js/mcmp_0.8se.js"></script>
<script type="text/javascript">
mccode(0.8,'MC Altair Audio Player');
</script>
<!-- / MC Media Player -->

Note: I didn't include the auto-repeat button in this demo because I realized the tooltip function gets mangled at these dimensions. I'll deal with that later.

Mp3 support hack (swfsound)

We can handle mp3 with
swfsound (Yes Dave, there is even the flash source code for you to integrate this feature into MC Media player!). I know this is text mode but this is not really a problem as it can be beautified using css.. In the given samples provided on swfsound homepage, I have realized that the integration was not completly done on two things:
  1. Id3 tags for the current music are not shown (as well) In fact, if you look at the only example joined in SWFSound-v1.3, it's buggy so I have fixed it here
  2. No pause button
but I have patched the stream sample to bring them into the daily light and took this o.p.p.o.r.t.u.n.i.t.y to reproduce the play/pause button behavior we have with MC Player Altair.
I got a weirdeness with IE7 that does not accept both MC player and swfsound on this same page (Can not load page Error!) so for the demo, I have no choice (This is surely a onload event conflict somewhere or a leaking memory as you can see in swfobject 2.1 joined with swfsound 1.3, this is not improving...) but to make a separate demo page. Sorry then for this inconvenience, it's not my fault and I don't want to play with this anymore - by the way, you will soon notice in the demo that stop/play event support seems to be broken as well so ID3 is read only once. It's trigered only once on the first play on FF and IE does not even replay the sound as expected.IE issue solved. See by yourself.[UPDATE: I have fixed the IE7 ID3 tag issue as well in the mc3player-2.0!]. All versions are available here. [INFO:Those who want to complete the missing buttons (volume,...) using css/js are welcome!}