billberet wrote:yet i've watched movies, and when i watch them again they are at the beginning of the movie.
if you are watching a movie, and just back out of it to the main menu, is the timestamp saved?
if you hit stop while watching, does the timestamp stay where it was stopped?
if you hit refresh, does this bring the timestamp back to zero?
what happens to the timestamp when you get to the end of the movie, i assume the timestamp would reset, this would give me a false positive.
just trying to understand what brings the timestamp back to zero.
Hi bb,
This should be close enough to answer your questions, but for now, only Wes or Steven can provide the "100%" answer.
There are two variables associated with your issue: ("datetimeplaybackhistory" and "bookmarkresume")
Both variables are stored in the file "item.xml" in the folder that (if you are using XLobby to "manage" and download covers and info), should also contain, "'moviename' front-cover.jpg", and the folders AUDIO_TS and VIDEO_TS.)
In the default skin, there is an additional step in the event "movies: play movie new" that sets the value for the "datetimeplaybackhistory" variable each time the "play movie new" event is executed.
If "datetimeplaybackhistory" exists, it should have a value with the syntax: yyyy-mm-dd"T"hh:mm:ss" without the quotes. The "T" appears to be a "separator", is present in all instances of the variable, and probably just means "Time". (as in: "2009-10-05T19:36:47" without the quotes.)
In the default skin, see the event tied to the "play" button on the "movieviewer" screen to see all the steps to creating "datetimeplaybackhistory" as well as the logic for determining whether or not to show the "bookmarkresume" screen.
(Just ignore the events that have a red "off" next to them, and also ignore the "if %movies>parameter% string ends with movies.bdmv" event.)
If "bookmarkresume" exists, it should have an elapsed-time value with the syntax hh:mm:ss (as in: "00:27:38" without the quotes.) The "bookmarkresume" variable appears [to me] to be "hard-coded", but I might have missed the event that "creates" it.
The time that the "bookmarkresume" variable appears to be "CREATED / SAVED" is when when mediaplayer is "exited" if both of the following 2 conditions are true:
1. More than 5 mins have elapsed since the start of the movie, AND
2. More than 10 minutes remain until the end of the movie...
...AND...
The time that the "bookmarkresume" variable appears to be "DELETED" is when mediaplayer is started after telling the bookmarkresume popup "Not to resume from bookmark" (The event "Category:Variable Unset:Movies:bookmarkresume" is one of three events attached to this button as a "local event"), and also when "exited" if ANY of the following 3 conditions are true:
1. Less than 5 mins have elapsed since the start of the movie, OR:
2. Less than 10 minutes remain until the end of the movie, OR:
3. The movie is "exited" by killing XL with "End Process" from Task Manager, or by another "Crash" before XL saves the variable.
(I've tested this a bunch of times, and ended the movie by "Esc." and mouse-clicking "Menu", and it seems to consistently "Create" or "Not Create" the "bookmarkresume" variable upon exit as described herein.)
To answer your questions:
1. Yes, a variable called "bookmarkresume" is saved when you exit the media player as described herein.
To see the variable working, download a recent build, choose "keep and reinstall" when the installer detects your existing installation. BE VERY CAREFUL NOT TO OVERWRITE YOUR CURRENT INSTALL!!! (Because the default install location for "Keep and reinstall" is the same as where your current install probably is - C:\Program Files/xlobby)
(After you've done a "full install" install of the default skin to a new location, you can see some examples of the "popups" that you get when xlobby detects a "bookmark".)
2. The value to "bookmarkresume" will be saved when you exit mediaplayer - whether stopped, paused or playing ("stop" appears to function much the same way "pause" does in mediaplayer.)
3. No, doing a refresh will not "remove" either variable discussed here.
4. What happens to the "timestamp" ("bookmarkresume") at the end of the movie is nothing. - It actually happens when you choose "No" from the "bookmarkresume" screen, the "bookmarkresume" variable is "deleted" and then created / saved again if mediaplayer is exited more than 5 minutes into the movie and more than 10 minutes before the end of the movie, else, it doesn't get created again. (You should check the events tied to the buttons in the default skin to get a clear picture of what's going on here.)
Hope that helps.
Samson
(I do not work for Calrad, nor for XLobby, and I recommend ALWAYS making a "backup" of your ENTIRE XLobby directory before skinning or trying something new.)