Platforms to show: All Mac Windows Linux Cross-Platform
Answer:
You need to get a media reservation.
Use the plugin function AcquireMediaReservation and later release it using ReleaseMediaReservation.
See plugin examples on how to use it and check Apples DiscRecording framework documentation for more details.