JW Player Time Calculations?

Brian
Brian
Offline
0
Since entering in song lengths is too tedious, most of the songs do not have this entered into the database. Until ID3 tag reading is added, most users will not spend the time to enter these in manually.

When on the album and artists pages, the JW player calculates each song name correctly. This allows users to scroll through the time on each song. However when playing songs on the playlist page, playlist popout, or song page... the JW player is not calculating the song length. It stays at 00:00. This make the player unable to search through the song. Can this be fixed?

Thanks Germi... just trying to help you make MC as solid as possible.
Responses (13)
  • Accepted Answer

    Sunday, June 19 2011, 03:29 PM - #Permalink
    0
    weird...

    I'll take a look into this.

    PS: I just saw the Simpson's episode where Homer changes its name to Max Power ;) classic!!!
    The reply is currently minimized Show
  • Accepted Answer

    Brian
    Brian
    Offline
    Monday, June 20 2011, 04:50 PM - #Permalink
    0
    Homer Simpson: Kids, there's three ways to do things; the right way, the wrong way and the Max Power way!
    Bart: Isn't that the wrong way?
    Homer Simpson: Yeah, but faster!

    Classic indeed :)
    The reply is currently minimized Show
  • Accepted Answer

    Brian
    Brian
    Offline
    Tuesday, July 05 2011, 09:28 PM - #Permalink
    0
    any update?
    The reply is currently minimized Show
  • Accepted Answer

    Brian
    Brian
    Offline
    Sunday, August 28 2011, 05:13 AM - #Permalink
    0
    germi wrote:
    weird...

    I'll take a look into this.

    and?
    The reply is currently minimized Show
  • Accepted Answer

    Brian
    Brian
    Offline
    Monday, September 19 2011, 06:34 PM - #Permalink
    0
    ???????????????????????????????????????????
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, September 20 2011, 02:52 PM - #Permalink
    0
    damn.. once more I forgot about this post.

    please try this (for the playlist)

    open /components/com_muscol/views/playlist/view.feed.php

    on line 77 you see this:

    $item->duration = $song->length;

    change it for:

    if($song->length) $item->duration = $song->length;

    does this solve the issue on the playlist page?
    The reply is currently minimized Show
  • Accepted Answer

    Brian
    Brian
    Offline
    Wednesday, September 21 2011, 01:54 AM - #Permalink
    0
    Yes this fixes it with the playlists.

    What about for the player on individual song pages... I looked for something similar to edit under /components/com_muscol/views/song/... to no avail.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, September 21 2011, 03:08 PM - #Permalink
    0
    hello!

    in this case is a different file. I tell you what to do, but this will be added on a jwplayer update that we will publish very soon:

    on /plugins/muscolplayers/jwplayer.php

    add this on line 228:

    if(!$song->length) $duration_comment = "//";

    and a few lines below, where you see this:

    duration: '".$song->length."',

    replace it for:

    ".$duration_comment."duration: '".$song->length."',
    The reply is currently minimized Show
  • Accepted Answer

    Brian
    Brian
    Offline
    Wednesday, September 21 2011, 11:42 PM - #Permalink
    0
    I couldn't get that to work but that's okay. I'll wait for the player update.

    Thanks Germi
    The reply is currently minimized Show
  • Accepted Answer

    exlineo
    exlineo
    Offline
    Wednesday, December 14 2011, 11:42 AM - #Permalink
    0
    Hi,
    is there some news about this ???
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, December 14 2011, 04:35 PM - #Permalink
    0
    do you have latest version of MC and the plugin installed? this was solved some time ago...
    The reply is currently minimized Show
  • Accepted Answer

    exlineo
    exlineo
    Offline
    Thursday, December 15 2011, 08:13 AM - #Permalink
    0
    Hi (Hola)Germi
    yes, i think so.

    plg_search_albums_2.2.0_1.6.zip 2.2.0
    mod_muscol_recently_added_artists_1.1.0_1.6.zip 1.0.0
    plg_showalbum_1.1.0_1.6.zip 1.1.0
    com_muscol_upgrade_220_to_221_1.6_NOT_AUTOINSTALL.zip 2.2.1
    mod_muscol_top_viewed_1.5.0_1.6.zip 1.5.0
    plg_jwplayer_2.2.2_1.6.zip 2.2.2
    mod_muscol_jwplayer_2.2.2_1.6.zip 2.2.2
    com_muscol_2.2.1_community_pro_1.6.zip 2.2.1
    mod_muscol_featured_albums_2.0.0_1.6.zip 2.0.0
    plg_myalbums_cb_2.2.0_1.6.zip 1.0.0
    mod_muscol_featured_artists_2.2.0_1.6.zip 2.2.0
    mod_muscol_letterbar_2.1.0_1.6.zip 2.1.0
    mod_muscol_recently_added_2.0.0_1.6.zip 2.0.0
    mod_muscol_recently_added_songs_2.0.0_1.6.zip 2.0.0
    mod_muscol_search_bars_2.2.0_1.6.zip 2.0.0
    mod_muscol_statistics_2.2.0_1.6.zip 2.2.0
    mod_muscol_statistics_individual_2.1.1_1.6.zip 2.1.1
    mod_muscol_top_rated_albums_2.2.0_1.6.zip 2.2.0


    The problem is that player files duration does not match server duration.
    For ex : 01 01 35 on server become 01 01 43 on player. :unsure:
    Did you receveid the acces logins ?
    If yes would you have a lokk please ??
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, December 15 2011, 12:35 PM - #Permalink
    0
    ok I understand what you say, but actually that's not what we discussed before on this thread.

    what you say is JWplayer behavior, is nothing I can do about it really. it's the way the player automatically calculates the lenght of the file based on the size of it. I guess it can be a bit difference if the bit rate is variable on file encoding...

    but anyway taht should not affect the playback of the file. does it?
    The reply is currently minimized Show
Your Reply