1.0-dev6 (Option bar added and code cleaned)
This commit is contained in:
18
VDownload.Core/Interfaces/IAStream.cs
Normal file
18
VDownload.Core/Interfaces/IAStream.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using VDownload.Core.Enums;
|
||||
|
||||
namespace VDownload.Core.Interfaces
|
||||
{
|
||||
public interface IAStream
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
Uri Url { get; }
|
||||
bool IsChunked { get; }
|
||||
StreamType StreamType { get; }
|
||||
int AudioBitrate { get; }
|
||||
string AudioCodec { get; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
24
VDownload.Core/Interfaces/IPlaylistService.cs
Normal file
24
VDownload.Core/Interfaces/IPlaylistService.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VDownload.Core.Interfaces
|
||||
{
|
||||
internal interface IPlaylistService
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
string ID { get; }
|
||||
string Name { get; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region METHODS
|
||||
|
||||
Task GetMetadataAsync();
|
||||
|
||||
Task GetVideosAsync(int numberOfVideos);
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
20
VDownload.Core/Interfaces/IVStream.cs
Normal file
20
VDownload.Core/Interfaces/IVStream.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using VDownload.Core.Enums;
|
||||
|
||||
namespace VDownload.Core.Interfaces
|
||||
{
|
||||
public interface IVStream
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
Uri Url { get; }
|
||||
bool IsChunked { get; }
|
||||
StreamType StreamType { get; }
|
||||
int Width { get; }
|
||||
int Height { get; }
|
||||
int FrameRate { get; }
|
||||
string VideoCodec { get; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
60
VDownload.Core/Interfaces/IVideoService.cs
Normal file
60
VDownload.Core/Interfaces/IVideoService.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using VDownload.Core.Enums;
|
||||
using VDownload.Core.Objects;
|
||||
using Windows.Storage;
|
||||
|
||||
namespace VDownload.Core.Interfaces
|
||||
{
|
||||
public interface IVideoService
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
string ID { get; }
|
||||
string Title { get; }
|
||||
string Author { get; }
|
||||
DateTime Date { get; }
|
||||
TimeSpan Duration { get; }
|
||||
long Views { get; }
|
||||
Uri Thumbnail { get; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region METHODS
|
||||
|
||||
// GET VIDEO METADATA
|
||||
Task GetMetadataAsync();
|
||||
|
||||
// GET VIDEO STREAMS
|
||||
Task GetStreamsAsync();
|
||||
|
||||
// DOWNLOAD VIDEO
|
||||
Task<StorageFile> DownloadAndTranscodeAsync(StorageFolder downloadingFolder, Stream audioVideoStream, MediaFileExtension extension, MediaType mediaType, TimeSpan trimStart, TimeSpan trimEnd, CancellationToken cancellationToken = default);
|
||||
Task<StorageFile> DownloadAndTranscodeAsync(StorageFolder downloadingFolder, Stream audioVideoStream, MediaFileExtension extension, MediaType mediaType, CancellationToken cancellationToken = default);
|
||||
Task<StorageFile> DownloadAndTranscodeAsync(StorageFolder downloadingFolder, IAStream audioStream, IVStream videoStream, VideoFileExtension extension, TimeSpan trimStart, TimeSpan trimEnd, CancellationToken cancellationToken = default);
|
||||
Task<StorageFile> DownloadAndTranscodeAsync(StorageFolder downloadingFolder, IAStream audioStream, IVStream videoStream, VideoFileExtension extension, CancellationToken cancellationToken = default);
|
||||
Task<StorageFile> DownloadAndTranscodeAsync(StorageFolder downloadingFolder, IAStream audioStream, AudioFileExtension extension, TimeSpan trimStart, TimeSpan trimEnd, CancellationToken cancellationToken = default);
|
||||
Task<StorageFile> DownloadAndTranscodeAsync(StorageFolder downloadingFolder, IAStream audioStream, AudioFileExtension extension, CancellationToken cancellationToken = default);
|
||||
Task<StorageFile> DownloadAndTranscodeAsync(StorageFolder downloadingFolder, IVStream videoStream, VideoFileExtension extension, TimeSpan trimStart, TimeSpan trimEnd, CancellationToken cancellationToken = default);
|
||||
Task<StorageFile> DownloadAndTranscodeAsync(StorageFolder downloadingFolder, IVStream videoStream, VideoFileExtension extension, CancellationToken cancellationToken = default);
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region EVENT HANDLERS
|
||||
|
||||
event EventHandler DownloadingStarted;
|
||||
event EventHandler<ProgressChangedEventArgs> DownloadingProgressChanged;
|
||||
event EventHandler DownloadingCompleted;
|
||||
event EventHandler ProcessingStarted;
|
||||
event EventHandler<ProgressChangedEventArgs> ProcessingProgressChanged;
|
||||
event EventHandler ProcessingCompleted;
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user