home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Database: Refactor MP1 database for multi seat usage
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Anthony Vaughan" data-source="post: 1286604" data-attributes="member: 153283"><p>I understand that.</p><p></p><p>There is a bool field called 'watched' that indicates whether or not the video has been watched.</p><p></p><p>The 'timeswatched' field indicates how many times the video has been watched. There is also a field that holds the percentage of the video that has been watched.</p><p></p><p>These are three different fields and I am treating them separately.</p><p></p><p>To my mind, the current release, and all previous versions, have never handled 'timeswatched' correctly.</p><p></p><p>I believe that the way I am doing it in my code is what anyone using MP would expect:</p><p> a) Someone watches a video > watched set to true, times watched set to 1, percentage set to the ((duration / stoptime) * 100);</p><p> b) Someone continues to watch the video later > times watched = 2, percentage reset;</p><p> c) Any further viewings increment timeswatched and set the percentage.</p><p></p><p>Is this not what you think should happen?</p><p></p><p>Tony</p><p></p><p>Correction: percentage should be ((stoptime / duration) * 100);</p></blockquote><p></p>
[QUOTE="Anthony Vaughan, post: 1286604, member: 153283"] I understand that. There is a bool field called 'watched' that indicates whether or not the video has been watched. The 'timeswatched' field indicates how many times the video has been watched. There is also a field that holds the percentage of the video that has been watched. These are three different fields and I am treating them separately. To my mind, the current release, and all previous versions, have never handled 'timeswatched' correctly. I believe that the way I am doing it in my code is what anyone using MP would expect: a) Someone watches a video > watched set to true, times watched set to 1, percentage set to the ((duration / stoptime) * 100); b) Someone continues to watch the video later > times watched = 2, percentage reset; c) Any further viewings increment timeswatched and set the percentage. Is this not what you think should happen? Tony Correction: percentage should be ((stoptime / duration) * 100); [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Database: Refactor MP1 database for multi seat usage
Contact us
RSS
Top
Bottom