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.
10/17/2011 12:56:08 PM
Gravatar
Total Posts 21

Using JPlayer in mojoPortal

Is there any documentation regarding using jPlayer within mojoPortal? It looks like the jplayer scripts are included within the Web/ClientScripts directory, so I'm guessing there is an easy-ish way of adding videos to the site.

 

Thanks

10/18/2011 11:20:27 AM
Gravatar
Total Posts 18439

Re: Using JPlayer in mojoPortal

No, there isn't.

You can easily include the main script

mojoBasePage basePage = Page as mojoBasePage;
basePage.ScriptConfig.IncludejPlayer = true;

but you would have to wire up your own instance of the player and setup the videos.

The only work I have done is I made a jPlayerPanel control that can wire up jplayer for any links inside the panel that end with .mp3

I was only working on mp3 files at the time for use in WebStore for playing the teaser files if selling mp3 downloads.

The control could be evolved to support more media types or you could make your own control borrowing some code from there.

Best,

Joe

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

Re: Using JPlayer in mojoPortal

I know this post is a few weeks old, but I just finished an initial version of a Media Player feature for mojoPortal that implements jPlayer. I have made it open source, so feel free to use it and extend it as needed. Please also provide me with any feedback. I have a number of ideas of ways to enhance it, but right now it works for my needs. If I find that it gains an audience I will be more than willing to help keep it up to date and add new features.

All of the details are available at: http://www.doan.me/media-player.aspx

11/13/2011 8:19:07 AM
Gravatar
Total Posts 18439

Re: Using JPlayer in mojoPortal

Hi Kerry,

Looks good! For now I've added it to the community downloads page to make it easier to find. When I get some time I will evaluate it for possible inclusion in mojoPortal.

Thanks for sharing your work with the community!

Best,

Joe

11/13/2011 1:54:07 PM
Gravatar
Total Posts 125

Re: Using JPlayer in mojoPortal

It's a very useful feature. I tried it on my local machine and it throws an error. I was wondering whether you can include the code behind (.cs) files in the download package. 

Thank you very much!

 

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

Re: Using JPlayer in mojoPortal

Thanks Joe!

Wei Le,

Can you please provide more details on the error that you are getting? What type of data base? What steps were you performing?

The source code can be found at: https://bitbucket.org/kerrydoan/media-player-for-mojoprotal/overview

11/13/2011 3:15:53 PM
Gravatar
Total Posts 125

Re: Using JPlayer in mojoPortal

Thank you for the nick work!

Latest Mojo. MSSQL database.

I can add the feature to page, setup the file and edit the track. the error shows up when I finish edit the track and switch back to the player. Here is the details:

e remote server returned an error: (404) Not 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.Net.WebException: The remote server returned an error: (404) Not 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:


[WebException: The remote server returned an error: (404) Not Found.]
   System.Net.HttpWebRequest.GetResponse() +7859156
   System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) +160
   System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +310
   System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext) +164
   System.Xml.Linq.XElement.Load(String uri, LoadOptions options) +128
   Doan.MediaPlayer.UI.MediaPlayerControl.AddSkin() +54
   Doan.MediaPlayer.UI.MediaPlayerControl.Page_Load(Object sender, EventArgs e) +227
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064

 

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

Re: Using JPlayer in mojoPortal

It sounds like it is not finding the XML file that helps define what jPlayer skin to utilize. Here is the code it is complaining about:

XElement skin = XElement.Load(SiteRoot + "/Doan_MediaPlayer/jPlayer210/Skins.xml").Descendants("Skin").FirstOrDefault();

Can you verify that the file it is looking for exists?

Otherwise, if you can help identify why it would not be finding that file on your local system that would be great.

Thanks!

Kerry

11/13/2011 3:46:30 PM
Gravatar
Total Posts 125

Re: Using JPlayer in mojoPortal

It all works now. I forgot to copy the skin.xml file. My fault!

 

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

Re: Using JPlayer in mojoPortal

Whew!.. okay good! Glad we got if figured out. Hope you enjoy and please let me know if you have any suggestions. Thanks!

Kerry

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

11/17/2011 11:04:05 AM
Gravatar
Total Posts 18439

Re: Using JPlayer in mojoPortal

Hi Kerry,

Thanks! I've got the latest from your repository. I'll do my best to get this into this month's release but have a couple of other things I need to finish first. I'll make sure I pull the latest changes again just before I start working on it in case you update anything else.

Best,

Joe

12/1/2011 9:42:54 AM
Gravatar
Total Posts 18439

Re: Using JPlayer in mojoPortal

Hi Kerry,

