Commit c44644c6 authored by Martin Finkel's avatar Martin Finkel

Add Windows net40 sample

parent 7357e1ef
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>LibVLCSharp.Windows.Net40.Sample</RootNamespace>
<AssemblyName>LibVLCSharp.Windows.Net40.Sample</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\LibVLCSharp\LibVLCSharp.csproj">
<Project>{d1c3b7c4-713b-46b2-b33a-e9298c819921}</Project>
<Name>LibVLCSharp</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\VideoLAN.LibVLC.Windows.3.0.0\build\VideoLAN.LibVLC.Windows.targets" Condition="Exists('..\packages\VideoLAN.LibVLC.Windows.3.0.0\build\VideoLAN.LibVLC.Windows.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\VideoLAN.LibVLC.Windows.3.0.0\build\VideoLAN.LibVLC.Windows.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\VideoLAN.LibVLC.Windows.3.0.0\build\VideoLAN.LibVLC.Windows.targets'))" />
</Target>
</Project>
\ No newline at end of file
using LibVLCSharp.Shared;
using System;
namespace LibVLCSharp.Windows.Net40.Sample
{
class Program
{
static void Main(string[] args)
{
Core.Initialize();
var libVLC = new LibVLC();
var media = new Media(libVLC, "http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4", Media.FromType.FromLocation);
var mp = new MediaPlayer(media);
mp.Play();
Console.ReadKey();
}
}
}
\ No newline at end of file
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("LibVLCSharp.Windows.Net40.Sample")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LibVLCSharp.Windows.Net40.Sample")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("dafcbc34-7847-4ef9-acc0-e025d6e3fba4")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="VideoLAN.LibVLC.Windows" version="3.0.0" targetFramework="net40" />
</packages>
\ No newline at end of file
......@@ -47,6 +47,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibVLCSharp.WPF.Sample", "S
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LibVLCSharp.Windows.Sample", "Samples\Sample\LibVLCSharp.Windows.Sample.csproj", "{E9858A83-E619-4515-AF14-A87A4C658924}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibVLCSharp.Windows.Net40.Sample", "LibVLCSharp.Windows.Net40.Sample\LibVLCSharp.Windows.Net40.Sample.csproj", "{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
......@@ -725,6 +727,46 @@ Global
{E9858A83-E619-4515-AF14-A87A4C658924}.Release|x64.Build.0 = Release|x64
{E9858A83-E619-4515-AF14-A87A4C658924}.Release|x86.ActiveCfg = Release|x86
{E9858A83-E619-4515-AF14-A87A4C658924}.Release|x86.Build.0 = Release|x86
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Ad-Hoc|x64.Build.0 = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Ad-Hoc|x86.Build.0 = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.AppStore|Any CPU.Build.0 = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.AppStore|iPhone.ActiveCfg = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.AppStore|iPhone.Build.0 = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.AppStore|x64.ActiveCfg = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.AppStore|x64.Build.0 = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.AppStore|x86.ActiveCfg = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.AppStore|x86.Build.0 = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Debug|iPhone.Build.0 = Debug|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Debug|x64.ActiveCfg = Debug|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Debug|x64.Build.0 = Debug|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Debug|x86.ActiveCfg = Debug|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Debug|x86.Build.0 = Debug|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Release|Any CPU.Build.0 = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Release|iPhone.ActiveCfg = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Release|iPhone.Build.0 = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Release|x64.ActiveCfg = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Release|x64.Build.0 = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Release|x86.ActiveCfg = Release|Any CPU
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
......@@ -741,6 +783,7 @@ Global
{D6CC442B-C774-4D7C-B8BA-71FF885FCCC8} = {799A84A2-2161-4676-878B-5610E3586137}
{01CCB934-B77F-4681-86C5-AE4FEE648238} = {799A84A2-2161-4676-878B-5610E3586137}
{E9858A83-E619-4515-AF14-A87A4C658924} = {799A84A2-2161-4676-878B-5610E3586137}
{DAFCBC34-7847-4EF9-ACC0-E025D6E3FBA4} = {799A84A2-2161-4676-878B-5610E3586137}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {AB1424F9-871B-444A-9278-18227672889C}
......
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