how to stream video from vlc in c#
C#
class Program
{
static void Main(string[] args)
{
FileInfo file = new FileInfo(@"C:\Users\Jman\VideoMaker.avi");
var currentDirectory = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
// Default installation path of VideoLAN.LibVLC.Windows
var libDirectory =
new DirectoryInfo(Path.Combine(currentDirectory, "libvlc", IntPtr.Size == 4 ? "win-x86" : "win-x64"));
using (var mediaPlayer = new Vlc.DotNet.Core.VlcMediaPlayer(libDirectory))
{
var mediaOptions = new[]
{
":sout=#rtp{sdp=rtsp://192.168.1.162:8008/test}",
":sout-keep"
};
//mediaPlayer.SetMedia(new Uri("http://hls1.addictradio.net/addictrock_aac_hls/playlist.m3u8"),
// mediaOptions);
mediaPlayer.SetMedia(file, mediaOptions);
mediaPlayer.Play();
Console.WriteLine("Streaming on rtsp://192.168.1.162:8008/test");
Console.WriteLine("Press any key to exit");
Console.ReadKey();
}
}
}
Also in C#:
- Title
- transform.Translate movement
- Category
- C#
- Title
- trello
- Category
- C#
- Title
- c# enum default
- Category
- C#
- Title
- Assets/Scripts/Snake.cs(187,10): error CS0029: Cannot implicitly convert type `UnityEngine.Vector2Int' to `System.Collections.Generic.List<UnityEngine.Vector2Int>'
- Category
- C#
- Title
- degree between two points latitude longitude c#
- Category
- C#
- Title
- c# move with arrow keys
- Category
- C#
- Title
- c# resize bitmap
- Category
- C#
- Title
- unity accessing 2d pointlight from c# script
- Category
- C#
- Title
- c sharp split by newline
- Category
- C#
- Title
- wpf datatrigger enum binding
- Category
- C#
- Title
- parsing string to int c#
- Category
- C#
- Title
- c# region tag
- Category
- C#
- Title
- c# getter setter
- Category
- C#
- Title
- c# create dynamic object
- Category
- C#
- Title
- javascript append
- Category
- C#
- Title
- bool toggle unity c#
- Category
- C#
- Title
- C# Into To Tring Debug.Log
- Category
- C#
- Title
- c# get current directory xamarin
- Category
- C#
- Title
- how to cjeck if a string has a word c#
- Category
- C#
- Title
- c# cheat sheet
- Category
- C#
- Title
- uwp file open picker
- Category
- C#
- Title
- c# convert dictionary to anonymous object
- Category
- C#
- Title
- how to locate a specific element in a list c#
- Category
- C#
- Title
- c# check internet connection easy
- Category
- C#
- Title
- unity rotate object c#
- Category
- C#
- Title
- check which activity in focus in android
- Category
- C#
- Title
- declare string array c# without size
- Category
- C#
- Title
- c# iorderedenumerable to dictionary
- Category
- C#
- Title
- defining vectors in c#
- Category
- C#
- Title
- c# double question mark
- Category
- C#
- Title
- C# save pdf stream to file
- Category
- C#
- Title
- c# 2 timespan return yesterday
- Category
- C#
- Title
- C# get pc language
- Category
- C#
- Title
- error CS0542
- Category
- C#
- Title
- iframe set html content c#
- Category
- C#
- Title
- position eines fenster ändern visual studio
- Category
- C#
- Title
- how to remove vowels from a sttring using regex c#
- Category
- C#
- Title
- how does Pow work C#
- Category
- C#
- Title
- no entity framework provider found for the ado.net provider with invariant name
- Category
- C#
- Title
- while loop in c#
- Category
- C#
- Title
- wpf make size fill all grid
- Category
- C#
- Title
- unity find object by name
- Category
- C#
- Title
- jump script unity 2d
- Category
- C#
- Title
- lista generica como parametro de un metodo en c#
- Category
- C#
- Title
- c# bitmap to array byte
- Category
- C#
- Title
- Move player on planets in unity 2d
- Category
- C#
- Title
- c# to vb.net
- Category
- C#
- Title
- how to detected WindowCloseEvent in other window wpf
- Category
- C#
- Title
- how to set progress openedge driver name for odbc connection c#
- Category
- C#
- Title
- what data type should be for contact number in asp.net
- Category
- C#
- Title
- download and run exe c# 1 button
- Category
- C#
- Title
- git set origin
- Category
- C#
- Title
- c# two dimensional array
- Category
- C#
- Title
- Execute code every x seconds with Update()
- Category
- C#
- Title
- radians to degree c#
- Category
- C#
- Title
- mailkit send attachment
- Category
- C#
- Title
- condition when a animation finishes in unity
- Category
- C#
- Title
- unity set sprite transparency
- Category
- C#
- Title
- response redirect new tab
- Category
- C#
- Title
- unity c# set gameobject active
- Category
- C#
- Title
- query associative table ef6
- Category
- C#
- Title
- c# loop through list
- Category
- C#
- Title
- isprime c#
- Category
- C#
- Title
- c# get desktop path
- Category
- C#
- Title
- how to change text to bold through script unity
- Category
- C#
- Title
- how to hide and show object in unity script
- Category
- C#
- Title
- open zip file in c#
- Category
- C#
- Title
- Microsoft.AspNetCore.Components.Forms.InputSelect`1.TryParseValueFromString(String value, TValue& result, String& validationErrorMessage)
- Category
- C#
- Title
- how to add an embedded resource in visual studio code
- Category
- C#
- Title
- unity3d debug pause
- Category
- C#
- Title
- unity randomly generated numbers c#
- Category
- C#
- Title
- c# loop
- Category
- C#
- Title
- asp.net model display name
- Category
- C#
- Title
- how to raycast unit
- Category
- C#
- Title
- cannot convert string to generic type c#
- Category
- C#
- Title
- IEnumerator
- Category
- C#
- Title
- unity monobehaviour
- Category
- C#
- Title
- convert double to currency c#
- Category
- C#
- Title
- c# global enumerator
- Category
- C#
- Title
- downlaod file and use C#
- Category
- C#
- Title
- check if network is available c#
- Category
- C#
- Title
- unity how to make jump script
- Category
- C#
- Title
- unity up arrow input
- Category
- C#
- Title
- c# dictionaries
- Category
- C#
- Title
- dictionary c#
- Category
- C#
- Title
- httpclient soap request c#
- Category
- C#
- Title
- wpf get name of clicked element
- Category
- C#
- Title
- how to stream video from vlc in c#
- Category
- C#
- Title
- c# polymorphism
- Category
- C#
- Title
- debug.log unity
- Category
- C#
- Title
- lazy loading c#
- Category
- C#
- Title
- c# skip following code in loop
- Category
- C#
- Title
- c# listview
- Category
- C#
- Title
- how to spawn coins randomly around the screen unity 2d
- Category
- C#
- Title
- c# read all text from a file
- Category
- C#
- Title
- move towards target unity
- Category
- C#
- Title
- unity 2d platformer movement script c#
- Category
- C#
- Title
- prefab gets character transform
- Category
- C#
- Title
- 2d character controller unity
- Category
- C#
- Title
- c# ?
- Category
- C#