hdmi

Black bars with HDMI Adapter on iPad 2

别来无恙 提交于 2019-12-21 02:51:50
问题 My app supports HDMI Output. I asked the code for the resolution of the TV and got 1920 x 1080 px for externalScreen.bounds OK, everything fine. I've setup my views and tried it on the TV ... BUT: There were black bars on the bottom / top / sides of the screen though the TV was detected correctly as 1920 x 1080 and my view is also set up correctly? Why is the format wrong? P.S. When I mirror the home screen, it also shows the bars, when I watch a video with the Youtube App, the black bars

Android - disable HDMI

若如初见. 提交于 2019-12-13 11:58:34
问题 One of my Android projects needs to switch between 2 HDMI inputs from time to time, possibly once a minute. One HDMI input is from an android device's HDMI output and one is from an external, uncontrollable source. I found an HDMI switch that automatically switches between 2 sources when the signal becomes available. My question is, is there a way to temporarily (one minute for example) cut HDMI output of my Android device so that the switch can automatically use the second HDMI input? Then,

Android force HDMI audio

六月ゝ 毕业季﹏ 提交于 2019-12-12 12:13:43
问题 My ADT-1 does not play sound over HDMI when connected to the TV. On that specific TV I had to force HDMI audio on the Raspberry PI, so I'm trying to force it on the ADT-1 as well. I tried making an app with the permission <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> And using an AudioManager instance to change the settings AudioManager manager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); Log.d(TAG, "ATTACHED: " + manager.getParameters("attached

Capturing audio frames from HDMI IN port

有些话、适合烂在心里 提交于 2019-12-11 18:09:52
问题 I have a rooted HiSense GoogleTV which has HDMI IN and OUT ports. What I want to do is to record about 10 secs of the audio from the HDMI IN (from the set-top box). I am new to this, so please bear with me. Is this possible to do this on a rooted device? Does the HDMI data get decrypted (due to HDCP) after the HDMI IN and re-encrypted before it is routed out via HDMI out? If I were to try to capture the audio frames on a regular Linux box, how should I go about it? What components should I

Detect if HDMI is connected via event

僤鯓⒐⒋嵵緔 提交于 2019-12-11 04:24:02
问题 I want to detect in my Android application if a HDMI cable is connected. I found a way how to do that: private boolean isHdmiSwitchSet() { // The file '/sys/devices/virtual/switch/hdmi/state' holds an int -- if it's 1 then an HDMI device is connected. // An alternative file to check is '/sys/class/switch/hdmi/state' which exists instead on certain devices. File switchFile = new File("/sys/devices/virtual/switch/hdmi/state"); if (!switchFile.exists()) { switchFile = new File("/sys/class/switch

Keep alpha-transparency of a video through HDMI

我的梦境 提交于 2019-12-10 11:27:19
问题 The scenario I'm dealing with is actually as follow: I need to get the screen generated by OpenGL and send it through HDMI to a FPGA component while keeping the alpha channel. But right now the data that is being sent through HDMI is only RGB (24bit without alpha channel) So i need a way to force sending the Alpha bits through this port somehow. See image: http://i.imgur.com/hhlcbb9.jpg One solution i could think of is to convert the screen buffer from RGBA mode to RGB while mixing the Alpha

Samsung TV (anynet+) control with Android Device using HDMI CEC

狂风中的少年 提交于 2019-12-08 03:14:50
问题 I am using command line to control the TV like power on, power off, volume up and volume down from rooted Android Device. i am able to power on and power off using the following command. Process p; try { p = Runtime.getRuntime().exec("su"); DataOutputStream os = new DataOutputStream(p.getOutputStream()); os.writeBytes("su" + "\n"); // power on command os.writeBytes("echo 0x40 0x04" > /sys/class/cec/cmd" + "\n"); os.writeBytes("exit\n"); os.flush(); } catch (IOException e) { e.printStackTrace(

Can we turn on/off hdmi settings from our app programmatically

点点圈 提交于 2019-12-07 16:23:38
问题 I want to load hdmi settings (check box Turn on HDMI, HDMI Resolution Selection dialog box) in my custom app activity. And if I change these settings in my custom app the settings will be changed in actual device settings. Is it possible? Thanks any help will be appreciated. 回答1: Those are unique to your device -- normal Android devices with HDMI support (e.g., Nexus 10) do not have such settings. Hence, please call your device manufacturer and ask them if they have an API for such settings.

Use libCEC + USB dongle in Android app

天涯浪子 提交于 2019-12-07 01:15:32
问题 My goal is to send HDMI CEC commands from a standard (i.e non-system) app running on an Android box equipped with Pulse-Eight's USB dongle. Following these instructions I successfully managed to compile libcec for Android and execute it as root on the box, with this command: echo <my-cec-command> | cec-client -s /dev/ttyACM0 where /dev/ttyACM0 is the device file created by the system when plugging the dongle. However the permissions of this file prevent the command to be executed by a non

Keep alpha-transparency of a video through HDMI

旧城冷巷雨未停 提交于 2019-12-06 10:32:39
The scenario I'm dealing with is actually as follow: I need to get the screen generated by OpenGL and send it through HDMI to a FPGA component while keeping the alpha channel. But right now the data that is being sent through HDMI is only RGB (24bit without alpha channel) So i need a way to force sending the Alpha bits through this port somehow. See image: http://i.imgur.com/hhlcbb9.jpg One solution i could think of is to convert the screen buffer from RGBA mode to RGB while mixing the Alpha channels within the RGB buffer. For example: The original buffer: [R G B A][R G B A][R G B A] The