Showing posts with label Music. Show all posts
Showing posts with label Music. Show all posts

Sunday, 29 December 2013

Samsung Galaxy S3: How to Make a Music File Can't be Played by the Music Player App

An insider named Laurie has leave her comment here and asked me about the step to keep certain song from not playing without having to delete them. She said that she has a Christmas song and don't want it to be played back when she listen to the music through the Music Player app because the Christmas is over. Fortunately, in Android-based smartphone including with the Samsung Galaxy SIII, the

Tuesday, 19 November 2013

Add/Remove Music and Video folders from Windows 8.1 Store Applications

    This is a functionality so buried inside the MSDN documentation that I had to "look" at another application that uses it and only after I was able to find the documentation for it. For the moment (guess because it was not given enough visibility yet) I think there is only one store application that uses it and it is, of course, built by Microsoft (not even Nokia Music application uses it). 
    So what is this all about? If you develop a store application that uses the MusicLibrary capability, you can access to the audio files inside the Music library folders. The problem, until now, was that there was no way to add/remove folders to/from the Music library inside a store application so, in case the user did not had any folder added to the Music library the developers had to find a way to explain how to manually add folders to the Music library (a mess believe me).
    The missing functionality is implemented by the NEW StorageLibrary class available for Windows 8.1 store applications. The class is actually a diamond in the rough:


    The usage is basic but it is exactly what I needed. You need to use the GetLibraryAsync method to retrieve the StorageLibrary you need. Once you have it you can retrieve the StorageFolders currently added to the library and for the Music and Videos libraries, you can add or remove folders from this library. If removing a folder from the library the user will be prompted if he agrees with the removal. For adding a folder using the async method the user will be prompted with a folder picker and returns the newly added StorageFolder, otherwise null.
    As usually I really hope that, if you need it, this blog post will spare you the hours I've spent in finding out how it is done.

Update: There is also a code sample available on msdn Library management sample

NAMASTE


Wednesday, 30 October 2013

Samsung Galaxy S3: How to Edit Playlist Name

The best way to facilitate you when listening to music on the Music player app in the Samsung Galaxy SIII is by creating a music playlist according to the category you want. You can specify any music you want to add into the playlist and delete music you don't want to be there.

See also: How to Add or Remove Music in Playlist on Samsung Galaxy S3

In addition to add or removing music from

Samsung Galaxy S3: How to Add or Remove Music Files on Playlist

Listening to music directly on your phone is one of fun things to do. Listening to music can help you killing the times while you're bored to wait for something or accompany you during a long-tiring journey. Therefore, almost all smartphones available today provides music player as one of their pre-install apps, including the Samsung Galaxy SIII. In this application you can categorize some music

Sunday, 20 October 2013

Samsung Galaxy S3 : How to Solve Can't Control Music Player on Lock Screen

A visitor of the inside-galaxy asked me through her comment that she could not control the stock music player app --such as skip, pause/play, rewind, etc-- when the phone is locked unless she's unlocked her phone. Well , if you're also experiencing the same problem with her, then better you check a few things below to solve the problem:

1. Use Swipe method to unlock the screen
With the basic

Monday, 2 September 2013

Samsung Galaxy S3: How to Customize the Stock Music Player Settings

Listen to the music directly through your Samsung Galaxy SIII is one of fun things to do, especially if you're the one who really loved to the music. This activity also will helps you to kill the time while you're in a boring situations or while you're in an exhausting journey. The good news, this phone has come with the stock music player apps which will facilitate you to listen to your

Monday, 19 August 2013

Samsung Galaxy S3: How to Enable or Disable Mono Audio

Listen to the music is one of the fun thing to do with the Samsung Galaxy SIII. Moreover this phone has a music player as its pre-loaded application so you can directly use this applications without having to install it first.

See also: How to Use Music Player on Samsung Galaxy S3

While you're on music player apps, there is an option which will allow you to listen to the music using headphone.

Friday, 5 July 2013

Samsung Galaxy S3: How to Play Recorded Files Using Radio FM Applications

As we have learned before that you can record certain radio station that is currently playing directly through the Radio FM apps. This of course will useful if you want to listen to the music or your favourite radio channel later day.

See also: How to Record Radio on Samsung Galaxy S3

Once you've finished recording, then you can save it to your phone as m4a format which you can play it back

Thursday, 20 June 2013

Samsung Galaxy S3: How to Use Stock FM Radio Applications

This time the music has become a necessity for almost everyone, due to this reason current smartphones including the Samsung Galaxy SIII is always complemented by applications that allow their users to be able to easily listen to music anywhere and anytime using the music player on their phones.

See also: How to Use Music Player on Samsung Galaxy S3

Another apps available on Galaxy SIII that

Friday, 22 March 2013

How to add songs to the emulator's MediaLibrary

    One of the new features of the Windows Phone 8 SDK is the ability to save(add) songs to the phone's MediaLibrary. This is a really nice when you add songs to the MediaLibrary any other music application that you have installed on your phone can play the songs that your application has saved.. The SaveSong method is found in the MediaLibraryExtensions class. Here are the parameters of this method:

[ExtensionAttribute]

public static Song SaveSong (
MediaLibrary library,
Uri filename,
SongMetadata songMetadata,
SaveSongOperation operation
)
    The method requires the ID_CAP_MEDIALIB_AUDIO capability and will return a reference to the newly saved song. One of the things that the documentation forgot to mention is that the filename Uri has to be an Uri to a file on the IsolatedStorage. You cannot give a direct Uri to an asset file (this I think because using the SaveSongParameter you can choose if you want to copy or move the file to the MediaLibrary) as you will get InvalidOperationException. If you want to add a song deployed as an asset you will first have to copy the file to the IsolatedStorage and then save it to the MediaLibrary.

    To copy the file to the IsolatedStorage you can use the:
 var resource = Application.GetResourceStream(new Uri(@"Assets/Songs/"+fileName, UriKind.Relative));  
resource.Stream.CopyTo(fileStream, 4096);


or you can use the WinRT Api to read the asset file:
  songUri=new Uri("ms-appx:///Assets/Songs/"+fileName,UriKind.Absolute);  
var file=await Windows.Storage.StorageFile.GetFileFromApplicationUriAsync(songUri);
 
    One interesting parameter is the SongMetadata. This enables you to "mess" with the metadata that will be saved to the MediaLibrary. If this parameter is null then the function will automatically import the file's metadata. If you still want to verify/import just some of the files metadata you can use the PCL ID3.NET and read the metadata of the file you have on the Isolated Storage. The portble dll is Id3.dll. You just have to pass the Stream to the Mp3Stream method:

 Id3.Mp3Stream mp3 = new Id3.Mp3Stream(resource.Stream);  
if (mp3.HasTags)
{
}


NAMASTE