Resume video/music playback on startup (like car-stereo's memory feature)
#16
added to cvs Smile
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#17
cool feature... cannot wait to use!!!
I'm not an expert but I play one at work.
Reply
#18
nice feature thanks jmarshall.

quick note :

if you have a xvid file with an mp3 soundtrack and its not enabled in the osd then this feature does not work as the counter stays at 0:00:00

the audio stream bug has been around a while now but i fixed by manually selecting it then the database remembers.

Huh

not a major issue and quite difficult to explain as i guess it would have been mentioned before otherwise.
Reply
#19
i've compiled the latest cvs but this feature doesn't work for me. the "resume video" option is always disabled.

Quote:11-03-2005 13:32:09 error cvideodatabase::addbookmarktomovie(smb://192.168.1.3/videos/sample.avi) failed

i've deleted the video database but the problem is still there.
Reply
#20
do you have sound on the video as i stated above?

i don't think sample.avi does if its the clip i think it is...

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

look above your last post - 1 line up Smile
Reply
#21
i tried different avis/mpgs from samba and from the xbox hard drive but none worked.
Reply
#22
there may be a bug - iirc i may have missed a part of the update code. are you trying to add a bookmark when you play the item, or does it present that error in the logs just when you click on the item?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#23
the error appears when i click on the item.

btw, i don't know if this is related (database problems?), but if i change the video zoom/pixel ratio with the osd, those settings aren't kept the next time i play the video.
Reply
#24
how strange before deleting video.db and redoing my thumbs from imdb the resume feature worked... now it does not?
Reply
#25
yeah, there was a bug - i forgot to update the create table command in one of the functions.

i fixed it in cvs last night.

cheers,
jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#26
can you explain how this is supposed to work as it does not seem to work for me at all and i've tried several builds up to 3/22.

thanks
I'm not an expert but I play one at work.
Reply
#27
1. play file.
2. stop file at some point.
3. press white on file.
4. press resume playback.
5. enjoy.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#28
i've modified my copy of the startupmp3 script ( mp3.py ) to save the current playing state every 10 seconds and use that on bootup to resume to the last song & approximate position.

its a quick and nasty script but it works Smile

it sounds like what you need :

[code]import xbmc
import os
from time import *

try:
lastfh = open( 'q:\\scripts\\currentfile.txt', 'r' )
lines = lastfh.readlines()
trackfile = lines[0].rstrip(" \n")
trackpos = lines[1].rstrip(" \n")
lastfh.close()
xbmc.player().play(trackfile)
xbmc.player().seektime(float(trackpos))
except:
file = 'q:\\scripts\\startupmp3\\startup.mp3'
xbmc.player().play(file)

sleeptime = time()+10
while true:
if time() < sleeptime:
sleep(1)
else:
if xbmc.player().isplaying():
filehandle = open( 'q:\\scripts\\currentfile.txt', 'w' )
filehandle.write( xbmc.player().getplayingfile() + "\n" )
filehandle.write( str(xbmc.player().gettime()) )
filehandle.flush()
filehandle.close()
else:
try:
os.remove('q:\\scripts\\currentfile.txt')
except oserror:
sleep(1)
sleeptime = time()+10
/code]
Reply
#29
when you don't finish a movie in one shot, you currently have to do quite some actions to continue where you left off:

-menu
-select bookmark submenu
-(clear old bookmarks)
-create bookmark
-exit menu
-stop

& on resuming:

-start movie
-menu
-bookmarks submenu
-select bookmark

this could be simplified to:

-press stop (xbmc saves movie name and bookmark in background)

and to resume:

- a "resume last" button in video screen (perhaps some seconds before the current position, but that could apply to any bookmark)

what do you think?

ezd

ps december last year a formal req was entered, but i guess getting the xbmc core in top shape was then priority #1 Smile
Reply
#30
nope.

just stop the movie at any point. then just press white on the movie you wish to resume. we have an idea to improve this further, by making a popup button during the first 5 seconds of movie play "press here to resume movie".

cheers,
jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
Resume video/music playback on startup (like car-stereo's memory feature)0