AudioDidact\SupportedSites\CRTV
Class CRTV
Synopsis
class CRTV
extends SupportedSite
{
- // members
- private $thumbnailURL;
- // Inherited members from SupportedSite
- protected Video $video;
- // methods
- public void __construct()
- private array getVideoInfo()
- public void downloadThumbnail()
- public void downloadVideo()
- public static void supportsURL()
- private void getM3U8Playlist()
- // Inherited methods from SupportedSite
- public static void supportsURL()
- public static bool|string getDuration()
- public static bool|string getDurationSeconds()
- public static bool allDownloadedVideo()
- public void allDownloaded()
- public abstract void downloadThumbnail()
- public abstract void downloadVideo()
- public void applyArt()
- public void convert()
- protected bool downloadWithPercentage()
- public Video getVideo()
- public static void echoErrorJSON()
Hierarchy
Coverage
Methods | 0% | 0 / 6 |
Lines | 2.3% | 2 / 87 |
Members
Methods
private
public
- __construct() — CRTV constructor. Gets the video information, checks for it in the user's feed.
- downloadThumbnail() — Download thumbnail using videoID from Brightcove
- downloadVideo()
- supportsURL()
Inherited from AudioDidact\SupportedSites\SupportedSite
protected
- downloadWithPercentage() — Download the video to $localFile with a given $url While downloading output progress to UI as JSON array
public
- allDownloaded()
- allDownloadedVideo() — Checks if all thumbnail, video, and mp3 are downloaded and have a length (ie. video or audio are not null)
- applyArt()
- convert() — Converts mp4 video to mp3 audio using ffmpeg
- downloadThumbnail()
- downloadVideo()
- echoErrorJSON()
- getDuration() — Get duration of media file from ffmpeg
- getDurationSeconds() — Get duration in seconds of media file from ffmpeg
- getVideo() — Returns the current Video object
- supportsURL()