This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.\LVST.exe --help | |
LVST 1.0.0 | |
Copyright (C) 2020 LVST | |
-v, --verbose Set output to verbose messages. | |
-t, --torrent The torrent link to download and play | |
-c, --cast Cast to the chromecast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Retrieve a video frame from the Unity plugin as a texture. | |
/// </summary> | |
/// <param name="updated">True if the video frame has been updated</param> | |
/// <returns>A decoded texture</returns> | |
public IntPtr GetTexture(out bool updated) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<StackLayout> | |
<ListView x:Name="ItemsListView" | |
ItemsSource="{Binding Items}" | |
VerticalOptions="FillAndExpand" | |
HasUnevenRows="true" | |
RefreshCommand="{Binding LoadItemsCommand}" | |
IsPullToRefreshEnabled="true" | |
IsRefreshing="{Binding IsBusy, Mode=OneWay}" | |
CachingStrategy="RecycleElement" | |
ItemSelected="OnItemSelected"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Item(Media media) | |
{ | |
Media = media; | |
Name = media.Meta(MetadataType.Title); | |
IsDirectory = media.Type == MediaType.Directory; | |
Type = IsDirectory ? "Directory" : "File"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Core.Initialize(); | |
_libVLC = new LibVLC(); | |
foreach (var md in _libVLC.MediaDiscoverers(MediaDiscovererCategory.Lan)) | |
{ | |
var discoverer = new MediaDiscoverer(_libVLC, md.Name); | |
discoverer.MediaList.ItemAdded += MediaList_ItemAdded; | |
discoverer.MediaList.ItemDeleted += MediaList_ItemDeleted; | |
discoverer.Start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void PanUpdated(object sender, PanUpdatedEventArgs e) | |
{ | |
switch (e.StatusType) | |
{ | |
case GestureStatus.Running: | |
if (ScreenWidth > 0 && ScreenHeight > 0) | |
{ | |
double range = Math.Max(ScreenWidth, ScreenHeight); | |
float yaw = (float)(Fov * -e.TotalX / range);// up/down | |
float pitch = (float)(Fov * -e.TotalY / range);// left/right |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override void OnSizeAllocated(double width, double height) | |
{ | |
base.OnSizeAllocated(width, height); | |
ScreenWidth = width; | |
ScreenHeight = height; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool Is360Video => _media.Tracks[0].Data.Video.Projection == VideoProjection.Equirectangular; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal void OnGesture(PanUpdatedEventArgs e) | |
{ | |
switch (e.StatusType) | |
{ | |
case GestureStatus.Running: | |
if (e.TotalX < 0 && Math.Abs(e.TotalX) > Math.Abs(e.TotalY)) | |
{ | |
var timeDiff = Convert.ToInt64(e.TotalX * 1000); | |
_finalTime = MediaPlayer.Time + timeDiff; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ContentPage.Content> | |
<Grid> | |
<Grid.GestureRecognizers> | |
<PanGestureRecognizer PanUpdated="PanUpdated"/> | |
</Grid.GestureRecognizers> | |
<AbsoluteLayout HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"> | |
<vlc:VideoView x:Name="videoView" MediaPlayer="{Binding MediaPlayer}" | |
AbsoluteLayout.LayoutBounds="0,0,1,1" | |
AbsoluteLayout.LayoutFlags="All" | |
InputTransparent="True"/> |
NewerOlder