wp7, select music from device library to put into app - c#

I was wondering if there was a way to create an app where a user is able to take a song from their wp7 music library and have the app copy it to put into isolated storage.
I have an idea for a music editing app but am unable to find if it's even possible for a user to select his or her own music from the device to use.
(sorry for this not being a coding question... I can assure you there will be some down the line)

No, I don't think this is possible. You can get access to the song in order to play and pause it, but you can't get access to the raw data in the current SDK. (Which means you won't be able to copy the data to isolated storage).

Related

Filepicker for Hololens: List available filepickers?

So HoloLens is stupid in that it only recognizes one FilePicker at a time (no matter how many may be installed). I don't believe the developers are going to try making multiple filepickers work.
So, I'm trying to figure out my own filepicker in an attempt to be a proxy-select for other filepickers.
In essence, I want to make a filepicker chooser that appears as a typical filepicker (if that makes sense).
Trouble is, it doesn't appear possible to get a list of pickers installed!
Am I experiencing a pipe dream, or is there a way to invoke a picker from a list of pickers?
For the moment this is a pipe dream, but I sure hope they fix this. Per the Windows Holographic FAQ:
Note: HoloLens will always use the first app you've installed to handle file storage and this can't be changed. That means if you install Box and then OneDrive, all apps will use the Box file picker app.

Implementing playlists with songs from phone storage [windows phone]

I have been struggling with an issue with my media player windows phone (7) application. The problem is that I can't seem to implement playlists.
What I want to do is play songs from the media library. This article seems pointless.
I've tried getting into the SongCollection class and figure out how to create more of these things. It appears to be impossible (no constructor, can't cast it, can't inherit it).
After that I tried getting an object on the process running the background audio agent that existed in my app (until I discovered it was redundant), and feed the media player one song at a time.
Problem is, I don't know when the media player stopped playing. It works ok as long as my app is in the foreground, but when it is not, everything stops working, only the media player keeps going.
Is there a way I haven't figured out? In the article above they suggest there is a link between the Zune Media Queue, which I presume is the MediaPlayer.Queue property, and various things I can implement, but I just can't figure a way to make it go.
You should give up since building your own media player is an impossible mission (been there, done that). You cannot create playlists or edit any information, you cannot replace default event handlers for on-screen music controls, you don't get events for music change in your application unless it is currently running.
Basically, it is really limited in what you can do right now and the situation isn't much better with WP8.
I hope that it will be less read-only by the time we get Windows Phone 9.
Take a look at the UWP samples from Microsoft:
https://github.com/Microsoft/Windows-universal-samples
The sample contains play/pause/playlists explanation.
This was already possible in Windows phone 7.5/8/8.1

How to launch MediaPlayerLauncher using device's isolated storage

I would like to simply launch the MediaPlayerLauncher task, but I would like to use media that is already on the WP7 device. From my research it seems that to use this task, one must first include media packaged as a resource, or use media that is saved in the applications isolated storage. Is there a way to only use the phone's isolated storage so that the MediaPlayerLauncher task may load using media from the default media player application (for instance if a user places music on a phone from his or her computer, that media would be recognized and loaded into the MediaPlayerLauncher).
Basically what I would like to accomplish in the end is for the WP& default media player to load as it does when a user clicks the tab, although if the user wants to select music, the music section would load instead of the default zune section. Is this even the right task to accomplish this, and if not is there a way to use default phone functionality like this? If not, is there another option?
Documentation seems to suggest that it is perfectly possible.
http://msdn.microsoft.com/en-us/library/microsoft.phone.tasks.mediaplayerlauncher(v=VS.92).aspx
The property location takes enumeration which allows Data - ie in Isolated Storage.
Create a Uri (relative) set the Location and give it a go.

Retrieving currently playing song from Windows Media Player (C#)

I realize there is a similar question to this, but it really has no information in it. I want to retrieve the currently playing song title (similar to MSN Messenger) within a C# app. The Windows Media Player I want to control is EXTERNAL- that is, it is running on the computer, not within the app. Anyway to do this?
I think I may have found a way around my problem- a simple solution is to install a plugin that tells you the current playing song and writes it to a file and you can read it through your program.

how can I play the songs one after another in windows media player

I'm developing a VS 2008 C# coded Windows media player using axWindows media player control available in Visual Studio. I have stored the song paths in a SQL server 2005 database and I'm able to play one song at a time now. I want my application to play the songs from the database continuously without asking anything. How can I achieve this task , please suggest me the way to do so.
You can either pass in the song list as a whole playlist, or you may want to use the PlayStateChange event to listen for when the current song ends and then load up the next song when that happens.

Categories

Resources