![]() |
|
[RELEASE] XBMCFlix-o-mate - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Help and Support (/forumdisplay.php?fid=33) +--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27) +---- Forum: Video Add-ons (/forumdisplay.php?fid=154) +---- Thread: [RELEASE] XBMCFlix-o-mate (/showthread.php?tid=129091) |
RE: [RELEASE] XBMCFlix-o-mate - bengalih - 2012-04-25 16:45 (2012-04-25 05:09)kevev Wrote: Thank You for considering this Bengalih. Yes, adjusting the volume slider in the Netflix window would be the best solution. But if I use the Android XBMC remote, how would this be controlled? I could only think of it reading the XBMC volume before changing it, and match for Netflix slider. Then when killing Netflix window reset the XBMC volume to the original value. Can you think of an easier way to do this while using a remote app that utilizes the HTTP API? AFAIK the XBMC android remote can ONLY control XBMC. XBMC and anything that controls it directly is irrelevant to the conversation with XBMCFlix-o-mate. XBMCFlix-o-mate is a 100% stand alone program from both XBMC and XBMCFlicks. The only interaction it has is in monitoring for the Netflix window (opened via XBMCFlicks) and then sending automated mouse-clicks via the defined hotkeys. If you understand this, then you will know that you cannot control XBMCFlicks-o-mate using the android remote...as the android remote cannot send the hotkeys that XBMCFlick-o-mate needs. If I am missing something here, please let me know - otherwise I need to be sure you understand the above before moving on.... IF I were to implement volume control within Netflix it would simply be to control the slider up and down to the limits within Netflix. This means that the volume will be relative to whatever your system volume is at. I see no need to try to sync the volume of Netflix of XBMC to the system volume. There are almost no apps that work this way. I would say it is against best practice for an app to modify the system's volume as that could be obtrusive to other applications on the system. You should set your system volume to the maximum volume that you would ever want to hear (ever) and then use volume control within each application to set your preferred level. (2012-04-25 05:09)kevev Wrote: Also: I'm not exactly sure what issue you are describing, as "F" is the manual method of bringing Netflix into full screen and not the method XBMCFlix-o-mate uses. What method are you using to send your hotkeys to XBMCFlix-o-mate? Are you simply pressing them on the keyboard, or do you have a remote setup to send the hotkeys? Do all the other hotkeys work for you (subtitle on/off, next/back episode, etc?). RE: [RELEASE] XBMCFlix-o-mate v1.0b - bengalih - 2012-04-25 17:11 (2012-04-25 05:06)Claire193 Wrote: Thanks...I'm going to test now with a space and hopefully implement a fix...I have already incorporated the architecture check. Did you have a question/point to make Claire? It looks like you simple quoted something from me above (while leaving out the quotes tags).... ? :/ RE: [RELEASE] XBMCFlix-o-mate v1.0b - kevev - 2012-04-25 17:25 (2012-04-25 16:45)bengalih Wrote: I'm not exactly sure what issue you are describing, as "F" is the manual method of bringing Netflix into full screen and not the method XBMCFlix-o-mate uses. I am sorry for the confusion. All of the hotkeys work. I am under the impression that the NetFlix window should go fullscreen automatically when playing begins. But as I do not know the programing language Sikuli, I do not understand the .html file code structure very well. If the window does not automatically go full screen, is there a way to make this happen automatically? Would this still allow the hotkeys be entered? Or does full screen disable this because the buttons are not available? This would not be an issue for me since the XBMC remote can't send hotkeys anyways.
RE: [RELEASE] XBMCFlix-o-mate v1.0b - bengalih - 2012-04-25 21:19 (2012-04-25 17:25)kevev Wrote:(2012-04-25 16:45)bengalih Wrote: I'm not exactly sure what issue you are describing, as "F" is the manual method of bringing Netflix into full screen and not the method XBMCFlix-o-mate uses. Ok...I still want to be sure you are actually using the XBMCFLix-o-mate hotkeys...the CTRL+ALT+SHIFT ones... because the normal Netflix hotkeys will still work for you. For example: If you just type "F" in the Netflix Window it will go Full Screen If you hit "ESC" it will bring you out of Full Screen The above are the built-in NETFLIX hotkeys and will work with nothing other than the plain old Netflix browser window. Now if you are using XBMCFlix-o-mate, you should be able to use CTRL+ALT+SHIFT+F and toggle full screen on and off. All of the XBMCFlix-o-mate hotkeys should work from a full screen or a non fullscreen, as long as Netflix has focus. So, before I go further with your auto full-screen issue, please confirm for me that you can do the following: Use the following hotkeys from within a Full Screen AND non-Full Screen video: CTRL+ALT+SHIFT+F (toggle full screen) CTRL+ALT+SHIFT+T (toggle subtitles) CTRL+ALT+SHIFT+N (go next episode) If those are not working for you, please use the debug copy (in the /debug folder) and send the output. RE: [RELEASE] XBMCFlix-o-mate v1.0b - kevev - 2012-04-25 22:46 (2012-04-25 21:19)bengalih Wrote: Ok...I still want to be sure you are actually using the XBMCFLix-o-mate hotkeys...the CTRL+ALT+SHIFT ones... because the normal Netflix hotkeys will still work for you. Those three hotkeys work as expected. I am just wanting the video to automatically go full screen when loaded. The reason why is because I dont have a keyboard, just the Android XBMC remote. Can this be configured in the script? RE: [RELEASE] XBMCFlix-o-mate v1.0b - bengalih - 2012-04-25 23:21 (2012-04-25 22:46)kevev Wrote: Those three hotkeys work as expected. I am just wanting the video to automatically go full screen when loaded. The reason why is because I dont have a keyboard, just the Android XBMC remote. Can this be configured in the script? OK - I wanted to be 100% sure that some of the functions of the script were working, now that you have confirmed that, let's move on... The auto Full Screen option IS in the script already and should work under the following scenarios: 1) You advance to a next episode using the XBMCFlix-o-mate hotkey (CTRL+ALT+SHIFT+N) 2) You go back to a previous episode using the XBMCFlix-o-mate hotkey (CTRL+ALT+SHIFT+B) 3) The first launch of a video from within XBMC (via XBMCFlicks) Now let me explain a bit further how this works, so you can see why your system might not be fitting the criteria. First, it is important to understand that the way this script works is by monitoring for particular elements on the screen. This is VERY resource intensive, so we don't monitor 100% of the time, only when particular events are triggered. When XBMCFlix-o-mate is launched it awaits a browser window to open for Netflix. This has only been tested with IE, but should work with other browsers. When it sees the Netflix window open the script waits 8 seconds for the NETFLIX logo and loading screen to appear (white on red background). Once it sees this logo it waits a maximum of 60 seconds for this logo to disappear. This would trigger the end of a video load and the beginning of playback. Once it sees the logo disappear, it should then look for the full screen button and click it. At this point, the event will only trigger again when using the hotkeys (#1 and #2 above or the toggle Fullscreen hotkey) - since that should be the only way you will be navigating episodes without going back to XBMC. When you go back to XBMC a flag gets reset so that this auto full-screen triggers again when Netflix is open. So let's review with an example of the order of events which should be happening: 1) XBMCFlix-o-mate is started (in whatever way you choose) 2) XBMC is opened 3) XBMCFlicks add-on is started 4) User navigates to a video within XBMCFlicks and clicks to start that video 5) XBMCFlicks launches a maximized (kiosked) IE window for playback with the title "Netflix" (you can't see this title, since the window is maximized, but the work Netflix is contained in the title) 6) XBMCFlix-o-mate detects that the IE Netflix window is in the foreground and begins waiting for the big white NETFLIX logo for 8 seconds. If the logo isn't detected within the timeout, auto full-screen will fail. 7) Once XBMCFlix-o-mate sees the NETFLIX logo, it will wait up to 60 seconds for the logo to disappear (once again, signaling video playback). If the logo doesn't detected within the timeout, auto full-screen will fail. 8) Once the logo disappears, XBMCFlix-o-mate should click on the full-screen button to bring the video into full-screen. At this point the video will remain in full screen unless the user toggles it out with the hotkey. If the user chooses to change episodes, the process above will repeat from step #6, bringing the movie into full screen when the logo disappears. 9) User is done watching video(s) and presses CTRL+ALT+SHIFT+Q hotkey to exit Netflix and return to XBMC. At this point a flag gets reset in the code so that when Step #4 is again initiated by the user the process can continue from that point. So, if auto full screen is not working for you, I suspect you are doing something outside the ordinary sequence of events mentioned above. Since you don't have a keyboard, how are you terminating Netflix when you are done watching? I must close by saying that unless you plan to use a keyboard to enter the hotkeys directly, or you plan to map the hotkeys to remote keys via another utility, then XBMCFlix-o-mate is probably not the program for you. RE: [RELEASE] XBMCFlix-o-mate v1.0b - kevev - 2012-04-25 23:44 (2012-04-25 23:21)bengalih Wrote: OK - I wanted to be 100% sure that some of the functions of the script were working, now that you have confirmed that, let's move on... 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. RE: [RELEASE] XBMCFlix-o-mate v1.0b - bengalih - 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. 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.... RE: [RELEASE] XBMCFlix-o-mate - kevev - 2012-04-26 07:55 ![]() ![]() Ya, I know. I am a big Sponge Bob fan. So is my daughter. ![]() I was using XBMC as my shell, but switched back to explorer to eliminate any issues. The hotkeys work when explorer is the shell. When xbmc is the shell I have to click in the video to grab focus, then hotkeys work. Could you make the script grab focus of the window after launching it. This should help for when XBMC is the shell. I have rebooted multiple times and even manually restarted XBMC & XBMCFlix-o-mate. Here is the debug output: Script Variables: $scriptsDir: C:\script $SikuliDir: $JavaDir: $netFlixTogglePlayHotKey: {SPACE} $netFlixFF: > $netFlixRewind: < $netFlixTerminate: Q $XBMCFlixomateExit: X $netFlixLaunchHotKey: O $SikuliDir c:\Program Files\Sikuli X run(C:\Windows\system32\cmd.exe /k Java -jar sikuli-script.jar "C:\script\XBMCFl ix-o-mate.sikuli",c:\Program Files\Sikuli X)[info] Sikuli vision engine loaded. [info] Windows utilities loaded. [info] VDictProxy loaded. [info] add hotkey: CTRL+ALT+SHIFT O [info] add hotkey: CTRL+ALT+SHIFT F [info] add hotkey: CTRL+ALT+SHIFT N [info] add hotkey: CTRL+ALT+SHIFT B [info] add hotkey: CTRL+ALT+SHIFT T [info] add hotkey: CTRL+ALT+SHIFT Q [info] add hotkey: CTRL+ALT+SHIFT X debug: in netFlixLaunch (Ctrl+Alt+Shift+O) AutoITdebug: keys sent: C+A+S+O AutoITdebug: newNFLaunchFlag set to: 0 debug: loading movie debug: loaded movie debug: full screen action! AutoITdebug: Received C+A+S+Q for Netflix termination AutoITdebug: closed iexplore.exe AutoITdebug: closed iexplore.exe AutoITdebug: closed iexplore.exe AutoITdebug: closed iexplore.exe AutoITdebug: closed iexplore.exe AutoITdebug: closed iexplore.exe AutoITdebug: closed iexplore.exe AutoITdebug: newNFLaunchFlag set to: 1 I did the ctrl+alt+shift+Q to quit. That is great that you found a way to make it fullscreen automatically. I can't wait to test it.
RE: [RELEASE] XBMCFlix-o-mate - bengalih - 2012-04-26 17:01 (2012-04-26 07:55)kevev Wrote: Ya, I know. I am a big Sponge Bob fan. So is my daughter. Those images look normal to me... (2012-04-26 07:55)kevev Wrote: I was using XBMC as my shell, but switched back to explorer to eliminate any issues. The hotkeys work when explorer is the shell. When xbmc is the shell I have to click in the video to grab focus, then hotkeys work. Could you make the script grab focus of the window after launching it. This should help for when XBMC is the shell. Well technically IE is always the shell (or whatever browser you configure to open Netflix). I assume you just mean you were launching IE from XBMCFlicks vs just using IE outside of XBMC? Grabbing the window shouldn't make a difference. The hotkeys are sent to Sikuli which is running in the background (and thus never in focus). The window they are acting on does not need be in focus, it only needs to be VISIBLE as the script works via image recognition. It *may* be possible that the NETFLIX hotkeys (F, SPACE, etc) might not work until you click the window - but it almost certainly shouldn't effect the XBMCFlix-o-mate keys. I have once again tested this launching via XBMC set in true full screen and didn't have any issue with the hotkeys or it going auto full-screen. That is not to say I don't believe you are having an issue...but I suspect something else is going on with your system. Can you give me a clear confirmation of whether or not the CTRL+ALT+SHIFT+N and +B keys work for you? Do they advance/go back an episode? Do they automatically bring your new episode full screen? Do they work whether or not you were in full-screen to begin with or not? Do they work from both XBMC and stand-alone IE? To answer the above you will need to do at least 8 tests. For each hotkey: via XBMC with your video in Full Screen via XBMC with your video in non Full Screen via IE with your video in Full Screen via IE with your video in non Full Screen Technically if you just test for one of the hotkeys, I suspect the other will work - however the N hotkey is a bit more complex in its logic, (2012-04-26 07:55)kevev Wrote: Here is the debug output: That output looks pretty good...though I realized I have a small error in my debug output in this routine that is causing me to not gather all the info. The fact that you are getting the "loading movie" and "loaded movie" means for sure that the script is detecting the Netflix logo and its disappearance. Unfortunately the "full screen action" is where the bug is at and I can't be 100% sure what is happening yet. Other questions in addition to the above tests: 1) What resolution do you run at? 2) What browser do you use in the playercorefactory.xml for XBMCFlicks? It should be IE if you never made changes. 3) Do you have other add-ons? Would it be possible to test by disabling them? (easiest way is to move all other plugins other than XBMCFlicks out of your C:\Users\username\AppData\Roaming\XBMC\addons directory). I don't think this could be the reason, but it is worth a shot. If, after the above I'm still at a loss, I may send you some special debug copies to gather more info. I've only had confirmation that 3 other people besides us are using this so far - but no one else seems to have these issues....so we will need to research what's going on... |