当前正在播放的歌曲(由另一个应用程序排队) [英] Currently playing song (queued by another app)

查看:75
本文介绍了当前正在播放的歌曲(由另一个应用程序排队)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个简单的问题.

是否可以获取(无需设置)有关当前播放歌曲的标题,艺术家或任何其他元信息?如果您自己的应用程序将歌曲排入队列,这似乎很简单(请参阅MSDN条目的备注"部分中的MediaHistory.NowPlaying).

Is it possible to get (don't need to set) the title, artist, or any other meta information about the currently playing song? It seems rather straight forward if your own app queued the song (see the Remarks section of the MSDN entry for MediaHistory.NowPlaying).

从本质上讲,我想记录一下用户手机上播放的歌曲,以进行有趣的分析.

Essentially, I would like to get a record of songs that have been played on the user's phone, for fun analytics.

推荐答案

仅当歌曲是由您的应用(例如通过MediaPlayer.Queue.ActiveSong)启动的.

Only if the song was launched by your app, such as via MediaPlayer.Queue.ActiveSong.

希望这会有所帮助,
标记

Hope this helps,
Mark


这篇关于当前正在播放的歌曲(由另一个应用程序排队)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