Centova Technologies Forum

Centova Cast v2 => Technical discussion => Topic started by: Rick Houghton on February 19, 2011, 10:41:59 am

Title: How do I enable On-demand content?
Post by: Rick Houghton on February 19, 2011, 10:41:59 am
I can see the on-demand content widget but I can't see any media placed in the 'ondemand' folder.  All menu options appear properly set. Why does it not work?
Title: Re: How do I enable On-demand content?
Post by: My Auto DJ on February 19, 2011, 12:17:44 pm
Configure Server >> Start page >> Enable on-demand content widget
Title: Re: How do I enable On-demand content?
Post by: Rick Houghton on February 19, 2011, 01:36:15 pm
Did that.  Still nothing shows up!
Title: Re: How do I enable On-demand content?
Post by: My Auto DJ on February 19, 2011, 01:47:47 pm
Anytime you make a change to the config part, you must restart your server.
Title: Re: How do I enable On-demand content?
Post by: Rick Houghton on February 19, 2011, 02:39:17 pm
Did that. Still nothing.  Is there any way to hack the 'ondemand.js' script to get it to see the playlist directories so my listeners can replay certain shows? That way I wouldn't need to move stuff to the ondemand directory at all.
Title: Re: How do I enable On-demand content?
Post by: My Auto DJ on February 19, 2011, 02:50:15 pm
I think the only files we can edit are the templates -- do your on demand mp3's show up on your start page? http://radio.shoutcastautodj.com/start/twok/
Title: Re: How do I enable On-demand content?
Post by: Rick Houghton on February 20, 2011, 05:40:44 am
Hmmm. How come it works for you?  Everything else in my Cento setup is working fine, except for this ondemand thing.  P.S. where did you get the little player app?
Title: Re: How do I enable On-demand content?
Post by: My Auto DJ on February 20, 2011, 05:50:18 am
LOL, I think it works for everybody! - You must be overlooking something.

Flash player can be included if you edit the config file ...
http://www.centova.com/pages/faqs/display/flash_audio_players_and_centova_88
Title: Re: How do I enable On-demand content?
Post by: Rick Houghton on February 20, 2011, 06:11:32 am
Can you run the mini caster from another web page (i.e. not the centova start page)?
Title: Re: How do I enable On-demand content?
Post by: My Auto DJ on February 20, 2011, 06:25:11 am
Yes, we have added copy/paste code to our clients "quick links" section so they can easily include the flash player in their websites... but keep in mind, this will use up a lot more bandwidth. 

<textarea cols="150" rows="5"><object id="fmp256" type="application/x-shockwave-flash" data="http://yourwebsite.com/radio/minicaster.swf" width="180" height="70">
           <param name="movie" value="http:/yourwebsite.com/radio/minicaster.swf" />
           <param name="flashVars" value="config=http://yourwebsite.com/radio/tunein.php/{$account.username}/playlist.mc" />
           <param name="wmode" value="transparent" />
           <param name="allowScriptAccess" value="always" />
            <div class="stirfry">
            <h4>Minicaster Radio Playhead</h4><p>To listen you must <a href="http://www.macromedia.com/go/getflashplayer/"
            title="Click here to install the Flash browser plugin from Macromedia">install Flash Player</a>. </p></div></object>
  </textarea>
Title: Re: How do I enable On-demand content?
Post by: Rick Houghton on February 20, 2011, 06:53:53 am
Thanks for all your helpful info!  Maybe my problem with the ondemand is that I am not 'publishing' the files properly in the 'ondemand' folder.  I just copied them in via terminal...