2012-04-26, 00:12
(2012-04-25, 23:44)kevev Wrote: It seems that the issue is between step 7 & 8. It may be a timing issue. I do notice that the two left NetFlix buttons apear first then when playing begins the rest of the controls apear, along with the full screen button. When running the debug version it says "Going fullscreen!" Or something like that in the output when the video starts. How long between detecting the logo disappearing and clicking the full screen button? Maybe a sleep period is needed for my system.
To terminate the Netflix window I press the stop button on the Android remote. I believe it sends this http API command(but I am not sure as I have not enabled any debugging):
http://xbox/xbmcCmds/xbmcHttp?command=Stop()
This causes the window to close and XBMC is maximized as expected.
The picture below should be what your screen looks like while the Netflix logo is up. Immediately once the video is done loading this should disappear and you should see all the buttons.
If your experience differs from this I will need more explanation and, preferably screen shots.
As far as the "http://xbox/xbmcCmds/xbmcHttp?command=Stop()" is concerned...that is very interesting because according to the Wiki that stop command does the following:
Quote:Stops the currently playing media. If a slideshow and audio is active only the slideshow is stopped.
I have no idea how that is controlling an external IE window. Are you sure that the IE window is actually being closed down and XBMC is not just being brought to the foreground?
Regardless, this will only work for you the VERY FIRST time you launch Netflix from XBMC once XBMCFlix-o-mate is started, since you are never sending the Q hotkey to reinitialize the flag.
BTW do the CTRL+ALT+SHIFT+N and +B keys work to navigate episodes? Do they bring your window into full screen once they have finished? If not, then I think I will definitely need a screen shot.
UPDATE: OK I have confirmed that you are correct in that the Stop() command does stop/close the IE window. I can only assume that XBMC is intelligent enough to know that the browser registered with the playercorefactory.xml for playback of a stream should actually be closed when the stop command is set.
However I still think your testing may be off since this will 100% only work for you on the first launch. You should exit XBMC and XBMCFlix-o-mate and then restart both. My guess is that the video WILL go auto full-screen on your first video launch, but never again after that.
2ND UPDATE: Well, good news....I found a way to easily modify the script so that it will work without the Q hotkey combination to be set (don't know why I didn't see this sooner!). In effect, it will do what you need - simply monitor for Netflix launch and then bring into full screen every time. We do however need to figure out why yours isn't working. So if you confirm that even on the FIRST launch after starting the programs it still doesn't work, then send me whatever additional info you can (Screen shots, the debug output, etc). I don't want to release the version with the updates if it isn't working for you even at first launch...as something else is wrong there....