Xam.Plugins.Android.ExoPlayer.Hls 2.19.1

Requires NuGet 2.14 or higher.

dotnet add package Xam.Plugins.Android.ExoPlayer.Hls --version 2.19.1                
NuGet\Install-Package Xam.Plugins.Android.ExoPlayer.Hls -Version 2.19.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xam.Plugins.Android.ExoPlayer.Hls" Version="2.19.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xam.Plugins.Android.ExoPlayer.Hls --version 2.19.1                
#r "nuget: Xam.Plugins.Android.ExoPlayer.Hls, 2.19.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xam.Plugins.Android.ExoPlayer.Hls as a Cake Addin
#addin nuget:?package=Xam.Plugins.Android.ExoPlayer.Hls&version=2.19.1

// Install Xam.Plugins.Android.ExoPlayer.Hls as a Cake Tool
#tool nuget:?package=Xam.Plugins.Android.ExoPlayer.Hls&version=2.19.1                

ExoPlayer Plugin for Xamarin

license Build status NuGet NuGet Pre Release GitHub tag MyGet

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: [email protected]
  • Powered by: baseflow.com

Documentation

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

License

  • ExoPlayerXamarin plugin is licensed under MIT
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Xam.Plugins.Android.ExoPlayer.Hls:

Package Downloads
Xam.Plugins.Android.ExoPlayer

Xamarin bindings for ExoPlayer

Xam.Plugins.Android.AmazonExoPlayerPort

Xamarin bindings for Amazon ExoPlayer Port

Flutnet.Plugins.VideoPlayer.Android

Xamarin.Android bindings for Flutter Video Player plugin (video_player)

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.19.1 180,097 8/28/2023
2.19.1-xamarin1 573 8/29/2023
2.18.11 37,204 2/23/2023
2.18.10 89,468 2/16/2023
2.18.10-xamarin1 1,524 3/23/2023
2.18.9 1,445 2/6/2023
2.18.9-xamarin.1 1,520 2/6/2023
2.18.8 8,746 12/8/2022
2.18.7 306 12/7/2022
2.18.6 4,310 11/29/2022
2.18.5 420 11/18/2022
2.18.4 380 11/15/2022
2.18.3 1,560 9/2/2022
2.16.1 5,437 9/2/2022
2.14.6 5,273 8/29/2022
2.14.3 585 8/11/2022
2.14.2 549 8/9/2022
2.11.8 386,833 8/10/2020
2.11.7 545 8/10/2020
2.11.6 16,916 6/24/2020
2.11.4 4,061 3/4/2020
2.11.3 826 2/24/2020
2.9.8 111,550 10/8/2019
2.9.7 9,546 7/5/2019
2.9.6 4,382 5/9/2019
2.9.0 2,523 9/28/2018
2.8.8 166,352 8/27/2018
2.8.7 1,627 8/14/2018
2.8.6 1,054 8/10/2018
2.8.5 4,043 8/1/2018
2.8.4 35,222 7/10/2018
2.8.3 2,849 6/1/2018
2.8.2 2,570 5/31/2018
2.8.1 1,115 5/29/2018
2.8.0 1,269 5/10/2018
2.7.3 6,828 4/23/2018
2.7.2 2,622 4/5/2018
2.6.0 37,523 11/28/2017
2.5.3 49,064 9/25/2017
2.5.2 3,638 9/13/2017
2.5.1.2 2,564 8/22/2017
2.5.1.1 1,775 8/21/2017
2.5.1 1,770 8/21/2017