home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Trakt
[Issue] Localized EPG and Trakt MyTV Plugin.
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Alberto83" data-source="post: 1205025" data-attributes="member: 128278"><p>I haven't checked MyRecordings yet, but yes, it's worth a look.</p><p>I have a couple of remaining bugs to fix first, one regarding the gui being called but not showing up. It's weird, because there's no exception thrown on mediaportal-error.log and actually the gui IS there but it's like not drawn. If you click somewhere on the screen, it actually executes instructions. It's driving me crazy because it seems to happen randomly without a pattern. Has it ever happened to you?</p><p>I'm calling the GUI with:</p><p>[code]GUIWindowManager.ActivateWindow((int)TraktGUIWindows.EPGShowSelect, GUIGraphicsContext.IsFullScreenVideo);[/code]</p><p>and depending if isFullScreenVideo was on and the player stopped i call</p><p>[code]</p><p> if (wasFullScreenVideo && GUIGraphicsContext.IsPlayingVideo)</p><p> {</p><p> GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO, true);</p><p> }</p><p> else</p><p> {</p><p> GUIWindowManager.ShowPreviousWindow();</p><p> }</p><p>[/code]</p><p>I handled it this way because i programmatically call the GUI while the player is fullscreen. This means if video is stopped, the previous window, which is the fullplayer video, cannot exist anymore. by replacing the fullscreen player with my gui i actually solve the problem.</p><p></p><p>The second bug is something i knew since the beginning, and i'm fixing it right now. The IF statement is pretty big and it could happen that someone stops the player before the thread scrobble is returned. This throws a serie of NullReferenceException, especially when the IF statement is waiting for user input on a dialog. I just need to add some control variables. I have a try catch block to avoid crashes, but i'm trying to avoid the program to throw the exception since I read they're very expensive, and handle the problem gracefully instead.</p><p></p><p></p><p></p><p>I'm using VS2015 Community. I'm not a programmer, my maing work is as sysadmin, but i'm using this project to learn programming. I problably configured something wrong, being not so comfortable with visual studio yet, but i'll try to fix it on christmas when i'll have more spare time. Actually i have to, there's no other ways i could have a look at the first problem.</p></blockquote><p></p>
[QUOTE="Alberto83, post: 1205025, member: 128278"] I haven't checked MyRecordings yet, but yes, it's worth a look. I have a couple of remaining bugs to fix first, one regarding the gui being called but not showing up. It's weird, because there's no exception thrown on mediaportal-error.log and actually the gui IS there but it's like not drawn. If you click somewhere on the screen, it actually executes instructions. It's driving me crazy because it seems to happen randomly without a pattern. Has it ever happened to you? I'm calling the GUI with: [code]GUIWindowManager.ActivateWindow((int)TraktGUIWindows.EPGShowSelect, GUIGraphicsContext.IsFullScreenVideo);[/code] and depending if isFullScreenVideo was on and the player stopped i call [code] if (wasFullScreenVideo && GUIGraphicsContext.IsPlayingVideo) { GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO, true); } else { GUIWindowManager.ShowPreviousWindow(); } [/code] I handled it this way because i programmatically call the GUI while the player is fullscreen. This means if video is stopped, the previous window, which is the fullplayer video, cannot exist anymore. by replacing the fullscreen player with my gui i actually solve the problem. The second bug is something i knew since the beginning, and i'm fixing it right now. The IF statement is pretty big and it could happen that someone stops the player before the thread scrobble is returned. This throws a serie of NullReferenceException, especially when the IF statement is waiting for user input on a dialog. I just need to add some control variables. I have a try catch block to avoid crashes, but i'm trying to avoid the program to throw the exception since I read they're very expensive, and handle the problem gracefully instead. I'm using VS2015 Community. I'm not a programmer, my maing work is as sysadmin, but i'm using this project to learn programming. I problably configured something wrong, being not so comfortable with visual studio yet, but i'll try to fix it on christmas when i'll have more spare time. Actually i have to, there's no other ways i could have a look at the first problem. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Trakt
[Issue] Localized EPG and Trakt MyTV Plugin.
Contact us
RSS
Top
Bottom