Jump to content
  • 0

How do I set options to only stream audio on Android?


tDܤ
 Share

Question

I am making a radio streaming service in android environment.
So I want the Publisher to only stream audio.
I have some questions about this.

1.If you look at the android sample in the documentation,
  intent.putExtra (EXTRA_CAPTURETOTEXTURE_ENABLED, true) It looks like setting options for putExtra.
  How do I set options to only stream audio?

2. Where can I find more detailed usage manuals that can be streamed on Android?
   For example, I want to know the exact purpose of an option flag like EXTRA_CAPTURETOTEXTURE_ENABLED and so on.

3. How can I get the audio volume of streaming?

4. I want to stream music files stored on my phone or YouTube music.
    What should I do when streaming external music? 

5. Signal channel closed with code CONNECTION_LOST error occurs when connecting to "wss: //".
    When connecting with "ws: //", it works normally.
    How can I connect to wss: //?
Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0
Hi,

1. EXTRA_VIDEO_CALL could be used. Please have a look at source code of  WebRTCClient.java:
boolean videoCallEnabled = intent.getBooleanExtra(CallActivity.EXTRA_VIDEO_CALL, true);
If you set this to false, video will be disabled.

2. There is this documentation:https://github.com/ant-media/Ant-Media-Server/wiki/Step-by-Step-Guide-to-Build-WebRTC-Native-Android-App, other than that you can look at the source code.

3. Please have a look at here: https://stackoverflow.com/questions/4593552/how-do-you-get-set-media-volume-not-ringtone-volume-in-android/5446346#5446346

4. Please investigate AudioSource class.

5. wss connects on https only, ws connects on http.

Best regards,

On Thursday, September 19, 2019 at 4:32:07 AM UTC+2, 다이아몬드스텝 wrote:
I am making a radio streaming service in android environment.
So I want the Publisher to only stream audio.
I have some questions about this.

1.If you look at the android sample in the documentation,
  intent.putExtra (EXTRA_CAPTURETOTEXTURE_ENABLED, true) It looks like setting options for putExtra.
  How do I set options to only stream audio?

2. Where can I find more detailed usage manuals that can be streamed on Android?
   For example, I want to know the exact purpose of an option flag like EXTRA_CAPTURETOTEXTURE_ENABLED and so on.

3. How can I get the audio volume of streaming?

4. I want to stream music files stored on my phone or YouTube music.
    What should I do when streaming external music? 

5. Signal channel closed with code CONNECTION_LOST error occurs when connecting to "wss: //".
    When connecting with "ws: //", it works normally.
    How can I connect to wss: //?
Link to comment
Share on other sites

 Share

×
×
  • Create New...