Questions tagged [headphones]

146 questions
2
votes
0 answers

Reading battery level from bluetooth A2DP devices Android

I'm trying to read battery level of my bluetooth headphones(Skullcandy Method Wireless). So far, i'm successful in receiving connectivity broadcast when headphones are connected, connect to GATT via bluetoothDevice.connectGatt(). //getting device …
Siva
  • 355
  • 1
  • 6
  • 19
2
votes
1 answer

What is the equivalent of AVRCP for Bluetooth low energy?

Exactly what is the equivalent of that profile(AVRCP) that I can implement on BLE device? Remember the control unit on a Bluetooth headphone(play/pause, next/previous)? My goal is to make that control unit using BLE. The sound is still coming out…
TC Ling
  • 29
  • 1
2
votes
1 answer

Disconnecting headphones with audiokit running gives malloc error with AKOperationEffect specifically

// My code is below do{ file = try AKAudioFile(readFileName: "Sound1.mp3", baseDir: .resources) // file = try AKAudioFile(forReading: SingletonClass.sharedInstance.recordedURLs[SingletonClass.sharedInstance.recordedURL]!) // …
2
votes
3 answers

Unable to pair Bose qc35 with Ubuntu 16.04 via bluetooth

I am trying to pair my new Bose qc35 with my Ubuntu 16.04 machine via bluetooth. I tried this answer but it did not work. When i go into bluetoothctl i can find the headphones, but when i try and pair i get the following error: [bluetooth]#…
Paul
  • 63
  • 1
  • 6
2
votes
0 answers

iPhone: force audio output to speaker with headphones plugged in

It seems that the accepted way of doing this is to set the AV category to AVAudioSessionCategoryPlayAndRecord, and then set the property kAudioSessionOverrideAudioRoute_Speaker. I'm using the category AVAudioSessionCategoryPlayback, because it gives…
Rick Clark
  • 33
  • 1
  • 6
2
votes
1 answer

wired headphones plugged in and out

I need an event executing when user plugs in/out wired headphones, it made in HTC sense player. android.media.AudioManager doesn't generate an event, it even doesn't return a correct value with isWiredHeadsetOn() How can I know if wired headset…
Spin7ion
  • 87
  • 2
  • 7
2
votes
0 answers

Bluetooth Pairing rejects during attempt to programmatically connect BT in android

I am trying to connect the Bluetooth device (BT headphone) programmatically with my android app. The issue I am facing is in for first couple of attempts it fails to connect the device and says "Pairing Rejected". then after it connects…
MMJ
  • 519
  • 1
  • 9
  • 26
2
votes
1 answer

Is it feasible to transfer data with iphone's headphone jack

Question 1: Is it feasible? (As far as I know [info get from google], it is feasible. However, I need a more affirmative answer.) Question 2: Say I have a device that generates square wave, how can I get the message? As a beginner, I want to know to…
Vincent Yang
  • 189
  • 1
  • 12
2
votes
0 answers

HSP profile implementation?

Currently I am writing an application that uses bluetoothctl (but not BlueZ). Is it possible to use HSP/HFP profiles somehow? I had googled a lot, but I didn't find any solution. And would it be difficult to write a simple implementation? I saw…
Dmitry
  • 33
  • 6
2
votes
1 answer

Objective-C: Change iOS headphones buttons actions

I need to bind own actions on iOS headphones buttons. For play/pause action i found solution: Add audio background in .xcodeproj Implement method remoteControlReceivedWithEvent Set self as firstResponder I can't set my class as first responder,…
Viktor
  • 1,020
  • 1
  • 9
  • 22
2
votes
0 answers

Is there any way to detect a button press on headphone volume control with Java?

I'm running Windows 7 and was curious if there was any way to use Java to tell when a button on the apple headphones was pressed. I searched around and didn't find much. If anyone knows anything, help would be much appreciated, thanks in advance!
Notorio
  • 23
  • 2
2
votes
0 answers

Force iPhone to read in data through headphone jack

I'm working on a project that ask the iPhone to receive data through headphone jack. I know it is doable, when I plug in the iPhone headphone it automatically change the input from the mac built in microphone to external microphone (I'm running the…
Magic
  • 385
  • 1
  • 5
  • 13
2
votes
2 answers

check whether headphones are plugged in when app starts

I'm sorry about asking this question which is discussed here many times once again. But none of the answers haven't really helped me. All I need is to put some simple code in a viewDidLoad to check whether the headphones are plugged in or are not.…
TomasJ
  • 289
  • 8
  • 21
2
votes
1 answer

MEDIA_BUTTON button event ACTION_DOWN and ACTION_UP received at the same time

In my app I want to measure how long the media button press was. I registered a broadcastReceiver that listens to the media button press: (please excuse stupid mistakes as I am a beginner...)
Geva Tal
  • 340
  • 3
  • 14
2
votes
1 answer

Intercept long media button press and disable Google Now

I wish to start a reciever\service that recieves the long press from the headset button and disables the Google Now voice recognition feature. Is that possible or is the Google Now response hard-coded to be in higher priority prior to Jelly…
Geva Tal
  • 340
  • 3
  • 14