Giter Club home page Giter Club logo

Comments (3)

PrashantKT avatar PrashantKT commented on June 3, 2024

Uploaded my channel manager

AgoraCallChannelManager.txt

In App delegate how I handle voip push

```
func pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, for type: PKPushType, completion: @escaping () -> Void) {
    print(payload.dictionaryPayload)
    NSLog("AGORA PUSH PAYLOAD %@", payload.dictionaryPayload)
    channelManager.joinChannel(channel: "room_name_call_\(UserDefaults.standard.string(forKey: "USER_PHONE") ?? "")", completion: { [weak self] in
    
        NSLog("AGORA CHANNEL JOINED")
        NSLog("PUSH JOINED %@", "I JOINED YES")

        
        DispatchQueue.main.asyncAfter(deadline: .now() + 2, execute: {
            
            let callUUID = UUID()
            self?.reportIncomingCall(uuid: callUUID, handle: "test", isVideo: true)
            
            self?.channelManager.sendText(string: "INCOMING_CALL_SHOWED")
            
            NSLog("AGORA MESSAGE SENT INCOMING_CALL_SHOWED")

            
            self?.channelManager.messageRecived = {[weak self] (string) in
                if string == "END_CALL" {
                    self?.channelManager.leaveChannel {
                        
                    }
                    self?.callManager.endCall(call: Call(uuid: callUUID, handle: "test"))
                }
            }
            
            
            completion()
            
        })
        
        

    })

    
}

from advanced-video.

plutoless avatar plutoless commented on June 3, 2024

@PrashantKT the data stream goes with video stream which is sent via udp, so it's true it can be lost. The issue you described partially it's because of device limitation (the video stream is cut or reduced priority when going to backend or lock screen), on the other hand, if you wish to have sth stable for signaling service, it's recommended to use a standard signaling SDK instead of using our data stream api. If you really want to use it, maybe you can send redundant pacakges and remove duplication in receiver side.
Hope this helps.

from advanced-video.

PrashantKT avatar PrashantKT commented on June 3, 2024

Okay thanks updated with Singling sdk

from advanced-video.

Related Issues (20)

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.