Wrong length of the tracks reported by the web player

Need help? Post your questions here.

Moderator: moderators

Wrong length of the tracks reported by the web player

Postby gillespam » Tue Feb 10, 2009 10:32 am

Hi sindre and the subsonic community.

I've switched to the new 3.6 version and so far I'm really impressed by what I see...

I've been using the 3.5 (beta something) for a few months with the modification I made thanks to zeekay to be able to use the JWPlayer 3.6 and I didn't switch to the 3.6 betas of subsonic mainly because I was fully satisfied with the one I was using.

With the 3.6 finally out, I've decided to have a look at it, as the new features mentioned in the changelog seemed very interesting.

The first great feature I saw was the ability to change the playlist on the fly without pausing or restarting the playback (it wasn't possible before because the playlist was embedded in the player).

But I found a small bug : it's in the track length as reported by the flash player as you can see in this screenshot :
Image

Here, the track is fully loaded by the player, and you can see 3 different informations :
    A: Correct track length, correctly reported in the playlist

    B: Wrong track length, seen in the flash player

    C: As the track is fully loaded, the total length of the progress bar is based on the length reported on B - but the color of the loaded music stops at the A length ( C = A )

(I hope that my explanations are clear enough)

By the way, it was working flawlessly with the previous version.

Any ideas ?

[EDIT] Well, Ok, I know... It's due to the bitrate of my files... Thanks to brumisko in PM for pointing that out.

I remember seeing something about that a long time ago but Ican't search for it for now.

What let me wonder is that it was working with the same files and without changing anything in my options...

Go figures :-/
User avatar
gillespam
 
Posts: 17
Joined: Fri Apr 11, 2008 7:05 am

Postby sindre_mehus » Tue Feb 10, 2009 12:21 pm

Hi,

I can confirm that there is a bug when transcoding or downsampling files. The Subsonic server incorrectly reports the original file size as content length in the HTTP response, but the actual content length is much less.

Since Subsonic performs the downsampling on the fly, it doesn't know the true content length upfront. If I don't specify a content length, the JW player shows the correct track length (B in the figure above), and the music plays just fine - but unfortunately the progress bar doesn't move.

Hm, I have to think more on this.

Thanks,
Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby gillespam » Tue Feb 10, 2009 1:37 pm

sindre_mehus wrote:Hi,

I can confirm that there is a bug when transcoding or downsampling files. The Subsonic server incorrectly reports the original file size as content length in the HTTP response, but the actual content length is much less.

Since Subsonic performs the downsampling on the fly, it doesn't know the true content length upfront. If I don't specify a content length, the JW player shows the correct track length (B in the figure above), and the music plays just fine - but unfortunately the progress bar doesn't move.

Hm, I have to think more on this.


Hello sindre and thanks for the quick answer :)

As everything (i.e. the length of the tracks as well as the update of the status bar) worked with the modifications that zeekay made for allowing the use of the JWPlayer in the 3.5 version, is it possible to see if the differences between those 2 versions can solve this problem ?

I can take some time to try to do that - as it's not a blocking problem, just a "cosmetic" one.

The reason why I ask this, is because I'm not a developer - but I can apprehend the differences between 2 files to spot the parameters changes.

Anyway : great job for the 3.6 version and as always, thanks for your help/time.
User avatar
gillespam
 
Posts: 17
Joined: Fri Apr 11, 2008 7:05 am

Postby sindre_mehus » Tue Feb 10, 2009 1:50 pm

Do you know which version of the JW Player was used by zeekay?
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Wrong length of the tracks reported by the web player

Postby brumisko » Tue Feb 10, 2009 8:52 pm

Hello Sindre,

If I remember well zeekay used the JW Player version 3.16.

myself I tried with that version( working greta) and with v4.2 ( not working at all ).

regards.

Gabriel
________
Last edited by brumisko on Tue Feb 01, 2011 9:45 am, edited 1 time in total.
brumisko
 
Posts: 9
Joined: Wed Nov 19, 2008 12:54 pm

Postby gillespam » Wed Feb 11, 2009 2:07 pm

sindre_mehus wrote:Do you know which version of the JW Player was used by zeekay?


I used the 3.17 one.

As I didn't know which one he used, I've tried with different ones, and this one worked well.

I've just tried replacing the version you used in SubSonic 3.6 but it's not working.

[EDIT] Sorry for the double post.

I've tried with version 4.3 : correct length reported, but playing doesn't start.

[EDIT2] Something that I forgot to tell you :
The thing that I liked with zeekay's mod was to be able to add flashvars as his syntax was simple enough to understand how to achieve this.

For example, to be able to set the volume to 100% as by default, it's set to 90%.

I'm actually playing with playlist.jsp :
Code: Select all
function createPlayer() {
  var flashvars = {
      backcolor:"<spring:theme code="backgroundColor"/>",
      frontcolor:"<spring:theme code="textColor"/>",
      id:"player1",
      autostart:"true",
      volume:"100"

It's working for the volume, but not for the autostart.
User avatar
gillespam
 
Posts: 17
Joined: Fri Apr 11, 2008 7:05 am


Return to Help

Who is online

Users browsing this forum: No registered users and 28 guests