martijn00/XamarinMediaManager


Cross platform Xamarin plugin to play and control Audio and Video

https://baseflow.com

License: MIT

Language: C#

Keywords: audio, media, mediamanager, netstandard, nuget, video, xamarin


MediaManager - Cross platform media plugin for Xamarin and Windows

  • Designed to be simple and easy to use
  • Stand alone for easy integration with existing projects and frameworks
  • Native playback of media files from remote and local sources
  • Native media notifications and remote controls
  • Playback status (Playing, Buffering, Loading, Paused, Progress)

Setup & Usage

Build Status:

Build status GitHub tag NuGet MyGet

Platform Support

Platform Supported Version
Xamarin.iOS Yes iOS 7+
Xamarin.Android Yes API 9+
Windows 10 UWP Yes 10+
Windows WPF No
.Net Framework Yes 4.5
.Net Standard Future
Xamarin.Mac Yes 3.0+
Xamarin.tvOS Yes 10.0+
Tizen Yes 4.0+

Example Usage

Add the NuGet package to your PCL

  • In Visual Studio - Tools > NuGet Package Manager > Manage Packages for Solution
  • Select the Browse tab, search for MediaManager
  • Select Plugin.MediaManager
  • Install into each project within your solution

Call MediaManager.Current from any .Net library or Xamarin project to gain access to APIs.

await CrossMediaManager.Current.Play("http://www.montemagno.com/sample.mp3");

See Sample for more details.

IMPORTANT

Android:

  • You must request AccessWifiState, Internet, MediaContentControl and WakeLock permissions

iOS:

  • In order for the audio to contiunue to play in the background you have to add the Audio and Airplay Background mode to your Info.plist
  • If you want to enable RemoteControl features, you will have to override UIApplication.RemoteControlReceived(UIEvent) and forward the event to the MediaManagerImplementation.MediaRemoteControl.RemoteControlReceived(UIEvent) method. See the sample application for more details.
  • If you are playing audio from a http resource you have to take care of ATS.
  • If you want to display a artwork/cover that is embedded into an MP3 file, make sure that you use ID3 v2.3 (not v2.4).

Tizen:

  • You must request http://tizen.org/privilege/internet, http://tizen.org/privilege/mediastorage, and http://tizen.org/privilege/externalstorage privileges

Contributors

Project Statistics

Sourcerank 11
Repository Size 6.92 MB
Stars 287
Forks 180
Watchers 48
Open issues 165
Dependencies 296
Contributors 21
Tags 15
Created
Last updated
Last pushed

Top Contributors See all

Martijn van Dijk Felix Schoeler Erlend Angelsen Joe Martinez Casper Skoubo Mike Rowley Simon Schick Philipp Tischhauser Jonas BtrJay Tomasz Cielecki Benjamin Krämer Brandon Minnick Nick Randolph John Thiriet Andrei escamoteur aiviet Vinicius Cândido Nicolas Knoll

Packages Referencing this Repo

MediaManager.Unofficial.Forms
Package Description
Latest release 1.0.2.1 - Updated - 287 stars
Plugin.MediaManager.ExoPlayer
ExoPlayer supports more advanced video and audio playback. This is based on the MediaManager plugin
Latest release 0.4.5 - Updated - 287 stars
Youscribe.Plugin.MediaManager
Customized XamarinMediaManager
This package is no longer available on NuGet
Xam.Plugin.MediaManager
Cross platform Xamarin plugin to play Media from PCL. Currently only supports audio playback on A...
Latest release 0.0.1 - Published - 287 stars
Plugin.MediaManager.Reactive
Reactive extensions for the MediaManager plugin
Latest release 0.4.5 - Updated - 287 stars
MediaManager.Unofficial
Package Description
Latest release 1.0.2 - Published - 287 stars
MediaManager.Unofficial.ExoPlayer
Package Description
Latest release 1.0.2 - Published - 287 stars
MediaManager.Unofficial.Reactive
Package Description
Latest release 1.0.2 - Published - 287 stars
Plugin.MediaManager.Forms
Support for bindings in Xamarin Forms
Latest release 0.4.5 - Updated - 287 stars
Plugin.MediaManager
Cross platform Xamarin plugin to play Media from PCL. Supports audio and video playback on Androi...
Latest release 0.4.5 - Updated - 287 stars

Recent Tags See all

0.4.4 August 21, 2017
0.4.3 July 28, 2017
0.4.3 July 28, 2017
0.4.2 July 28, 2017
0.4.2 July 28, 2017
0.4.0 March 17, 2017
0.3.3 February 21, 2017
0.3.2 February 20, 2017
0.3.1 February 20, 2017
0.3.0 February 15, 2017
0.2.0 January 31, 2017
0.1.4 January 27, 2017
0.0.9 October 17, 2016
0.0.8 October 13, 2016
0.0.7 September 29, 2016

Interesting Forks See all

modplug/XamarinMediaManager
Cross platform Xamarin plugin to play Media from PCL
C# - MIT - Last pushed - 1 stars

Something wrong with this page? Make a suggestion

Last synced: 2019-01-08 05:19:14 UTC

Login to resync this repository