Video player - adding tracks problem

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
4/22/2012 1:06:06 AM
Gravatar
Total Posts 503
feet planted firmly on the ground

Video player - adding tracks problem

I'm trying out the media/video player, but having trouble loading tracks/files.

I've got a player on a page, and I can go into "Edit Media Player", to "Add Media Track". However, I can find no way to get a new file into the track. I can fill "file location" no problem (browse and upload etc), but I cannot push this file into the "Files Added" section. If I click "Add Track" I get the red warning "Please add at least one file".

I'm having the same problem on the demo site (which, by the way, gives some errors on loading about bad paths).

The help says "Once you have provided a valid File Location, click the Add Selected File link to add the file to the Media Track." but I cannot see any "Add Selected File" link!

I'm probably doing something dumb - help appreciated.

Version 2.3.8.1 MSSQL

ASP.NET Info   v4.0.30319 Running in Full Trust

4/23/2012 8:10:58 AM
Gravatar
Total Posts 18444

Re: Video player - adding tracks problem

Hi,

The "Add Selected File" link is right next to the browse button, but I see it may be invisible in some cases, in artisteer31-green for example the link is white and hard to see. It can be fixed form css by looking for the .buttonlink{} selector in the css and change the color. I will look through the artisteer skins and fiox this for the next release. Once you click thet link the uploadled file is added to the list box, you can add more than one file because you can use more than one video format for the same track. Once it is in th elist box and you add a title and artist name you can then Add Track.

I just tested it on the demo site and it worked for me without errors though the link is hard to see as mentioned.

Hope that helps,

Joe

4/24/2012 12:49:10 AM
Gravatar
Total Posts 503
feet planted firmly on the ground

Re: Video player - adding tracks problem

Hi Joe - OK I see it now, or rather I can kind of feel it with my mouse!  Will change my skin.

However, I'm still getting errors with the player both in my site and on your demo, when used in IE9.  On the demo, when I add a video player and then add the big_buck_bunny_trailer.m4v then when the page loads I get "jPlayer 2.1.0 : id='ct100...etc' : Error! Media URL could not be loaded. Check media URL is valid. Context: /Data/Sites/22/media/big_buck...etc. Same error if I try to play the movie.

Similar error on my site, for a file the definitely exists. In Chrome and FF the page loads OK and I can play the video.

Aside: the track displays with the "jP" graphic in the middle of the player on black background - I'd like the first frame, or a selected frame. Can this be done with jPlayer?

Apologies this was an incorrect diagnosis in fact I can get the same errors in FF and Chr. I'm trying to work out the logic, because at one stage I thought the same page loaded OK in FF/C and failed in IE9. I then added another track, and all started to fail. Some tests...

2 tracks each with multiple files - fails in FF, C and IE

1 track with multiple files fails in all

1 track with 1 file (m4v) works in FF, errors in Chrome and IE.

2 tracks with 2 files each fails in all (the error msg is about the first track).

Lastly - this is inconsistent - I now have FF failing with 1 track and 1 file :-(

 

 

4/24/2012 12:58:20 AM
Gravatar
Total Posts 503
feet planted firmly on the ground

Re: Video player - adding tracks problem

Later... I see the player can display an image, e.g. this example  http://www.jplayer.org/latest/quick-start-guide/step-8-video/

has

$(this).jPlayer("setMedia", { m4v: "http://www.jplayer.org/video/m4v/Big_Buck_Bunny_Trailer_480x270_h264aac.m4v", ogv: "http://www.jplayer.org/video/ogv/Big_Buck_Bunny_Trailer_480x270.ogv", poster: "http://www.jplayer.org/video/poster/Big_Buck_Bunny_Trailer_480x270.png" });

but I can''t see a way to set this in the mojoPortal feature...?

 

 

4/24/2012 8:00:38 AM
Gravatar
Total Posts 18444

Re: Video player - adding tracks problem

Hi,

As far as not playing in IE 9, it seems to be a return of the same problem on this thread where it works only in compatibility mode in IE 9, the problem is not limited to mojoPortal and while I was able to get it working before it seems maybe it broke again from browser updates or something. I do not have an immediate solution for this but will look into it, I keep hoping for an update to jPlayer to solve these problems.

Some problems may also be caused by server configuration of mime types as noted in the jPlayer documentation. Encoding of the files can be a factor as well.

CSS of the skins can also be a factor.

In my testing of our demo site it works fine in Firefox, in Chrome when using the Artisteer skins in Chrome once I go to full screen I can't get back out of full screen. I do get the error you mention in IE 9 but it works if I change to compatibility mode just as in the past on the other thread.

Support for posters was not implemented in our video player but is something we may do for a future improvement.

Wish I had a concrete sure fire solution to offer but I don't.

Best,

Joe

4/26/2012 2:17:26 AM
Gravatar
Total Posts 503
feet planted firmly on the ground

Re: Video player - adding tracks problem

Hi Joe

I think I have sorted out the errors, and it was all about MIME types.  But the symptoms are different in the various browsers.

 By adding all MIME types (w4m, mp4, ogg, ogv, webm)  the errors in FF and Chrome went away. But I was still getting this in IE9 (unless compat mode switched on):...

jPlayer 2.1.0 : id='ctl01_mainContent_ctl01_PlayerInstance' : Error!

Media URL could not be loaded.

Check media URL is valid.

Context: /Data/Sites/1/media/trainingvideos/finding_nemo_teaser.m4v

On closer examination I found I had set the MIME type for ".m4v" files to "video/m4v". When I changed this to "video/mp4" the players worked in all browsers.

Incidentally I can see the player controls when full-screened.

 

 

4/26/2012 1:35:14 PM
Gravatar
Total Posts 18444

Re: Video player - adding tracks problem

Hi Crispin,

Good work! I changed the mime type on the demo site for m4v to video/mp4 and now it works in IE 9 for me too.

When I test the demo site using Chrome (currently using the artisteer31-blueandwhite skin), after I go to full screen I still can't get back to the controls to get out of full screen, but I suspect this is some wierd css issue with the artisteer css.

Thanks,

Joe

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