I'm trying to use system.media but it says it's not found.
Yep. Sounds about right. Because 'media' is different on each platform. and doesn't aggregate naturally to the shared layer.
You can't expect to just do everything the way you did it back in Windows-only coding.
There are some nugets out there to make it easier to deal with different aspects of multiple devices and their media. Just depends on what you're trying to actually do.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies