Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

A Xamarin Forms control to render the native video player on every platform.

License

Notifications You must be signed in to change notification settings

adamfisher/Xamarin.Forms.VideoPlayer

Repository files navigation

Xamarin Forms Video Player

🎉 🎉 🎉

This library is now part of the open source community. Thank you to everyone who made this project possible! The issue queue will no longer be reviewed. If you wish to become a maintainer, please reach out to discuss.

🎉 🎉 🎉

This is the official repository for the Xamarin Forms Video Player component.

  1. Install via NuGet.

  2. Once you install it, Follow the Getting Started guide.

s

Introduction

This Xamarin Forms component that makes it extremely easy to render the native video player on every mobile platform and respond to common video events all from shared Xamarin Forms code. This component provides a highly customizable development experience with a solid foundation to develop rich and visually interesting cross-platform mobile video playback.

This video player does all the heavy lifting for you, allowing you to spend more time focused on making your mobile app great and less on the intricate details of managing network state, decoding and media playback.

A Video Player on Every Platform in 2 Minutes...

This is the simplest example of how to use the video player component that fills an entire page. Just declare the VideoPlayer tag in your XAML Forms page and specify the location of the video file. For more advanced configuration, check out the Getting Started page.

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:o="clr-namespace:Octane.Xamarin.Forms.VideoPlayer;assembly=Octane.Xamarin.Forms.VideoPlayer"
             x:Class="VideoPlayerSamples.VideoPlayerBasicExamplePage"
             Title="Basic Video Player">

    <o:VideoPlayer Source="http://vjs.zencdn.net/v/oceans.mp4" />

</ContentPage>

Native Mobile Performance

This video player component is fully cross-platform between the iOS, Android, and Windows Phone mobile operating systems as it renders the native video player on each platform, taking on the look and feel of the operating system they are running on. This ensures your mobile application looks and works its best on each system supported.

No complex knowledge is required to properly manage the playback of video files. This component handles playback state and renders the native video player for each mobile platform for the best playback performance. Under the hood, this component uses the AVPlayer on iOS, the MediaPlayer on Android, and the MediaElement on Windows Phone.

  • Optimized for Xamarin
  • Cross-platform Xamarin Forms XAML component
  • Can play local files, embedded resources or HTTP(S)-based streamed files from the web
  • Simple configuration
  • Low overhead/footprint
  • Handles and releases resources for you

Platform Requirements

Please make sure the platforms you're targeting meet the minimum requirements listed below.

Platform Minimum Version
iOS 8.0+ Unified
Android 4.1+ (API Level 16)
UWP 10