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.

Player not working

November 04, 2011 8:02am

Subscribe [2]
  • #1 / Nov 04, 2011 8:02am

    ClubZion

    30 posts

    I have the exact same code in a stand alone page outside of EE as I do inside EE. The one inside EE is not working. They are both on the same server. Can anyone tell me why?

    This one works
    http://clubztoday.org/sermontest4.html

    This one does not
    http://clubztoday.org/index.php?/cz-media/sermons-player-test

    Thanks

  • #2 / Nov 04, 2011 9:11am

    julie p

    282 posts

    Using the developer tools in Chrome, you can see an error. Code in the page that works:

    $(function() {
     
     // setup player 
     $f("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", {
     
      clip: { 
        baseUrl: 'http://blip.tv/file/get',
        
        // this style of configuring the cover image was added in audio
        // plugin version 3.2.2
        coverImage: { url: 'http://clubztoday.org/clubz1.jpg', scaling: 'orig' } 
     }
     
     
      
     // playlist plugin 
     }).playlist("#playlist");
     
    });

    Code in the page that doesn’t, with the following error: Uncaught SyntaxError: Unexpected token }, index.php:131:

    [removed]
    $(function() {
     
     // setup player 
     $f("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", {
     
      clip: { 
        baseUrl: 'http://blip.tv/file/get',
        
        // this style of configuring the cover image was added in audio
        // plugin version 3.2.2
       coverImage:
     }
     
      
     // playlist plugin 
     }).playlist("#playlist");
     
    });
    [removed]

    That should get you there. I highly recommend the developer tools in Chrome, Safari or firebug in Firefox.

  • #3 / Nov 04, 2011 9:36am

    ClubZion

    30 posts

    Thanks, but I’m not sure how to fix it…

  • #4 / Nov 04, 2011 9:42am

    julie p

    282 posts

    You’ll have to fix the error where the coverImage is undefined:

    coverImage: { url: 'http://clubztoday.org/clubz1.jpg', scaling: 'orig' }

    make sure your code has the cover image reference and you should be good to go.

     

  • #5 / Nov 04, 2011 9:58am

    ClubZion

    30 posts

    Thanks, that did it!

    I use safari, where do I get the above mentioned developer tools?

  • #6 / Nov 04, 2011 10:00am

    julie p

    282 posts

  • #7 / Nov 04, 2011 10:07am

    ClubZion

    30 posts

    thanks again

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

ExpressionEngine News!

#eecms, #events, #releases