Sorry everything took longer for this release than anticipated so I didn't get to this in time. I'll definitely get to it soon and then there will be more time for you to review it after its in the repository so we can make sure it is really polished for the next release.

Best,

Joe

12/1/2011 9:51:00 AM
Gravatar
Total Posts 58
"Digg-in yourself to achieve excellence!" Follow #GPsays

Re: Using JPlayer in mojoPortal

Hi Joe,

Happy to see the launch of our MojoPortal v2.3.7.5, with a great applause and im not worried that i missed my piece of cake for this launch but still proud to be a part of the user team and a consultant too. Kudos & thanks once again.

 

--

Regards

Guruprasad Balaji

12/1/2011 8:56:01 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,

No problem that it did not make it in to this release. It will give us some time to make it more "usable" from a Core mojoPortal feature. The biggest thing lacking that is see from a Core mojoPortal feature is skinning options. I would like to supply more color options for the base Blue Monday and Pink Flag skins that are available from the jPlayer website. The main issue is that the skinning community for jPlayer is not real broad at this time. The skins come with PSD files so they should be easy to update, but graphic arts is one area I stay away from. So I need assistance with this.

Is there anyone in the mojoPortal community that would be willing to create a few more color options from the PSD files?

Secondly, once we have some more options, I assume it would be nice to allow the skin/color for the Media Player to be set via the style.config file of a mojoPortal skin versus the xml file and specific code that I have currently implemented. With that in mind, I would just look for a bit of guidance from you for the best way to implement and get these changes checked in. This may be more of an offline conversation that we can have when we get some more skin options.

Let me know if you have any other thoughts...

Thanks!

12/1/2011 10:04:09 PM
Gravatar
Total Posts 58
"Digg-in yourself to achieve excellence!" Follow #GPsays

Re: Using JPlayer in mojoPortal

Hi Kerry,

Im happy for your new feature haaving a media player on mojoPortal, which was a longtime dream for many including me. You've done a great job Kerry. I'm a serious fan and have reputed mojoPortal to greater extent to other to use it and also have been working since its versions in the early 2009. Im a designer too. Lemme know how i can help or be a part in this media player design stuff. Kindly dont hesitate to contact me, you're always welcome. Thanks to Joe once again...I Love MojoPortal always. :-)

 

--

Regards

Guruprasad Balaji
Skype: GuruprasadMe

12/2/2011 7:20:09 AM
Gravatar
Total Posts 18439

Re: Using JPlayer in mojoPortal

Hi Kerry,

One of the things I would like to change is how the jplayer skins are applied so that changing the skin only requires changing a CSS class on the container element. By using the container element class as part of the CSS selectors that should allow having multiple skins in the same css file. So we could have a css file that contains multiple jplayer skins and this could be added from style.config, or if a user wants to have leaner css they could use a custom css file with just the one skin they want. The skin name could basically be the class name that we add on the container and we can make that something that can be set from settings. Once this is integrated into mojoPortal we will definitely need to include the css by default in the skins we ship and add instructions in the sticky thread about important skin changes to explain how to update existing skins.

I'll begin the integration steps in the next few days and let you know once it is in our repository.

Guruprasad,

That would be great if you can help Kerry with the graphics work to make additional skins for jPlayer. I have no graphic skills either so it would be great if you have such skills and are willing to help.

Best,

Joe

12/6/2011 11:03:31 AM
Gravatar
Total Posts 81
Website Hobbyist and Software Engineer
Proud member of the mojoPortal team
www.doan.me

Re: Using JPlayer in mojoPortal

Sorry for posting this here, but Guruprasad, did you get the message I sent to you via your website?

12/6/2011 2:31:05 PM
Gravatar
Total Posts 18439

Re: Using JPlayer in mojoPortal

Hi Kerry,

The initial integration is complete and this is now in our source code repository. I've sent you an email with additional information.

Thanks for your great work on this! It will be a really nice addition that I'm sure a lot of people will use. Probably will release a new version of mojoPortal with this by the end of the month.

You can also see it in action on our demo site.

Best,

Joe

12/12/2011 1:07:39 PM
Gravatar
Total Posts 355

Re: Using JPlayer in mojoPortal

Joe/Kerry,

Hi! I decided to pull down the latest build to see how this is working, and I noticed a bit of oddness when a video's sent into full-screen mode. The control bar will appear/disappear until the video is started, but after that, it won't display again. I've been trying to figure out where the difference is between the demo on demo.mojoportal.com, and what's in the repository, but no joy. Maybe this will ring a bell for one of you?

12/12/2011 1:22:54 PM
Gravatar
Total Posts 81
Website Hobbyist and Software Engineer
Proud member of the mojoPortal team
www.doan.me

