ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

New Plugin: MC Player (implementation of the JW HTML5 Media Player) (Beta, EE1 + EE2)

September 22, 2011 1:03am

Subscribe [6]
  • #1 / Sep 22, 2011 1:03am

    I’ve been working on a plugin implementation of the JW HTML5 Media Player, and it’s at the point where I’m ready to move it from alpha to beta, and have the community tear it apart. :p It’s basically a port of this page into an EE plugin, so you don’t have to worry about javascript syntax and can easily construct the player with weblog/channel tag outputs. :p

    Download MC Player 0.1   0.2.1   0.2.2  0.2.3  0.2.4  0.2.5

    Simple Demo

    Once it’s been approved on Devot:ee, I’ll link to the page there for the support forums. EDIT: Here we go: http://devot-ee.com/add-ons/mc-player., but for now, just email me with any questions/comments/bugs/etc ([REDACTED]).

    The usual beta product disclaimers apply - essentially, don’t use it in a production environment.

    I’ve tested the basic functionality of the plugin quite a bit, but the more advanced JSON/XML/mRSS playlists, levels, plugins, modes, and that sort of stuff could use some more pounding on. Specifically, if anyone has the ability to test with an RTMP provider, I’d be much obliged.

    Depending on demand, I might end up making this a commercial add-on. If that happens, I’d definitely figure out fair compensation to anyone who contributed meaningful feedback during the beta phase, probably in the form of a free license. 😊

    The readme has code examples for most scenarios; again, they basically are the “EE Code” equivalent to the Javascript examples here. The simplest example looks like this:

    {exp:mc_player:play file="video.mp4" width="480" height="270" playerpath="/path/to/player.swf"}

    Enjoy!

  • #2 / Jan 30, 2012 11:57am

    ErwinVanLun

    235 posts

    Hi Michael,

    Any news on this one? Looks very useful!

  • #3 / Jan 31, 2012 6:02pm

    Michael C. (KKCJ)

    100 posts

    EDIT Gah, wrong login.

  • #4 / Jan 31, 2012 6:03pm

    Hi Erwin,

    Development is slow, primarily due to my paying job requiring most of my time. The usual story, I suspect.  I’m also having to juggle with trying to maintain versions for both EE1 and EE2.

    Regardless, it’s freely available to download from Devot:ee or Github. Was there a specific aspect or feature that you’re were looking for?

  • #5 / Jan 31, 2012 6:10pm

    ErwinVanLun

    235 posts

    we have a custom build SAEF module where we’ll user to upload audio to our server (having a progress bar etcetera). Once uploaded, they should see an EE tag in their text. Once published (or in preview mode), it will appear as a player. File location, shape of the player etc should be totally transparent to the user.

  • #6 / Feb 01, 2012 2:59am

    jeramiah

    301 posts

    Having an issue with some errors after I installed this plugin in EE 1.7.1

    Notice: Undefined variable: script in /www/eh15jj/html/system/plugins/pi.mc_player.php on line 473 Notice: Undefined variable: playlist in /www/eh1jj/html/system/plugins/pi.mc_player.php on line 500 Notice: Undefined variable: script_end in /www/eh1jj/html/system/plugins/pi.mc_player.php on line 557

    And I’ve ensured the plugin is installed and that I have this in my header: (had to remove the S in script:

    <cript type='text/javascript' src='/player/jwplayer.js'></cript>
    <cript type="text/javascript" src="/player/swfobject.js"></cript> 
     
    
    {exp:mc_player:play file="{event_video}" width="400" height="302" playerpath="/player/player.swf" image="/flvplayer/player.jpg"}

    The player is showing up as well as the image and plays the video just fine, just that it throws errors at the top.

  • #7 / Feb 05, 2012 2:58pm

    we have a custom build SAEF module where we’ll user to upload audio to our server (having a progress bar etcetera). Once uploaded, they should see an EE tag in their text. Once published (or in preview mode), it will appear as a player. File location, shape of the player etc should be totally transparent to the user.

    You can use the audio tag format to achieve the user-transparency aspect of things - it automatically assigned a height to the player so that only the seek bar is visible, not the “video” window part.

    {exp:mc_player:play file="song.mp3" width="320" height="0" playerpath="/path/to/player.swf" container_tag="audio" controlbar="bottom"}

    As for the rest, it sounds like you should look into this: http://ellislab.com/forums/viewthread/120427/

    Having an issue with some errors after I installed this plugin in EE 1.7.1

    Notice: Undefined variable: script in /www/eh15jj/html/system/plugins/pi.mc_player.php on line 473 Notice: Undefined variable: playlist in /www/eh1jj/html/system/plugins/pi.mc_player.php on line 500 Notice: Undefined variable: script_end in /www/eh1jj/html/system/plugins/pi.mc_player.php on line 557

    And I’ve ensured the plugin is installed and that I have this in my header: (had to remove the S in script:

    <cript type='text/javascript' src='/player/jwplayer.js'></cript>
    <cript type="text/javascript" src="/player/swfobject.js"></cript> 
     
    
    {exp:mc_player:play file="{event_video}" width="400" height="302" playerpath="/player/player.swf" image="/flvplayer/player.jpg"}

    The player is showing up as well as the image and plays the video just fine, just that it throws errors at the top.

    I’ve duplicated this locally and am working on it. FYI, the swfobject.js line is unnecessary.

  • #8 / Feb 05, 2012 10:13pm

    jeramiah

    301 posts

    Right on, thanks for working on this.  It’s a wonderful solution for those of use whom had flv player but can’t use it.

  • #9 / Feb 05, 2012 10:32pm

    I’ve updated the version at GitHub & Devot:ee to 0.2.3; it should resolve any lingering “undefined variable” issues. Please let me know if it works for you. 😊

  • #10 / Feb 07, 2012 3:52pm

    ErwinVanLun

    235 posts

    Thanks Michael!!!!! We’ll check this out asap

  • #11 / Mar 18, 2012 6:33pm

    The plugin has been updated to 0.2.5, with a lot of bug fixes and behind-the-scenes improvements. Please let me know how you fare! 😊

  • #12 / Apr 04, 2012 6:58am

    smcgo4

    36 posts

    Hi Michael

    Thank you for working on this project, it has been very handy for me as I begin to implement a series of help videos for my website.

    Cheers

    Steve

  • #13 / Oct 29, 2013 8:04am

    Etheya

    213 posts

    Hi Michael, great plugin this works brilliant… although I’m having some issues in Safari for some reason or other… its just not showing the images/audio…

    any advice?

    This is the page I’m testing on.. works great in Firefox..

    http://www.gesser-images.com/sounds

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases