I recently sarted working with bluetooth devices in Java with the target to build a programm, which can stream music from a smartphone app (e.g. Spotify, Google music player, VLC for Android, ...) to a PC/Laptop.
For communication with bluetooth devices I use bluecove.
The pairing works fine, but I can't find a possibility to create a A2DP or HSP client. According to a thread I found on google code this is because bluecove (or JSR-82 implementations in general) doesn't support "audio streaming".
Am I out of luck with java for this project? Or is there another possibility to stream music from a smartphone to a PC/Laptop via bluetooth?
Related
I had managed to start broadcasting to RTMP from OBS software.
For RTMP with Ngix, I used this tutorial. For PlayBack in android I used https://github.com/josemmo/libvlc-android
To stream to RTMP I used OBS software https://obsproject.com
Everything works well so far.
My question is can I broadcast from my android phone without using OBS software aka I want to use my phone camera to broadcast directly to RTMP server.
https://play.google.com/store/apps/details?id=com.dev47apps.droidcam&hl=en&gl=US
Similar function like Droidcam
Prefer ionic-react, but if no choice, i could try native android with java.
Update: I found this Android Library https://github.com/pedroSG94/rtmp-rtsp-stream-client-java
And did manage to record from camera but still missing on how to add key.
I did manage with this library
https://github.com/begeekmyfriend/yasea
It is quite easy.
As all users of Windows Phone 10 know, the Bluetooth connectivity on this system is cutted to the simplest for end-user, which ends for programmers as a horror to create anything. When connecting to a device, system automatically looks for a "functions" that device has, for ex. audio. The questions are as following:1. How to define a function like that on external Android device? The main goal is, to control all types of music playback from it (ex. Groove music playing)2. Where can i find a list of things like this, for future app functions?
And to get ahead of answers, I already tried the easier ways, which came to nothing due to UWP limits of controlling other apps playback.
Main target of project is to make a xamarin c# (or java, I can "translate" from one to another with ease) android app for a smartwatch and in c# uwp for windows phone to do most common tasks, like - as mentioned before - music playback control and notifications reciever.
Based on your description, you want to develop an Android app to send Bluetooth command to control the music player of a windows phone device, then it depends on your Bluetooth of your android device.
But control music player by Bluetooth need the profile Avrcp I have check the google Bluetooth API I did not find the profile of Avrcp, I think it is may be hard to send the Avrcp command at the android application level.
And Android is source opened, many device factories prefer to customize their own Android system, it is possible that the device uses a Bluetooth module as a serial device, then the official Bluetooth APIs are not suitable for this scenario, the develop protocol of this Bluetooth module is in need.
I have a cloud music player as an Android application and I recently added Chromecast support. The problem is some of the songs I have are lossless. Chromecast audio supports lossless streaming but classic Chromecast (the Video one) does not.
Is there a way in Android to detect if the Chromecast I am connected to is Chromecast Audio or not?
I expect you'd be able to distinguish between the two based on the device capabilities exposed in the CastDevice class; try CastDevice.hasCapability(int capability) for the appropriate capability.
Basically, I am asking how to reverse the Android Beam program, which sends a message from an Android Phone that has NFC capabilities, to eclipse on my PC via an NFC reader. I have no idea where to start. I CAN FIND NO DOCUMENTATION ON WHERE TO GET STARTED ONLINE, OTHERWISE I WOULD USE THAT INSTEAD OF POSTING MY QUESTION HERE.
Android Beam uses the SNEP protocol over the LLCP communication link between 2 Android NFC devices. So you need an LLCP implementation and a SNEP layer on top of that. A project that provides this (and more) is nfcpy.
I am looking for a simple direction pointer here. I am wanting to try communicating from an android tabled to a java program. send/receiving data over USB interface. Help would include API references (like libraries i should look into for both android java and standard java) or links to tuts if you know any or simple ideas. Thanks in advance! I contonue searching.
**EDIT**
I am still lost. I don't know where to begin so I will restate my question in hopes for more answers. I am looking to connect an android tablet to my computer through usb and be able to send/receive string data to a custom java application. I have to use usb as the situation will not permit Bluetooth or wifi. An example would be a java(PC) application that sends an x,y coordinate to an android tablet, and the tablet draws that coordinate and a user touches the screen and the android tablet sends an x,y coordinate to the java application to the pc. I can do this with an arduino so the PC java application is not an issue, just the android java app.
A good place to start would be the "USB Host and Accessory" guide in the Android developer guides.
If data volume is low you might just copy files back and forth by using MTP file transfer protocol which is readily available on almost any Android device and easy to use.