O'Reilly logo

Xamarin Mobile Application Development for iOS by Paul F. Johnson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Multimedia

This is a very vast topic. Thankfully, using a camera has been covered at the start of this chapter. Just about everything you need is inside the MonoTouch.MediaPlayer namespace. As with using a camera, it is important that you first check that the device has video capabilities in exactly the same way as you do for a camera (in fact, it uses the same IsSourceTypeAvailable(myCamera) command as used for a camera).

Playing a video

As with webView, a video can be external to the device or internal; if it is internal, it could be part of the bundle (not a good idea as video takes up a lot of space on a device, which will result in long download times), or within the My Document area (downloaded), or in the photo reel.

External URL

The video ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required