GithubHelp home page GithubHelp logo

digits88 / xamarinmediamanager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from baseflow/xamarinmediamanager

0.0 1.0 0.0 6.5 MB

Cross platform Xamarin plugin to play and control Audio and Video from PCL

License: MIT License

C# 97.58% PowerShell 1.57% Shell 0.85%

xamarinmediamanager's Introduction

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+

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).

Contributors

xamarinmediamanager's People

Contributors

martijn00 avatar fela98 avatar modplug avatar jmartine2 avatar simonsimcity avatar bubavanhalen avatar mike-rowley avatar myrobotzone avatar johnthiriet avatar aiviet avatar nickrandolph avatar brminnick avatar escamoteur avatar candidodmv avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.