Skip to content

0.5.0 - Other Canvas ID Types

Latest
Compare
Choose a tag to compare
@maxxfrazer maxxfrazer released this 31 Jul 10:15
· 5 commits to main since this release
708548a

Update Canvas IDs new default way is:

ForEach(Array(agoraManager.allUsers), id: \.self) { uid in
    AgoraVideoCanvasView(manager: agoraManager, canvasId: .userId(uid))
        .aspectRatio(contentMode: .fit).cornerRadius(10)
}

This enables joinChannelEx video views as well as media source inputs:
canvasId: .userIdEx(uid, rtcConnection)
canvasId: .mediaSource(.mediaPlayer, mediaPlayerId: mediaPlayer.getMediaPlayerId())