Commit 7eda19fe authored by Martin Finkel's avatar Martin Finkel

Bump Gestures sample dependencies

parent a893ceea
......@@ -50,12 +50,12 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="LibVLCSharp.Forms">
<Version>0.7.0</Version>
<Version>3.2.1</Version>
</PackageReference>
<PackageReference Include="VideoLAN.LibVLC.Android">
<Version>3.0.0</Version>
<Version>3.1.2</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="3.6.0.264807" />
<PackageReference Include="Xamarin.Forms" Version="4.2.0.778463" />
<PackageReference Include="Xamarin.Android.Support.Design" Version="28.0.0.1" />
<PackageReference Include="Xamarin.Android.Support.v7.AppCompat" Version="28.0.0.1" />
<PackageReference Include="Xamarin.Android.Support.v4" Version="28.0.0.1" />
......
......@@ -149,12 +149,12 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="LibVLCSharp.Forms">
<Version>0.7.0</Version>
<Version>3.2.1</Version>
</PackageReference>
<PackageReference Include="VideoLAN.LibVLC.iOS">
<Version>3.1.5-alpha</Version>
<Version>3.1.5</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="3.6.0.264807" />
<PackageReference Include="Xamarin.Forms" Version="4.2.0.778463" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
<ItemGroup>
......
......@@ -10,8 +10,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="LibVLCSharp.Forms" Version="0.7.0" />
<PackageReference Include="Xamarin.Forms" Version="3.6.0.264807" />
<PackageReference Include="LibVLCSharp.Forms" Version="3.2.1" />
<PackageReference Include="Xamarin.Forms" Version="4.2.0.778463" />
</ItemGroup>
<ItemGroup>
......
......@@ -38,7 +38,7 @@ namespace Gestures
MediaPlayer = new MediaPlayer(_libVLC)
{
Media = new Media(_libVLC,
"https://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4",
"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4",
FromType.FromLocation)
};
}
......
......@@ -25,14 +25,8 @@ namespace Gestures
_libVLC = new LibVLC();
_media = new Media(_libVLC, "https://streams.videolan.org/streams/360/eagle_360.mp4", FromType.FromLocation);
if (Device.RuntimePlatform == Device.Android)
{
var mc = new MediaConfiguration();
mc.EnableHardwareDecoding();
_media.AddOption(mc);
}
_mediaPlayer = new MediaPlayer(_media) { EnableHardwareDecoding = true };
_mediaPlayer = new MediaPlayer(_media);
videoView.MediaPlayer = _mediaPlayer;
videoView.MediaPlayer.Play();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment