Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Martin Finkel
LibVLCSharp
Commits
0a47f40e
Commit
0a47f40e
authored
Oct 10, 2018
by
Martin Finkel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add packaging for LibVLCSharp.Forms
parent
ab260880
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
48 deletions
+14
-48
LibVLCSharp.Forms.Sample/:Users:Martz:Projects:LibVLCSharp:LibVLCSharp.Forms:Platforms:Mac:VideoViewRenderer.cs
...harp:LibVLCSharp.Forms:Platforms:Mac:VideoViewRenderer.cs
+0
-43
LibVLCSharp.Forms.nuspec
LibVLCSharp.Forms.nuspec
+10
-5
LibVLCSharp.Forms/LibVLCSharp.Forms.csproj
LibVLCSharp.Forms/LibVLCSharp.Forms.csproj
+1
-0
scripts/build-and-package-libvlcsharp-forms.ps1
scripts/build-and-package-libvlcsharp-forms.ps1
+3
-0
No files found.
LibVLCSharp.Forms.Sample/:Users:Martz:Projects:LibVLCSharp:LibVLCSharp.Forms:Platforms:Mac:VideoViewRenderer.cs
deleted
100644 → 0
View file @
ab260880
using
LibVLCSharp.Forms.Platforms.Mac
;
using
LibVLCSharp.Forms.Shared
;
using
Xamarin.Forms
;
using
Xamarin.Forms.Platform.MacOS
;
[
assembly
:
ExportRenderer
(
typeof
(
VideoView
),
typeof
(
VideoViewRenderer
))]
namespace
LibVLCSharp.Forms.Platforms.Mac
{
public
class
VideoViewRenderer
:
ViewRenderer
<
LibVLCSharp
.
Forms
.
Shared
.
VideoView
,
LibVLCSharp
.
Platforms
.
Mac
.
VideoView
>
{
LibVLCSharp
.
Platforms
.
Mac
.
VideoView
_videoView
;
protected
override
void
OnElementChanged
(
ElementChangedEventArgs
<
VideoView
>
e
)
{
base
.
OnElementChanged
(
e
);
if
(
Control
==
null
)
{
_videoView
=
new
LibVLCSharp
.
Platforms
.
Mac
.
VideoView
(
Element
.
CliOptions
);
SetNativeControl
(
_videoView
);
Element
.
LibVLC
=
Control
.
LibVLC
;
Element
.
MediaPlayer
=
Control
.
MediaPlayer
;
}
if
(
e
.
OldElement
!=
null
)
{
}
if
(
e
.
NewElement
!=
null
)
{
}
}
protected
override
void
Dispose
(
bool
disposing
)
{
base
.
Dispose
(
disposing
);
_videoView
.
Dispose
();
}
}
}
\ No newline at end of file
LibVLCSharp.Forms.nuspec
View file @
0a47f40e
...
...
@@ -3,27 +3,31 @@
<metadata>
<id>
LibVLCSharp.Forms
</id>
<title>
LibVLCSharp.Forms
</title>
<version>
0.0.1
-alpha1
</version>
<version>
0.0.1
</version>
<authors>
VideoLAN
</authors>
<owners>
VideoLAN
</owners>
<requireLicenseAcceptance>
false
</requireLicenseAcceptance>
<summary>
Xamarin Forms integration for LibVLCSharp
</summary>
<description>
Xamarin Forms integration for LibVLCSharp
</description>
<tags>
libvlc vlc videolan native c/c++ video audio forms
</tags>
<tags>
libvlc vlc videolan native c/c++ video audio forms
xamarin
</tags>
<projectUrl>
https://github.com/videolan/libvlcsharp
</projectUrl>
<licenseUrl>
https://github.com/videolan/libvlcsharp/blob/master/LICENSE
</licenseUrl>
<iconUrl>
https://raw.githubusercontent.com/videolan/libvlcsharp/master/Assets/icon.png
</iconUrl>
<dependencies>
<group
targetFramework=
"monoandroid8.1"
>
<dependency
id=
"LibVLCSharp"
version=
"0.0.
1-alpha2
"
/>
<dependency
id=
"LibVLCSharp"
version=
"0.0.
3
"
/>
<dependency
id=
"Xamarin.Forms"
version=
"3.0.0.446417"
/>
</group>
<group
targetFramework=
"xamarinios10"
>
<dependency
id=
"LibVLCSharp"
version=
"0.0.1-alpha2"
/>
<dependency
id=
"LibVLCSharp"
version=
"0.0.3"
/>
<dependency
id=
"Xamarin.Forms"
version=
"3.0.0.446417"
/>
</group>
<group
targetFramework=
"xamarinmac20"
>
<dependency
id=
"LibVLCSharp"
version=
"0.0.3"
/>
<dependency
id=
"Xamarin.Forms"
version=
"3.0.0.446417"
/>
</group>
<group
targetFramework=
"netstandard2.0"
>
<dependency
id=
"LibVLCSharp"
version=
"0.0.
1-alpha2
"
/>
<dependency
id=
"LibVLCSharp"
version=
"0.0.
3
"
/>
<dependency
id=
"Xamarin.Forms"
version=
"3.0.0.446417"
/>
</group>
</dependencies>
...
...
@@ -34,6 +38,7 @@
<files>
<file
src=
"LibVLCSharp.Forms\bin\Release\monoandroid81\LibVLCSharp.Forms.dll"
target=
"lib\MonoAndroid81"
/>
<file
src=
"LibVLCSharp.Forms\bin\Release\xamarin.ios10\LibVLCSharp.Forms.dll"
target=
"lib\Xamarin.iOS10"
/>
<file
src=
"LibVLCSharp.Forms\bin\Release\xamarin.mac20\LibVLCSharp.Forms.dll"
target=
"lib\Xamarin.Mac20"
/>
<file
src=
"LibVLCSharp.Forms\bin\Release\netstandard2.0\LibVLCSharp.Forms.dll"
target=
"lib\.NETStandard2.0"
/>
</files>
</package>
\ No newline at end of file
LibVLCSharp.Forms/LibVLCSharp.Forms.csproj
View file @
0a47f40e
...
...
@@ -26,6 +26,7 @@
<Compile Include="Platforms\iOS\**\*.cs" />
</ItemGroup>
<ItemGroup Condition="$(TargetFramework.StartsWith('Xamarin.Mac'))">
<Reference Include="netstandard" />
<Compile Include="Platforms\Mac\**\*.cs" />
</ItemGroup>
</Project>
\ No newline at end of file
scripts/build-and-package-libvlcsharp-forms.ps1
0 → 100644
View file @
0a47f40e
$msbuild
=
'"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"'
iex
(
"& {0} {1}"
-f
$msbuild
,
"../LibVLCSharp.Forms/LibVLCSharp.Forms.csproj /t:Restore,Clean,Build /p:Configuration=Release"
)
..
\nuget.exe
pack
..
\LibVLCSharp.Forms.nuspec
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment