Coder Social home page Coder Social logo

agoraio / basic-audio-broadcasting Goto Github PK

View Code? Open in Web Editor NEW
46.0 48.0 43.0 333 KB

Sample app to join/leave a channel, set the role as a host/audience, mute/unmute, and switch between the speaker/headset.

License: MIT License

Java 57.71% Objective-C 26.12% Swift 16.16%
voice-broadcasting agora

basic-audio-broadcasting's Introduction

Basic Audio Broadcasting

This Project has been deprecated and archived. We will stop maintain it. Please look at https://github.com/AgoraIO/API-Examples for latest Agora Samples.

English | 中文

Agora provides a set of sample applications demonstrating how to get live voice broadcasting integrated directly into your applications using the Agora Voice SDK.

Sample applications for live voice broadcasting are provided for Android, iOS.

The live voice broadcasting sample applications, demonstrate how to:

  • Join / leave channel
  • Set role as broadcaster or audience
  • Mute / unmute audio
  • Switch speaker

Platforms Supported

Project Folder Name Platform Description
OpenLive-Voice-Only-Android Android Android live voice broadcasting
OpenLive-Voice-Only-iOS-Objective-C iOS(Objective-C) iOS live voice broadcasting(Objective-C)
OpenLive-Voice-Only-iOS iOS(Swift) iOS live voice broadcasting(Swift)

Contact Us

  • For potential issues, take a look at our FAQ first
  • Dive into Agora SDK Samples to see more tutorials
  • Take a look at Agora Use Case for more complicated real use case
  • Repositories managed by developer communities can be found at Agora Community
  • You can find full API documentation at Document Center
  • If you encounter problems during integration, you can ask question in Stack Overflow
  • You can file bugs about this sample at issue

License

All sample applications are licensed under the MIT License (MIT). View the license.

basic-audio-broadcasting's People

Contributors

brianxcli avatar cavansu avatar digitallysavvy avatar icywind avatar plutoless avatar prwrl avatar samyak-jain avatar sunz10 avatar williamdxz avatar zontan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

basic-audio-broadcasting's Issues

How to fetch current live channel list?

At any given point in time, How to fetch current live channels that a user can join? Is there are callback that returns a list of all the channels that are live currently along with some meta info about the channel like total time the channel has been in live state?

This is an interactive audio scenario when a user can join a channel with audience as a profile.

Also How to detect if a channel name already exists and is live correctly and that this name should not be allowed?
eg Two broadcasters cannot use same name if one is already live in broadcast state

App crashes on launch.

I am able to get the project compiling but it crashes as soon as it launches. I've tested this on a physical Samsung Galaxy S8 and an emulated Pixel 3. Both produce the same results.

It seems to be crashing on line 15 in AGApplication.java.

mWorkerThread.start();

It produces the error:

E/AndroidRuntime: FATAL EXCEPTION: Thread-6
    Process: io.agora.openlive.voice.only, PID: 13997
    java.lang.RuntimeException: NEED TO check rtc sdk init fatal error
    java.lang.IllegalArgumentException: cannot initialize Agora Rtc Engine, error=101
        at io.agora.rtc.internal.RtcEngineImpl.nativeObjectInit(Native Method)
        at io.agora.rtc.internal.RtcEngineImpl.<init>(RtcEngineImpl.java:185)
        at io.agora.rtc.RtcEngine.create(RtcEngine.java:65)
        at io.agora.openlive.voice.only.model.WorkerThread.ensureRtcEngineReadyLock(WorkerThread.java:183)
        at io.agora.openlive.voice.only.model.WorkerThread.run(WorkerThread.java:97)
    
        at io.agora.openlive.voice.only.model.WorkerThread.ensureRtcEngineReadyLock(WorkerThread.java:186)
        at io.agora.openlive.voice.only.model.WorkerThread.run(WorkerThread.java:97)

I have tried integrating the SDK through JCenter using the provided Gradel configuration as well as manually integrating the SDK that I downloaded from Agora.

I am using the Android SDK for Agora.io in my application and trying to implement live audio broadcasting.Getting error

java.lang.ClassCastException: android.support.multidex.MultiDexApplication cannot be cast to com.addemo.mdp.voice_test.AGApplication at com.addemo.mdp.voice_test.ui.BaseActivity.checkSelfPermission(BaseActivity.java:108) at com.addemo.mdp.voice_test.ui.BaseActivity.checkSelfPermissions(BaseActivity.java:85) at com.addemo.mdp.voice_test.ui.BaseActivity.access$000(BaseActivity.java:38) at com.addemo.mdp.voice_test.ui.BaseActivity$2.run(BaseActivity.java:75)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.