Exoplayer xamarin forms sample

ossentooossentoo GBMember ✭✭
edited February 2017 in Xamarin.Forms

Hi

Has anyone managed to get a sample working using the latest Exoplayer nuget package?

I've spent ages trying to get this to work, but Found it very difficult due to either build errors or exceptions once my sample deploys to Android.

https://github.com/martijn00/ExoPlayerXamarin

Unfortunately the sample uses v1.5.8 of the package, but the package has actually been upgraded to version 2. Also, it uses MvvmCross as opposed to Xamarin Forms.

https://www.nuget.org/packages/Xam.Plugins.Android.ExoPlayer/

If anyone has a working sample on GitHub or elsewhere it would be great to see how Exoplayer actually works for Android and whether it is actually something we can use.

I've forked the repo from above to fix deployment errors:

https://github.com/ossentoo/ExoPlayerXamarin

Note how when this project is deployed to an emulator, it fails on this line:

Line 135 (MvxVideoPlayerActivity.cs): SetContentView(Resource.Layout.activity_videoplayer);

with the error:

Object reference not set to an instance of an object

Thanks

Tagged:
Sign In or Register to comment.