Results 1 to 4 of 4

Thread: Total Played TIme Proposal

  1. #1
    Join Date
    Jun 2012
    Posts
    1,090

    Default Total Played TIme Proposal

    In the past we've discussed the various variable Mezzmo tracks to determine whether a file has been played. It has a play counter which is incremented once the play position in the file exceeds the % setting in Mezzmo. There is also a bookmark which tracks the position of when we stop playing a file which can then be shared wit things like the Kodi plug-in and such. We also have the last played variable which tracks when the play counter is incremented.

    However, even with these we still have issues where if we preview a file (either manually or by a client which automatically supports a preview mode. FYI, hoping to see this in the Kodi plug-in soon) that messes with some of these variables in a less than desirable way. I'd like to consider something called a total play time variable which is set when Mezzmo starts streaming a file, it counts the amount of time a file is streamed (so it stops counting when a file is paused or stopped) and then when the file is stopped it writes the total time to the Mezzmo Total Played Time variable in the database for that file. When the Total Played Time / the total file time exceeds time % setting in Mezzmo the play counter variable is incremented by 1. This way you could preview a file and not increment any of the play counters. If you played a file for two short increments then Mezzmo would just increment the Total Played Time variable to be the sum of the two and keep track until you hit the instance above where Total Played Time / the total file time exceeds time % setting in Mezzmo.

    The only question then is when to zero the Total Played Time variable to zero and start over. I'd suggest that once the play counter variable increments by 1 and the current play position is between the % played point and the end of the file then we stop incrementing the Total Played Time or set the value to equal the file length. Then if the file length is max and the play position goes back to the beginning then we set the Total Play Time to zero to begin the next play count counting. The only potential downside I see here is if multiple clients are laying the same file but that condition exists today too with regards to incrementing the play counter and last time played.

    I hope this makes sense.
    Last edited by jbinkley60; 04-27-2017 at 09:50 AM.

  2. #2
    Join Date
    Sep 2009
    Posts
    2,699

    Default

    Hi Jeff,
    this is actually close to how the play count increment works, Mezzmo server tracks how much of the file has been streamed to the device until the % value set to increment the playcount is reached. The amount of the file streamed is converted to a time value and this is compared to the duration to calculate a percentage. The problem is that some players buffer the file content so even if the user pauses the file the device may keep reading ahead and possibly reach the playcount % so if the user stops the file instead of resuming the playcount will indicate the file has been viewed. To resolve issues with previews you can set the percentage value in Options under Streaming to a higher value (the default is 20), so setting it to 80 will ensure previews do not trigger the playcount.

    Mezzmo Android: Install it on your tablet, smartphone, Android TV or Amazon Fire to browse and stream files from your Mezzmo library to all your devices. Full details at http://www.conceiva.com/products/mez...mo_android.asp
    Mezzmo for Kodi Add-on: Install it into Kodi to stream files from your Mezzmo library directly in Kodi. Full details at http://www.mezzmo.com/wiki/doku.php?...odi_user_guide
    Mezzmo for Roku App: Install it onto your Roku to stream files from your Mezzmo library. Full details at http://www.mezzmo.com/wiki/doku.php?...oku_user_guide
    Wiki: User Guides & Reference Manual at http://www.mezzmo.com/wiki
    Facebook: http://www.facebook.com/Mezzmo.DLNA.Server
    Twitter: https://twitter.com/conceiva_mezzmo
    Web: http://www.mezzmo.com

  3. #3
    Join Date
    Jun 2012
    Posts
    1,090

    Default

    Peter,

    I thought the play count increment works off of position in the file vs. the total amount of time I actually play the file. For instance if I fast forward or skip past the 20% in a short time doesn't that increment the play counter even though I actually played the file less than 20% of real time ? I'll take a look at changing the % setting.

  4. #4
    Join Date
    Sep 2009
    Posts
    2,699

    Default

    The play count works off how much of the file has been streamed to the device and not from where in the file, so you could set the % to 80 then stream the first half of the video and rewind to the start then stream the first half again and it will trigger the playcount because 80% of the total file has been streamed.

    Mezzmo Android: Install it on your tablet, smartphone, Android TV or Amazon Fire to browse and stream files from your Mezzmo library to all your devices. Full details at http://www.conceiva.com/products/mez...mo_android.asp
    Mezzmo for Kodi Add-on: Install it into Kodi to stream files from your Mezzmo library directly in Kodi. Full details at http://www.mezzmo.com/wiki/doku.php?...odi_user_guide
    Mezzmo for Roku App: Install it onto your Roku to stream files from your Mezzmo library. Full details at http://www.mezzmo.com/wiki/doku.php?...oku_user_guide
    Wiki: User Guides & Reference Manual at http://www.mezzmo.com/wiki
    Facebook: http://www.facebook.com/Mezzmo.DLNA.Server
    Twitter: https://twitter.com/conceiva_mezzmo
    Web: http://www.mezzmo.com

Similar Threads

  1. Last Played Date updating too soon
    By martyd in forum Mezzmo Questions and Support
    Replies: 7
    Last Post: 03-10-2017, 08:11 AM
  2. how to get last 50 played back
    By sharadjjw in forum Mezzmo Questions and Support
    Replies: 3
    Last Post: 09-19-2014, 09:00 AM
  3. Most Played filtering issue
    By Snyper in forum Mezzmo Questions and Support
    Replies: 2
    Last Post: 05-09-2013, 05:03 PM
  4. Playstation 3 - This Content Cannot Be Played
    By StephanBotha in forum Mezzmo Questions and Support
    Replies: 3
    Last Post: 09-17-2012, 10:29 AM
  5. Takes two tries to get music played
    By Grundfuttock in forum Mezzmo Questions and Support
    Replies: 2
    Last Post: 06-14-2011, 06:49 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •