Mojo Extendability - Audio/Video

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/27/2009 8:12:53 AM
Gravatar
Total Posts 2

Mojo Extendability - Audio/Video

Hello to all. I am new to Mojo, but not new to development. I am looking for a good CMS to use setup websites for musicians and bands. I just wanted to see if Mojo can be extended to embed say the JWPlayer(http://www.longtailvideo.com/) so musicians/artists can upload audio, and also the possiblity of embedding hosted video.

I am looking to learn the in's and out's of the framework and extend it, I would just like to make sure this is possible before diving in!

Thanks,

Eric

6/27/2009 10:14:57 AM
Gravatar
Total Posts 18439

Re: Mojo Extendability - Audio/Video

Looks pretty trivial to integrate in my opinion, its just some javascript and flash files.

I would add this to the layout.master file of your skin with a coorect url to the js of course. Actually we have a version of this at /ClientScript/swfobject.js, not sure how up to date it is.

<script type='text/javascript' src='swfobject.js'></script>

Then you could easily embed the player in the html module using source view of the editor and pasting in the embed code

<p id='preview'>The player will show in this paragraph</p>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','400','300','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=video.flv');
s1.write('preview');
</script>

obviously you would need correct urls for the player.swf and video.flv files

Hope it helps,

Joe
 

6/27/2009 11:43:53 AM
Gravatar
Total Posts 2

Re: Mojo Extendability - Audio/Video

Awesome. Thanks for the quick response. I am definately going to give Mojo a run. I will let my thoughts be known!

You must sign in to post in the forums. This thread is closed to new posts.