How to get local music information in Xamarin.Forms? - c#

I am gonna build Xamarin.Forms app which will read music information like the artist's name and song's name from local music file.
Is there any way to do that?
Actually I need to get local music files like iTunes.

Here is a link for the Xamarin Media Manager to play music and videos using Xamarin.Forms
https://github.com/martijn00/XamarinMediaManager
You can combine this with a local file reader and away you go.

Related

file access in winrt apps media player library

I am new to WinRT and I was planning on developing a WinRT app for a simple media player that would play audio/video, create playlist and have media library.
As I was thinking I would make a playlist class and serialize it when a playlist is saved. This playlist class would be holding path to the audio/video files that could be anywhere in the hard disk. Similarly for library I would store files info and path in the database for future access in the database. But as it turned out I can only access other files on system using pickers (except for few files).
But as we know that there is library and playlist features in the winrt music app in win8, there must be a legal and efficient way to do so.

how can I Copy songs from Media library to Isolated Storage?

I am trying to create an Alarm Application with the Tone set by song from users Music Library. However, I can't find any documentation or example to Copy a song from Media Library -> Isolated Storage.All I find is the opposite of what I want to do. Please Help.

Read Xbox Music playlist file

I plan to develop music player for Windows Phone 8.1 and I'd like to read the playlists created through Xbox Music player or through PC app. The playlist files are stored in hidden folder Playlists in Music folder but those files empty and contain special tab 'References' when looking on their properties that contains names of songs included in playlist.
I have not found any source of information how to read this type of file.
Picture showing references tab in the Properties window
The file has no extension and 0 bytes.
How do I access the data shown on the references tab in my .NET application?

Open local files in MediaElement without using FileOpenPicker in C#

I want to play few specific files in my app using MediaElement. The files are stored in the assets folder. So I dont want to use the FileOpenPicker. I just want that when a button is clicked a file from the assets folder must be played. How can I set the source of the MediaElement to the file.
Use a Uri as the source which points to the file. Like, "Assets/MyMovie.mp4". This feature is described in better detail in the MediaElement documentation.

opening or browsing for mp3 files in windows phone 7

im trying to create a mp3 player for windows phone 7...how do i create a open file dialog or something that will allow me to access my files on the phone so that i can play them with my app"???
EG:
say i have a folder in my sd card...how do i browse to that folder so that i can imports the songs from that folder into a playlist in my app...
There are no standard open file dialogs for WP7. (some choosers excepted.)
If you want to do this you'll have to create the dialog yourself. You can get the details of the songs saved into the Music&Video hub via the MediaLibrary object. (Add a reference to Microsoft.Xna.Framework.dll to use this from Silverlight.)
You'll then have access to lists (collections) of Albums, artists, playlists, songs, etc.
If you want to play tracks you've save in IsolatedStorage you can access these directly yourself.

Categories