Hello,
now I have not find the AVPlayerNode
Please try using AVAudioEngine
to play the audio, then fine the AVPlayerNode
by visiting the MainMixerNode
property. For example, I create a custom player class.
public class AudioPlayer
{
public AVAudioEngine Engine { get; set; } = new AVAudioEngine();
public AVAudioPlayerNode Player { get; set; }= new AVAudioPlayerNode();
public AudioPlayer()
{
Engine.AttachNode(Player);
Engine.Connect(Player,Engine.MainMixerNode,null);
Engine.MainMixerNode.InstallTapOnBus(0, 2048, null, (buffer, when) => {
});
Engine.Prepare();
// NSError e = new NSError();
// Engine.StartAndReturnError(out e);
}
}
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.