Re: Using JPlayer in mojoPortal

Hi,

Yes, Joe and I had a separate offline discussion about this same thing. In my initial version I had hid the full screen button as during my testing I experienced similar issues with some browsers. Joe pointed out that on the jPlayer website there is a configuration file to hide the button from the browsers with known issues. They kind of advertise that their default settings cover all of the browsers that they know about. So with that knowledge he added it back in.

Are you saying that the full screen works for you when view the Video player on the demo site, but not on your local instance? What browser and version are you viewing the Video player with? Any extra info you can help provide would be appreciated so that we can hopefully find out more info about how to best account for full screen. Thanks!

Kerry

12/12/2011 1:35:06 PM
Gravatar
Total Posts 355

Re: Using JPlayer in mojoPortal

Yes; when I access the media player demo on demo.mojoportal.com, I can click the "full screen" icon, and the "jp-gui" controls section will behave as expected - appearing on mouseover, and then fading out after a designated time period. It continues to behave as expected once the video begins to play.

On my local installation, it behaves until the video starts - then the controls don't come back.

I've tested this on Firefox (7, I believe), and Chrome 13.0.782.218 - the behavior is consistent on both browsers between the environments. No error messages in Firebug - it just seems that the mousemove event isn't fired on the local version. 

I'll try pulling down the exact same video, to see if it's a format issue, but it doesn't seem that likely, as when I manually set the display to "block" via firebug, it appears appropriately. I've also tried various skins, including the new 3.1 skins - no joy.

12/12/2011 2:01:55 PM
Gravatar
Total Posts 18439

Re: Using JPlayer in mojoPortal

I suspect it might be a skin specific/CSS issue since it works for you on the demo site. I would try using different skins on your local machine and see if they all produce the same result. If it turns out ot be skin specific then I would try to isolate the problem in CSS by chopping things out till I found it. I'd start chopping out files from style.config to find which file, then start commenting things out in the CSS to isolate the specific CSS that is causing the problem.

Hope that helps,

Joe

12/12/2011 2:50:33 PM
Gravatar
Total Posts 355

Re: Using JPlayer in mojoPortal

It's not skin-specific; I'm using the styleshout on local that's currently in use on demo.mojoportal.com - I've also checked other skins on demo.mojoportal.com, as well as locally, with the exact same results. I've tried this with an upgraded project, as well as with a fresh install - same thing occurs. 

Another small bit of weirdness; when you upload a new video, you have to exit the upload screen and come back to add it to the video player. If you try to select it after the upload, all it does is reload the file upload screen. It only happens when uploading a .flv file, BTW - the Buck Bunny .webm file uploads and allows selection as expected. However, it won't play in the player.

Bear in mind that this testing is on localhost, inside a VS2010 project. Is there anything that might be affected by that?

12/12/2011 3:10:57 PM
Gravatar
Total Posts 81
Website Hobbyist and Software Engineer
Proud member of the mojoPortal team
www.doan.me

Re: Using JPlayer in mojoPortal

As for your last question about the webm format... taking a guess from stuff I I have read on jPlayer. Either the browser you are using does not support playing it and/or the localhost server does not specify the MIME type for that extension. Thinking about that, I am going to add a couple of "trouble shooting" tips as these are potential issues that go beyond mojoPortal.

I have been able to get the full screen controls to work via localhost (VWD 2010) on Chrome and Firefox. But I get issues with it not working on IE (for localhost as well as via the mojoPortal demo site). So, in short I am not having the differences between the two locations like you are having.

I also know that Joe has also identified the issue with the selecting of the file after upload. I am sure he has or will be working on it for next release.

I will keep playing and experimenting too, but if you find anything else out that would be greatly appreciated.

Thanks!

Kerry

12/12/2011 3:19:11 PM
Gravatar
Total Posts 355

Re: Using JPlayer in mojoPortal

I realized that I haven't upgraded to VS2010Sp1, so I'm doing that for now, to see if that'll remedy the mime type issue, as the browser will play the video quite happily if it's just dropped into the browser window.

Once I've finished the updates, I'll start testing with different file formats, to see if there are differences in behavior based on file type. Troubleshooting, FTW!

12/12/2011 3:32:34 PM
Gravatar
Total Posts 18439

Re: Using JPlayer in mojoPortal

For the file selection issue, I actually already fixed that, it wasn't working for any file types before after uploading, I'm not sure why it would be any different for .flv but I'll look into it.

As far as the mime types for files like webm I added stuff to Web.config in the system.webServer section for that but it may only apply when using IIS rather than the VS web server. Are you using the latest web.config from the repository?

