Question

How can I save a song to Music+Video Hub?

I know how to get songs:

MediaLibrary library = new MediaLibrary();
var songs = library.Songs;

and also how to add a music to new list:

MediaHistory.Instance.WriteAcquiredItem(mediaHistoryItem);

But How can I add the actual file to Music + video Hub so the user can play it like other songs.

Was it helpful?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top