Using JPlayer in mojoPortal

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.
11/13/2011 4:56:11 PM
Gravatar
Total Posts 125

Re: Using JPlayer in mojoPortal

I just download your sources code, it complies and run well  when I add the first feature and play a mp3 files. 

I installed a second feature, try to add a video file and it shows an error "No Matching Audio File Extension Found", although I choose the file type is "Video". It seems "Video" type is also treated as " Audio" type. It might be a cache problem in my local machine? Anyway, I just let you know. here is the message: 

No Matching Audio File Extension Found

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: No Matching Audio File Extension Found

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[Exception: No Matching Audio File Extension Found]
   Doan.MediaPlayer.UI.MediaPlayerControl.ComposeAndRegisterPlayerInstanceScript() +2651
   Doan.MediaPlayer.UI.MediaPlayerControl.Page_Load(Object sender, EventArgs e) +366
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237

11/13/2011 8:41:37 PM
Gravatar
Total Posts 81
Website Hobbyist and Software Engineer
Proud member of the mojoPortal team
www.doan.me

Re: Using JPlayer in mojoPortal

Good find. You  found an error where I did not account for all of the media types and extensions. It will take a little bit of re-work for me. I will post back here when I have a new version.

Sorry for running into a bug, but thanks for finding it for me.

Kerry

11/14/2011 4:29:44 AM
Gravatar
Total Posts 133
J

Re: Using JPlayer in mojoPortal

Interesting and potentially useful - you state that it requires MSSQL2008 - is that because you haven't tested with MSSQL2005 or is it really incompatible?

J

11/14/2011 9:00:45 AM
Gravatar
Total Posts 81
Website Hobbyist and Software Engineer
Proud member of the mojoPortal team
www.doan.me

Re: Using JPlayer in mojoPortal

J,

Yes, I state MSSQL 2008 because that is what I have, and what I have tested with. I created the database generation scripts in MSSQL 2008 with the option for compatibility with MSSSQL 2005 so I would see no reason why it would not work. I think I will change some of the verbiage on my web site to better state what I mean.

Also, if you give it a try on 2005 and it works, can you please just let me know. Thanks!

Finally, I should have a fix for the bug that Wei Li found some time later tonight, so it should be available for download by tomorrow morning.

Thanks!

Kerry

11/14/2011 10:56:18 PM
Gravatar
Total Posts 81
Website Hobbyist and Software Engineer
Proud member of the mojoPortal team
www.doan.me

Re: Using JPlayer in mojoPortal

Okay, I have a new version (0.1.0.1) available.

Wei Li,
I believe this will fix your error with your video file. If not, please let me know the extension of the video file that you added to the player and I will investigate further.

Thanks!

Kerry

11/16/2011 7:30:22 AM
Gravatar
Total Posts 18439

Re: Using JPlayer in mojoPortal

Hi Kerry,

I think this feature would make a nice addition to be bundled into the mojoPortal.Features set of projects. I'm thinking of cloning it and implementing the other data layers so it could be integrated. There are also a number of changes I would make if I were to integrate it and I wonder if you'd be interested in making some of the same changes so that there would be less for me to change?

The specific items are:

  • better localization. There are hard coded strings in places like AudioPlayerControl.ascx like for play, pause buttons etc. These should be replaced with <asp:Literal controls and assigned from resources in code behind.
  • file system access should be done using our new file system abstraction layer instead of directly using system.IO. See any of our existing features for example code as all of them have been updated except for Folder Gallery which because of the way it works would be very difficult to change.

Best,

Joe

11/16/2011 8:38:59 AM
Gravatar
Total Posts 81
Website Hobbyist and Software Engineer
Proud member of the mojoPortal team
www.doan.me

Re: Using JPlayer in mojoPortal

Joe,

I would be happy to help make some of the changes. The localization changes would be easy to implement (and kind of disappointed in myself for not catching those when I was building it) and should have those shortly. I can definitely look into the file system access changes, but assume that is a little more involved, so I am not sure when I might be able to complete those changes (especially with the busy holiday season coming up quickly). Is there a specific timeframe you are targeting to release the next version of mojoPortal?

Thanks!

Kerry

11/16/2011 8:46:32 AM
Gravatar
Total Posts 18439

Re: Using JPlayer in mojoPortal

Hi Kerry,

Our release cycle is usually about once per month and I plan to make a release before the end of November, but its no problem if this doesn't make it until a later release especially since people can get it now from your site if they are eager for it.

The file system changes shouldn't be too difficult once you see how it is done in other features but if you'd rather I tackle that its fine with me also, I'm sure I could make those changes in about 15 minutes so it isn't a big barrier.

Best,

Joe

11/16/2011 9:00:32 AM
Gravatar
Total Posts 81
Website Hobbyist and Software Engineer
Proud member of the mojoPortal team
www.doan.me

Re: Using JPlayer in mojoPortal

Joe,

I don't mind working on the file system changes as I would like to learn more about it, but I didn't know if you had a target timeframe in mind to get it implemented. I will let you know when I have the changes made.

Thanks!

Kerry

11/16/2011 9:13:34 AM
Gravatar
Total Posts 18439

Re: Using JPlayer in mojoPortal

Hi Kerry,

Its possible that I might be able to get it into this month's release if you get those changes done soon. My plan is to clone it and change the namespace and table prefix and resource file names and feature guid so it won't clash with any installations where users have already installed your current version. I don't think it will take me more than a few hours to implement the other data layers. 

Once it lands in our repository if you still want to evolve it further I can give you commit access.

But no pressure at all, if it doesn't make it into this release it can make it into the next one.

Best,

Joe

11/16/2011 10:43:52 PM
Gravatar
Total Posts 81
Website Hobbyist and Software Engineer
Proud member of the mojoPortal team
www.doan.me

Re: Using JPlayer in mojoPortal

Joe,

I believe that I have made all of the changes you suggested. Localization is complete and I removed all use of System.IO with the exception of Path.GetExtension(). I left in the use of Path.GetExtension() because I could not find an alternative and I saw that it was also used in features like Shared Files. All of these changes are checked in to my repository on BitBucket so all you would have to do is perform an update if you would like to review the changes.

I do have ideas (which I would like to discuss here in the forums sometime soon) for evolving it, so I would like to have commit access to be able to do that in the mojoPortal repository. Just let me know....

Let me know if you have any more feedback.

Thanks!

Kerry

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