Posts: 952
Joined: Feb 2005
Reputation:
0
Good idea. I have pictures and videos from my cam in the same folder. XBMC doesnt support playback of video properly from My Pictures, so this option would make it easier to also play back the video recordings
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
2006-09-23, 22:15
(This post was last modified: 2006-09-24, 01:27 by kraqh3d.)
Actually, it would not be difficult to add this functionality. Most of the code to support this is already in place. It would be a good project for someone who wants to learn.
The easiest solution would be to add a new button or context menu option to the "file based" media windows. As a button, I envision something like the "Switch View" button which cycles left and right. It would say "Switch Media" and then you choose Programs, Pictures, Video, Music (minus whatever media window the user is currently in.)
This would then just need to call an internal function to change windows.
m_gWindowManager.ActivateWindow(iDestWindow, m_vecItems.m_strPath);
iDestWindow would be the window ID of the media type that the user is switching to.
There is just one wrinkle in this, though its by design... When you "quickjump" to a window, the destination path has to be a valid source for the destination window. If its not, you get the root listing.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
Of course. The type of share is irrelevant.
Posts: 119
Joined: Jul 2006
Reputation:
-20
gronne
Senior Member
Posts: 119
I'm glad to see some interest in this. I had roughly the same idea as kraqh3d on how it would look. Considering most people browse music and video the most instead of picture, music should he the first on the tag when in video-mode and vice versa. Alternatively, let's say you're in video-mode and want pictures it could see that most of the files in the folder are jpeg and therefore highlight pictures on the tag. But that may be unnecesary, and a bit complicated and too hard to code.
I'd really love if this was programmed considering it happens all the time for me, as late as a few hours ago actually :-) I'm not a coder unfortunately so I can only hope another coder wants this as well:-)
Posts: 119
Joined: Jul 2006
Reputation:
-20
gronne
Senior Member
Posts: 119
As a form of bump, I ask if there's any coder willing to add this neat feature?
Posts: 147
Joined: Mar 2005
Reputation:
0
Definitely cosign this.......great idea!
Posts: 64
Joined: Apr 2005
Reputation:
0
I might consider adding this. My problem is that I know how to use CVS, Visual Studio, and C++ however my knowledge of Direct X = NULL. So I'm gonna play around and see if I can't get this done and then talk to the devs about commiting it, if I indeed come through. Dang it feels awesome that 2.0.0 is out.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
You dont need any DirectX knowledge to code this up. Feel free to PM me if you have questions.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
Support for that has been around for a long time. What's missing is having the same directory be open when you get there.
Posts: 64
Joined: Apr 2005
Reputation:
0
Ya thats precisely why I'm gonna at least attempt to do this. The hardest part is finding some ground because the code we are talking about is actually inherited through multiple classes so I have to take the time to understand how you guys build windows, buttons, etc. It feels like I'm learning a new GUI API such as QT or something.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
actually, i got this working in my local sources via a context menu option called "Switch Media". when you choose it, you get presented a list of other media types (excluding my programs.) it requires that you have a matching bookmark in the destination media window or you'll wind up at the root. (note, that the general smb://, xbms://, and upnp:// bookmarks cover most cases so you wont get the root listing.) im still tweaking it a bit, but will commit it within a few days. (a cool thing is that "back" will eventually take you back to that location in the previous media window.)