什么是RemoteControlClient在Android 4.0的? [英] What is RemoteControlClient in Android 4.0?

查看:616
本文介绍了什么是RemoteControlClient在Android 4.0的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道StackOverflow上的规则,因此道歉,请事先问这样一个的主观的问题。

I know the rules of StackOverflow and hence apologize beforehand for asking such a subjective question.

我试过<一href="http://developer.android.com/reference/android/media/RemoteControlClient.html">documentation但所有它说的是这样的:

I tried the documentation but all it says is this :

RemoteControlClient使得消费意味着公开信息   通过能够显示的元数据,艺术品和媒体遥控器   控制键。

RemoteControlClient enables exposing information meant to be consumed by remote controls capable of displaying metadata, artwork and media transport control buttons.

一个远程控制客户端对象与媒体按钮事件相关联   接收器。此事件接收器一定是pviously注册$ P $   与registerMediaButtonEventReceiver(组件名)前   RemoteControlClient可以通过注册   registerRemoteControlClient(RemoteControlClient)。

A remote control client object is associated with a media button event receiver. This event receiver must have been previously registered with registerMediaButtonEventReceiver(ComponentName) before the RemoteControlClient can be registered through registerRemoteControlClient(RemoteControlClient).

我不知道别人,但对我来说,这么多的文件是不够的一些东西,有这样一个很酷的名字为RemoteControlClient

I don't know about others but for me, this much of documentation was not enough for something which has such a cool name as "RemoteControlClient".

我搜索了很多论坛,这一点,但遗憾的是,这个概念仍然不清晰。

I searched a lot of forums for this but unfortunately, the concept is still not clear to me.

确实是感激,如果有人帮助我理解它,它是如何工作,最重要的,什么都它是可以胜任的。

Would indeed be grateful if someone helped me understand it, how it works and most importantly, what all it is capable of.

在此先感谢和道歉问一个主观的问题。

Thanks in advance and apologies for asking a subjective question.

推荐答案

<一个href="http://developer.android.com/about/versions/android-4.0.html">http://developer.android.com/about/versions/android-4.0.html

新RemoteControlClient允许媒体播放器,能够从远程控制客户端的播放控制,如设备锁定屏幕。媒体播放器还可以公开有关当前播放的媒体显示器上的遥控器,如曲目信息和专辑封面信息。

The new RemoteControlClient allows media players to enable playback controls from remote control clients such as the device lock screen. Media players can also expose information about the media currently playing for display on the remote control, such as track information and album art.

和关于这个问题的几个段落。

and a few more paragraphs on the subject.

报告还指出:

有关示例实现,请参见随机音乐播放器,它提供了兼容逻辑性,比如它能够在Android 4.0设备上的远程控制客户端,同时继续支持装置回到Android 2.1。

For a sample implementation, see the Random Music Player, which provides compatibility logic such that it enables the remote control client on Android 4.0 devices while continuing to support devices back to Android 2.1.

这篇关于什么是RemoteControlClient在Android 4.0的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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