Xam.Plugins.Android.ExoPlayer
2.19.1
Requires NuGet 2.14 or higher.
dotnet add package Xam.Plugins.Android.ExoPlayer --version 2.19.1
NuGet\Install-Package Xam.Plugins.Android.ExoPlayer -Version 2.19.1
<PackageReference Include="Xam.Plugins.Android.ExoPlayer" Version="2.19.1" />
paket add Xam.Plugins.Android.ExoPlayer --version 2.19.1
#r "nuget: Xam.Plugins.Android.ExoPlayer, 2.19.1"
// Install Xam.Plugins.Android.ExoPlayer as a Cake Addin #addin nuget:?package=Xam.Plugins.Android.ExoPlayer&version=2.19.1 // Install Xam.Plugins.Android.ExoPlayer as a Cake Tool #tool nuget:?package=Xam.Plugins.Android.ExoPlayer&version=2.19.1
ExoPlayer Plugin for Xamarin
Xamarin bindings library for the Google ExoPlayer library.
ExoPlayer is an application level media player for Android. It provides an alternative to Android’s MediaPlayer API for playing audio and video both locally and over the Internet. ExoPlayer supports features not currently supported by Android’s MediaPlayer API, including DASH and SmoothStreaming adaptive playbacks. Unlike the MediaPlayer API, ExoPlayer is easy to customize and extend, and can be updated through Play Store application updates.
Support
- Feel free to open an issue. Make sure to use one of the templates!
- Commercial support is available. Integration with your app or services, samples, feature request, etc. Email: hello@baseflow.com
- Powered by: baseflow.com
Documentation
- The developer guide provides a wealth of information.
- The class reference documents ExoPlayer classes.
- The release notes document the major changes in each release.
- Follow our developer blog to keep up to date with the latest ExoPlayer developments!
Using ExoPlayer
The ExoPlayer plugin is available on Nuget.
var HttpDataSourceFactory = new DefaultHttpDataSource.Factory().SetAllowCrossProtocolRedirects(true);
var MainDataSource = new ProgressiveMediaSource.Factory(HttpDataSourceFactory);
var Exoplayer = new IExoPlayer.Builder(Context).SetMediaSourceFactory(MainDataSource).Build();
MediaItem mediaItem = MediaItem.FromUri(Android.Net.Uri.Parse("https://ia800806.us.archive.org/15/items/Mp3Playlist_555/AaronNeville-CrazyLove.mp3"));
Exoplayer.AddMediaItem(mediaItem);
Exoplayer.Prepare();
Exoplayer.PlayWhenReady = true;
See the Exoplayer.Droid sample app for further details.
IMPORTANT: Exoplayer 2.9.0 and up requires Visual Studio 2019 with R8 and D8. You also need to enable AAPT2. Readmore at: https://devblogs.microsoft.com/xamarin/androids-d8-dexer-and-r8-shrinker/
Thanks to
- Nathan Barger for doing the initial porting work
- MKuckert for helping with bindings and samples
- bspinner for helping with bindings and samples
License
- ExoPlayerXamarin plugin is licensed under MIT
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-android33.0 is compatible. net7.0-android was computed. net7.0-android33.0 is compatible. net8.0-android was computed. |
-
net6.0-android33.0
- Xam.Plugins.Android.ExoPlayer.Common (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.Core (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.Dash (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.Database (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.DataSource (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.Decoder (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.Extractor (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.Hls (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.Rtsp (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.SmoothStreaming (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.Transformer (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.UI (>= 2.19.1)
-
net7.0-android33.0
- Xam.Plugins.Android.ExoPlayer.Common (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.Core (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.Dash (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.Database (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.DataSource (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.Decoder (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.Extractor (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.Hls (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.Rtsp (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.SmoothStreaming (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.Transformer (>= 2.19.1)
- Xam.Plugins.Android.ExoPlayer.UI (>= 2.19.1)
NuGet packages (13)
Showing the top 5 NuGet packages that depend on Xam.Plugins.Android.ExoPlayer:
Package | Downloads |
---|---|
Plugin.MediaManager
Cross platform .NET Xamarin plugin to play and control Audio and Video |
|
CommunityToolkit.Maui.MediaElement
MediaElement is a view for playing video and audio in your .NET MAUI app. |
|
Ziggeo.XamarinSDK.Netstandard
Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only several lines of code in your app. |
|
Beezy.AdaptiveCards.Droid.Bindings
Microsoft adaptive card for Xamarin Android |
|
Plugin.MediaManager.ExoPlayer
ExoPlayer supports more advanced video and audio playback. This is based on the MediaManager plugin |
GitHub repositories (4)
Showing the top 4 popular GitHub repositories that depend on Xam.Plugins.Android.ExoPlayer:
Repository | Stars |
---|---|
CommunityToolkit/Maui
The .NET MAUI Community Toolkit is a community-created library that contains .NET MAUI Extensions, Advanced UI/UX Controls, and Behaviors to help make your life as a .NET MAUI developer easier
|
|
Baseflow/XamarinMediaManager
Cross platform Xamarin plugin to play and control Audio and Video
|
|
o1298098/Xamarin-CloudMusic
Xamarin.Forms goodlooking UI sample
|
|
functionland/fx-files
You want to literally own your files? This is something won't happen on traditional cloud services in a lifetime. And this is something is going to happen in a glance with "Fx Files" app from now on. It is a file manager which stores everything on Fula blockchain network of Bloxes.
|
Version | Downloads | Last updated |
---|---|---|
2.19.1 | 207,184 | 8/28/2023 |
2.19.1-xamarin1 | 980 | 8/29/2023 |
2.18.11 | 40,658 | 2/23/2023 |
2.18.10 | 91,508 | 2/16/2023 |
2.18.10-xamarin1 | 1,895 | 3/23/2023 |
2.18.9 | 1,965 | 2/6/2023 |
2.18.9-xamarin.1 | 1,547 | 2/6/2023 |
2.18.8 | 9,429 | 12/8/2022 |
2.18.7 | 821 | 12/7/2022 |
2.18.6 | 4,683 | 11/29/2022 |
2.18.5 | 906 | 11/18/2022 |
2.18.4 | 840 | 11/15/2022 |
2.18.3 | 2,222 | 9/2/2022 |
2.16.1 | 2,355 | 9/2/2022 |
2.14.6 | 6,020 | 8/29/2022 |
2.14.3 | 1,110 | 8/11/2022 |
2.14.2 | 1,025 | 8/9/2022 |
2.11.8 | 360,798 | 8/10/2020 |
2.11.7 | 1,064 | 8/10/2020 |
2.11.6 | 17,555 | 6/24/2020 |
2.11.4 | 4,821 | 3/4/2020 |
2.11.3 | 1,471 | 2/24/2020 |
2.9.8 | 112,250 | 10/8/2019 |
2.9.7 | 10,074 | 7/5/2019 |
2.9.6 | 4,991 | 5/9/2019 |
2.9.0 | 3,129 | 9/28/2018 |
2.8.8 | 70,274 | 8/27/2018 |
2.8.7 | 2,228 | 8/14/2018 |
2.8.6 | 1,560 | 8/10/2018 |
2.8.5 | 4,767 | 8/1/2018 |
2.8.4 | 26,700 | 7/10/2018 |
2.8.3 | 3,397 | 6/1/2018 |
2.8.2 | 3,189 | 5/31/2018 |
2.8.1 | 1,646 | 5/29/2018 |
2.8.0 | 1,824 | 5/10/2018 |
2.7.3 | 7,450 | 4/23/2018 |
2.7.2 | 3,302 | 4/5/2018 |
2.6.0 | 29,640 | 11/28/2017 |
2.5.3 | 48,973 | 9/25/2017 |
2.5.2 | 3,523 | 9/13/2017 |
2.5.1.2 | 2,468 | 8/22/2017 |
2.5.1.1 | 1,655 | 8/21/2017 |
2.5.1 | 1,686 | 8/21/2017 |
2.2.0 | 13,490 | 3/9/2017 |
2.1.1 | 6,831 | 12/27/2016 |
2.0.4.1 | 56,075 | 10/31/2016 |
2.0.4 | 6,290 | 10/21/2016 |
1.5.11.1 | 10,561 | 10/20/2016 |
1.5.11 | 1,638 | 10/20/2016 |
1.5.10 | 2,713 | 8/25/2016 |
1.5.8 | 10,588 | 5/13/2016 |
1.5.6 | 6,318 | 3/3/2016 |
1.5.4 | 1,722 | 2/1/2016 |
1.5.3 | 1,793 | 1/12/2016 |
1.5.2 | 1,884 | 12/1/2015 |
1.4.2 | 1,764 | 9/9/2015 |
1.3.3 | 1,729 | 7/15/2015 |
0.0.0.3 | 2,152 | 2/4/2015 |
0.0.0.2 | 2,022 | 1/15/2015 |
0.0.0.1 | 2,030 | 1/12/2015 |