Is it possible to do something when a video "stops" or "ends"?
igotdvds
Skilled Skinner Joined: Jul 2009 Reputation: 11 |
2011-04-03 21:14
Post: #1
I'd like to prompt the user when a tv show ends or is stopped. Is there a way to create a dialog that appears when "stop" is pressed while a tv show is playing or if the tv show ends?
|
| find quote |
igotdvds
Skilled Skinner Joined: Jul 2009 Reputation: 11 |
2011-04-05 02:22
Post: #2
Noone has any ideas? Thats odd.
|
| find quote |
Jezz_X
Team-XBMC Skinner Joined: Jun 2006 Reputation: 55 Location: Earth |
2011-04-05 02:26
Post: #3
Well my idea is NO at least not without a python script monitoring playback (maybe). but I really didn't want to say No and then look dumb when someone says yes
Skins I have done.... ![]() And others in the past... Want to know what I'm working on currently? Check me out on Google+ |
| find quote |
mcborzu
Skilled Skinner Joined: Feb 2009 Reputation: 15 Location: dsf |
2011-04-05 02:45
Post: #4
Is there a previous.window() type command, something along those lines? I checked the wiki but I must be phrasing it wrong or it doesnt exist in general. Thought I've seen that type of infolabel before? If yes maybe that would work, being able to show something if previous window was dialogfullscreen?
Check out The Carmichael - A Skin For XBMC Check out Night - A Skin For XBMC Check out Unfinished - A Skin For XBMC |
| find quote |
Jezz_X
Team-XBMC Skinner Joined: Jun 2006 Reputation: 55 Location: Earth |
2011-04-05 03:29
Post: #5
Its
Window.Previous() and Window.Next() but thats not really for stopping I guess maybe a combination of PHP Code: Window.Previous(FullScreenVideo) + !Player.HasVideo Skins I have done.... ![]() And others in the past... Want to know what I'm working on currently? Check me out on Google+ |
| find quote |
wannabegt4
Senior Member Posts: 205 Joined: Dec 2008 Reputation: 1 Location: Wichita, Kansas |
2011-04-05 04:12
Post: #6
Why don't you put a hidden control in fullscreen video xml that sets a custom skin string or setting and have your control in your myvideonav.xml only visible when the string matches or the setting is on. When the user clicks the button in your dialog make it set the skin string/setting back so the control is no longer visible.
|
| find quote |
igotdvds
Skilled Skinner Joined: Jul 2009 Reputation: 11 |
2011-04-05 05:49
Post: #7
Got it:
Ok, so I wanted XBMC to prompt me to delete an episode automatically after watching it, so here's the solution. A button is SkinSettings: Code: <control type="radiobutton" id="2003">Then I added on to the TVTunes Button in MYVideoNav: Code: <control type="button" id="9999">Finally the Focus conditions in Includes: Code: <include name="No_Delete_Eps"> |
| find quote |
wannabegt4
Senior Member Posts: 205 Joined: Dec 2008 Reputation: 1 Location: Wichita, Kansas |
2011-04-05 05:58
Post: #8
What happens when someone isn't watching in fullscreen and presses stop? For instance I'm watching a video and decide to go back and look at the episode list while it's playing in the background.
|
| find quote |
igotdvds
Skilled Skinner Joined: Jul 2009 Reputation: 11 |
2011-04-05 06:07
Post: #9
wannabegt4 Wrote:What happens when someone isn't watching in fullscreen and presses stop? For instance I'm watching a video and decide to go back and look at the episode list while it's playing in the background. It will ask them if they want to delete. This is a rough way of getting what I wanted, I wish I could say "If episode is 100% finished or Episode is playing and user presses "stop"" Then prompt to delete. But I cant get that exactly, so I use a hack.
|
| find quote |
wannabegt4
Senior Member Posts: 205 Joined: Dec 2008 Reputation: 1 Location: Wichita, Kansas |
2011-04-05 06:20
Post: #10
Couldn't you just add the !Player.HasVideo to the condition that Jezz suggested that way it won't come up until stop is pressed. Also, What if the previous window isn't full screen video like I went to the home menu and pressed stop? Would you still get your dialog? Would you still want it to be available throughout the skin? That's the only reason I had thought about using the custom skin setting in the hidden control.
EDIT: You know; I'm probably over complicating things. I'm sure it's fine the way you have it now.
(This post was last modified: 2011-04-05 06:24 by wannabegt4.)
|
| find quote |

![[Image: sigpic_51354_dedd3c5dac45dcc8f6b4ccc9d9ad3429.png]](http://forum.xbmc.org/uploads/signatures//sigpic_51354_dedd3c5dac45dcc8f6b4ccc9d9ad3429.png)
![[Image: skinsq.png]](http://img854.imageshack.us/img854/931/skinsq.png)
Search
Help