打开电脑,为Android手机基座 [英] Turn pc to a dock for android phones

查看:273
本文介绍了打开电脑,为Android手机基座的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从我的手机让所有的音频通过通过USB接口连接到通过我的电脑音箱。有谁知道如何实现的呢?我试着写一些codeS让我的电脑被确认为我星系S2手机的一个码头。

I'm trying to get all the audio from my phone to go through my computer speakers via connecting through USB. Does anyone know how to achieve it? I'm trying to write some codes to let my pc being recognized as a dock for my galaxy s2 cell phone.

感谢您

推荐答案

有这样做,除非一个给定的供应商都有它作为一个自定义扩展的标准方法。

There's no standard way of doing that, unless a given vendor has implemented it as a custom extension.

它实际上是会更容易做一些流过wifi的机制,而不是通过USB电缆做到这一点,除非你利用SDK的ADB工具或USB-圈养能力获得通过有线网络连接。

It's actually going to be easier to do some stream-over-wifi mechanism than to do it over the USB cable, unless you leverage the SDK's adb tool or a USB-tethering capability to get a network connection via the cable.

但是,你将面临的一个关键问题是,在无根设备的第三方Android应用无法获得许可拦截音频从其他不相关的应用来。

But a key problem that you will face is that 3rd party android apps on non-rooted devices cannot get permission to intercept audio coming from other unrelated applications.

愚蠢的,因为它的声音,如果你希望你的电脑是一个码头对任意应用程序的音频,你可能需要一个3.5mm模拟立体声跳线。或者有可能是它可以砍死像立体声耳机到手机的几个PC的蓝牙适配器。

Silly as it sounds, if you want your pc to be a "dock" for arbitrary application audio, you'll probably need a 3.5mm analog stereo patch cord. Or there might be a few PC bluetooth adapters which can be hacked to look like stereo headsets to the phone.

如果您是要播放的内容通过特殊的软件选择的歌曲,我敢肯定,你可以在市场上找到一个WiFi流光应用程序或使自己的;或者您也可以从PC使用USB大容量存储或MTP访问设备上的文件(取决于Android版本)和基于PC的播放器播放。

If you are content to play songs chosen by special software, I'm sure you can find a wifi streamer applications on the market or make your own; or you can access the files on the device from the PC using usb mass storage or MTP (depending on Android version) and play them in a PC-based player.

修改你猜怎么着刚刚在谷歌IO宣布2012

http://developer.android.com/tool​​s/adk/ adk2.html#音频坞

USB音频接口实现其中一个重要的新特性
  与ADK 2012介绍的是通过USB播放音频的能力
  连接。这一创新被引入作为更新到Android
  打开附件(AOA)协议2.0,并提供设备上运行
  搭载Android 4.1(API等级16)及更高版本。

USB Audio Dock Implementation One of the important new features introduced with the ADK 2012 is the ability to play audio over a USB connection. This innovation was introduced as an update to Android Open Accessory (AOA) protocol 2.0 and is available on devices running Android 4.1 (API Level 16) and higher.

该ADK 2012提供了此功能的参考实现
  对于配件的开发。没有软件应用需要是
  只安装了连接的Andr​​oid设备上,开发商配件
  需要支持AOA V2。

The ADK 2012 provides a reference implementation of this functionality for accessory developers. No software application is required to be installed on the connected Android device, accessory developers only need to support AOA v2.

假设存在的USB主机将是一个小的嵌入式主板,但我不明白为什么你不能让一台PC做任务的一端,至少如果你设法得到任何现有的驱动程序安装在PC上的出路。

The assumption there is that the USB host would be a small embedded board, but I don't see why you couldn't get a PC to do that end of the task, at least if you manage to get any existing drivers installed on the PC out of the way.

当然缺点是,你需要的是Android 4.1或更高版本的设备......这样没有多少电话了。但是,如果你用的方法生根走,你可以尝试创建一个兼容的,或至少是相似的界面。

Of course the downside is that you need an Android 4.1 or greater device... not many phones like that out. But if you go with the rooting method, you could try to create a compatible or at least similar interface.

这篇关于打开电脑,为Android手机基座的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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