Another possible factor about the full screen could be if you are not using the same Web.config as me (ie the latest copy from the repository) then you may be using a different version of jQuery. Worth a try eliminating that as a possibility, I'm using the very latest version. The version is configured in Web.config.

Hope that helps,

Joe

12/12/2011 3:43:50 PM
Gravatar
Total Posts 355

Re: Using JPlayer in mojoPortal

I downloaded the latest from the repository as of about midnight last night, so barring any changes in the past 12 hours, I've got the latest. Checking JQuery version was one of the first things I did, as I ran into that with an upgrade last week for an older client site.

I'll keep testing, to see if I can identify a pattern. I really appreciate the work that's been put into this; I'm still going to have to implement something different for my client's needs, but this shows me a lot already in action. Thanks!

12/12/2011 8:43:58 PM
Gravatar
Total Posts 355

Re: Using JPlayer in mojoPortal

Allrighty then: upgraded VS2010 to Sp1, enabled IIS Express 7.5, and ran local; was then able to run the .webm extension files without any issues in full-screen, behavior as expected. Tried with .flv file, and the full-screen borked again. File upload/select now seems to be working without the 2-step procedure.

12/13/2011 10:13:44 AM
Gravatar
Total Posts 81
Website Hobbyist and Software Engineer
Proud member of the mojoPortal team
www.doan.me

Re: Using JPlayer in mojoPortal

Doing some research on full screen on the jPlayer Google Groups page. Here are some links to things that may be affecting how the full screen works as well:

https://groups.google.com/forum/#!searchin/jplayer/full$20screen/jplayer/eYsY8Gz0rvw/EGNfIqWx5qAJ

https://groups.google.com/d/msg/jplayer/rdWPvU4GpB8/4Ln3wCPYPUYJ - Read the few posts just below this one too.

In these posts they start talking about flash stuff that starts going above my head. I know we are always learning, so I am sure I will continue to learn more about this stuff, but if any of this makes more sense to you, please let me know, especially if they are notes that skin developers may need to know, or if we need to change the Audio/Video Players to better account for certain scenarios. Also, if any of the changes you need to make for your client would make sense for the Core Feature, that would be great as well.

Thanks again!

Kerry

12/13/2011 5:21:49 PM
Gravatar
Total Posts 355

Re: Using JPlayer in mojoPortal

Glad to know it's not just the mojo implementation. This client has some specific UI requirements that wouldn't make sense in a general plugin, but one thing I might suggest is this.

Currently, the video player plugin allows file upload to any folder, so even if the player instance is secured using mojoPortal security, the video file can be accessed directly, bypassing the security protocols. I'm looking at using an httpheader/httphandler approach to ensure that the only persons who can access the files are authorized by built-in rights and roles. Not sure if it's better to limit the file placement on the server, or just use the custom headers for video file types site-wide. Still thinking through my approach, deciding the best route to take.

12/14/2011 8:28:06 AM
Gravatar
Total Posts 18439

Re: Using JPlayer in mojoPortal

We've made no claim that these features provide security for the media files. It is no different than the image gallery features in that regard. If someone knows the url to the media they can get it.

Theoretically it might be possible to secure the files in a similar fashion as the shared files feature such that the files are stored on disk with a .config extension so they cannot be downloaded just by knowing the url, and then use an .ashx handler url for the files that checks the role permissions and writes the file to the response stream if the user has permission. But I'm not sure how that may impact the streaming and playback of the files, probably it would work but it would need testing, with larger video files it may choke and with lots of video traffic that approach would probably add a bit of load on the server vs just letting IIS serve the file.

But that wasn't really a goal for this just as it wasn't a goal for the image gallery features. The goal was just to make it easy to have audio and video in one's site.

I'd consider trying that as a possible future enhancement but it should be optional such that a setting can indicate if the instance is supposed to use secured files and then we'd have to figure out how to handle it if the setting is changed after files are uploaded.

Maybe you can clone it and modify it for your needs and if it works well let us know and we could consider integrating the changes back into it.

Best,

Joe

12/14/2011 8:50:08 AM
Gravatar
Total Posts 355

Re: Using JPlayer in mojoPortal

That's pretty much my game plan. I use something similar for my MegaGallery to ensure formatting and watermarking of all images, though until this week, I hadn't thought about applying it to security of the files as well (add another item on the worklist). Like I said, this client has very specific needs, but I can see the secured aspect being applicable to anyone wanting to monetize their content. That's actually a pretty popular trend with certain markets, so it's not bad to be able to support it.  

I see where you're coming from about wanting the security to be toggled, but I don't want to add another layer of access complexity in addition to rights/roles - at least, not for this client. YMMV. I'll let y'all know how it works - thanks!

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