1.0-dev7 (Video adding panel added)

This commit is contained in:
2022-02-26 14:32:34 +01:00
Unverified
parent 96a7953500
commit f571a42995
95 changed files with 1436 additions and 227 deletions

View File

@@ -1,8 +1,9 @@
using System.Threading.Tasks;
using System.Threading;
using System.Threading.Tasks;
namespace VDownload.Core.Interfaces
{
internal interface IPlaylistService
public interface IPlaylistService
{
#region PROPERTIES
@@ -15,9 +16,9 @@ namespace VDownload.Core.Interfaces
#region METHODS
Task GetMetadataAsync();
Task GetMetadataAsync(CancellationToken cancellationToken = default);
Task GetVideosAsync(int numberOfVideos);
Task GetVideosAsync(int numberOfVideos, CancellationToken cancellationToken = default);
#endregion
}

View File

@@ -12,13 +12,16 @@ namespace VDownload.Core.Interfaces
{
#region PROPERTIES
// VIDEO PROPERTIES
string ID { get; }
Uri VideoUrl { get; }
string Title { get; }
string Author { get; }
DateTime Date { get; }
TimeSpan Duration { get; }
long Views { get; }
Uri Thumbnail { get; }
Stream[] Streams { get; }
#endregion
@@ -27,10 +30,10 @@ namespace VDownload.Core.Interfaces
#region METHODS
// GET VIDEO METADATA
Task GetMetadataAsync();
Task GetMetadataAsync(CancellationToken cancellationToken = default);
// GET VIDEO STREAMS
Task GetStreamsAsync();
Task GetStreamsAsync(CancellationToken cancellationToken = default);
// DOWNLOAD VIDEO
Task<StorageFile> DownloadAndTranscodeAsync(StorageFolder downloadingFolder, Stream audioVideoStream, MediaFileExtension extension, MediaType mediaType, TimeSpan trimStart, TimeSpan trimEnd, CancellationToken cancellationToken = default);