Skip to content

Commit

Permalink
Fix id and names
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn00 committed Apr 11, 2019
1 parent 4b2864f commit afaa77f
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Directory.build.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<RepositoryType>git</RepositoryType>
<Product>$(AssemblyName) ($(TargetFramework))</Product>
<NeutralLanguage>en</NeutralLanguage>
<Version>1.0.0</Version>
<Version>0.5.0</Version>

<LangVersion>latest</LangVersion>
<NoWarn>$(NoWarn);1591;1701;1702;1705;VSX1000</NoWarn>
Expand Down
5 changes: 3 additions & 2 deletions MediaManager.Forms/MediaManager.Forms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
<PropertyGroup>
<AssemblyName>MediaManager.Forms</AssemblyName>
<RootNamespace>MediaManager.Forms</RootNamespace>
<PackageId>MediaManager.Forms</PackageId>
<PackageId>Plugin.MediaManager.Forms</PackageId>
<Description>Cross platform Xamarin plugin to play and control Audio and Video</Description>
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="3.2.0.839982" />
<PackageReference Include="Xamarin.Forms" Version="3.4.0.1039999" />
<Compile Remove="Platforms\**\*.cs" />
<None Include="Platforms\**\*.cs" />
<None Include="Resources\*.cs" />
Expand Down
34 changes: 34 additions & 0 deletions MediaManager.Forms/Platforms/Ios/VideoViewRenderer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using System;
using Foundation;
using MediaManager;
using MediaManager.Forms;
using MediaManager.Forms.Platforms.iOS;
using MediaManager.Platforms.Ios.Video;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;

[assembly: ExportRenderer(typeof(VideoView), typeof(VideoViewRenderer))]
namespace MediaManager.Forms.Platforms.iOS
{
[Preserve(AllMembers = true)]
public class VideoViewRenderer : ViewRenderer<VideoView, MediaManager.Platforms.Ios.Video.VideoSurface>
{
private MediaManager.Platforms.Ios.Video.VideoSurface _videoSurface;

public static void Init()
{
var temp = DateTime.Now;
}

protected override void OnElementChanged(ElementChangedEventArgs<VideoView> e)
{
base.OnElementChanged(e);
if (Control == null)
{
_videoSurface = new VideoSurface(Control);
SetNativeControl(_videoSurface);
CrossMediaManager.Current.MediaPlayer.SetPlayerView(_videoSurface);
}
}
}
}
3 changes: 2 additions & 1 deletion MediaManager/MediaManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
<PropertyGroup>
<AssemblyName>MediaManager</AssemblyName>
<RootNamespace>MediaManager</RootNamespace>
<PackageId>MediaManager</PackageId>
<PackageId>Plugin.MediaManager</PackageId>
<Description>Cross platform Xamarin plugin to play and control Audio and Video</Description>
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>

Expand Down

0 comments on commit afaa77f

Please sign in to comment.