Post

Replies

Boosts

Views

Activity

Comment on Turn on ARView.ARSession.ARConfiguration.providesAudioData = true and add a ModelEntity to ARView (its Material is VideoMaterial (avPlayer: player) this video contains audio), and the video does not play properly?
These new attempts, but still don't work, may be because there is a conflict between the audio capture and audio playback of ARWorldTrackingConfiguration, which may need to be modified similar to these: let audioSession = AVAudioSession.sharedInstance() try? audioSession.setCategory(.playAndRecord, mode: .default, options: [.allowBluetooth, .mixWithOthers, .defaultToSpeaker]) try? audioSession.setActive(true, options: .notifyOthersOnDeactivation) Is there any way to modify it in RealityKit?
Jun ’24