-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with start position / seeking #17
Comments
If I'm not mistaken this issue has to do with this (now fixed) issue in XBMC: |
Ok... I removed these 2 lines from jsonrpc.py to get playback to start from the correct place in XBMC:
However, this doesn't fix the issue with playback not starting at the correct place on the iThing (when returning playback from XBMC)... By the looks of things these are http api calls that are failing? ERROR:root:Uncaught exception GET /playback-info (192.168.1.117) This error is repeated a lot. |
Right... It seems that the object VideoPlayer.GetTime returns has changed in the newer builds of XBMC such that they contain hours, minutes, seconds and milliseconds. Now I've never coded any python before, but I've hacked this together, and it seems to fix the issue for me. I altered your get_player_position method in the XBMCMediaBackend as follows:
|
Are those builds final yet? |
They are not. I suspect these changes will survive until the final release though. If they do, you've got the required patches here ;-) On Jun 18, 2011, at 9:55 PM, [email protected] wrote:
|
Hi there
I've been using Airplayer now for a couple of days. Really nice work!
I'm running into an issue though - when I start playing a video on XBMC, it always starts from the beginning. Likewise, when I move playback back to my iThing, it resumes at the last position played on the iThing (as in... not the position that was last played in XBMC).
I can see that the JSON-RPC calls are failing with 'Unable to parse' in the XBMC log:
22:34:06 T:3055549296 M:1410707456 ERROR: JSONRPC: Failed to parse '{
"id" : "uo9i98t3",
"jsonrpc" : "2.0",
"method" : "VideoPlayer.SeekTime",
"params" : 11
}
'
I changed the method field so that it matched the casing given in the spec, but it didn't help the issue... So the original videoplayer.seektime / seekpercentage calls failed in the same way. Any idea what might be going on here? I'm using an XBMC build from the pvr-testing branch from the source maintained by Lars Opdenkamp...
Cheers
/drdaz
The text was updated successfully, but these errors were encountered: