MCPcopy Create free account

hub / github.com/cfinke/Channel-Two / functions

Functions27 in github.com/cfinke/Channel-Two

↓ 10 callersFunctionadd_base
( $path )
parse-schedule.php:307
↓ 6 callersFunctionqueueNextProgramming
()
channel-two.js:473
↓ 3 callersFunctiongetNextContentFromCron
* Given a cron pattern, find the next video that should be played. * For a file or URL, it's the file or URL. For a directory, it's the video that c
channel-two.js:692
↓ 3 callersFunctionindex_file
* Index a given file and its metadata. */
parse-schedule.php:220
↓ 2 callersFunctionadBreak
* Potentially take a break for some ads. * * @return bool Whether a break was scheduled and taken.
channel-two.js:342
↓ 2 callersFunctiondecodePathParts
* Decode the individual directories and filenames in a path without encoding the slashes.
channel-two.js:1201
↓ 2 callersFunctionencodePathParts
* Encode the individual directories and filenames in a path without encoding the slashes.
channel-two.js:1179
↓ 2 callersFunctionfiles_in_dir_deep
* Find all files in a given directory, including files within subfolders (and their subfolders, etc.) */
parse-schedule.php:260
↓ 2 callersFunctiongetLastPlay
( cron )
channel-two.js:923
↓ 2 callersFunctiongetPlayHistory
* Get the stored play history -- a hash keyed by cron pattern containing the last video path that finished (or was interrupted). * * @return Objec
channel-two.js:883
↓ 2 callersFunctionplay
* Play a given file in the video player.
channel-two.js:573
↓ 2 callersFunctionsaveLastPlay
( cron, file )
channel-two.js:915
↓ 2 callersFunctionsecondsLeftInCurrentProgram
()
channel-two.js:1070
↓ 2 callersFunctionsetCaptionStatus
()
channel-two.js:663
↓ 1 callersFunctionaddCaptions
( path )
channel-two.js:642
↓ 1 callersFunctionexisting_duration
( $path )
parse-schedule.php:59
↓ 1 callersFunctiongetCaptions
* If a caption file is available for a file, return its path. * * @return int|bool The duration, or false if not available.
channel-two.js:983
↓ 1 callersFunctiongetDuration
* Find the duration, in seconds, of a given file. * * @return int|bool The duration, or false if not available.
channel-two.js:940
↓ 1 callersFunctiongetPreviousContentFromCron
* Given a cron pattern, find the previous video that would have played. * For a file or URL, it's the file or URL. For a directory, it's the video t
channel-two.js:788
↓ 1 callersFunctionget_duration
* Find the duration in seconds of a given video file. * * @param string $file A file path. * @return int|bool Either the duration or false. */
parse-schedule.php:290
↓ 1 callersFunctionpurgeDurations
* Remove any stored durations for files that are no longer in the programming indices.
channel-two.js:1038
↓ 1 callersFunctionresized
* Resize various elements when the screen is resized (and when it's loaded).
channel-two.js:1131
↓ 1 callersFunctionsaveDuration
* Save the duration of a file that didn't have a stored duration in programming.js * * @param string filePath * @param float duration * @retur
channel-two.js:1006
↓ 1 callersFunctionsecondsUntilNextProgram
()
channel-two.js:1090
↓ 1 callersFunctionsetPlayHistory
* Save the playHistory
channel-two.js:900
FunctionrefreshProgramming
* Re-fetch the JavaScript file that was generated from the cron schedule, which updates * the local `programming` variable. This allows the schedule
channel-two.js:1160
FunctionwatchForCommercialBreak
* Watch for moments during programming when the screen fades to black, and use that as an * opportunity for a commercial break, if applicable.
channel-two.js:236