You are here

protected function PHPVideoToolkit::_raiseError in Video 7.2

Same name and namespace in other branches
  1. 7 libraries/phpvideotoolkit/phpvideotoolkit.php5.php \PHPVideoToolkit::_raiseError()

Raises an error

@access protected

Parameters

string $message:

array $replacements a list of replacements in search=>replacement format:

Return value

boolean Only returns FALSE if $toolkit->on_error_die is set to FALSE

22 calls to PHPVideoToolkit::_raiseError()
PHPVideoToolkit::addGDWatermark in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
Adds a watermark to the outputted image files using the PHP GD module. This effects only image output.
PHPVideoToolkit::addVideo in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
This process will combine the original input video with the video specified by this function. This function accepts more than one video as arguments. They will be added in order of the arguments. ie. input_video -> video1 -> video2 etc The…
PHPVideoToolkit::addWatermark in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
Adds a watermark to the outputted files. This effects both video and image output.
PHPVideoToolkit::execute in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
Commits all the commands and executes the ffmpeg procedure. This will also attempt to validate any outputted files in order to provide some level of stop and check system.
PHPVideoToolkit::extractAudio in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
This is an alias for setFormat, but restricts it to audio only formats.

... See full list

File

libraries/phpvideotoolkit/phpvideotoolkit.php5.php, line 3477
Libary to access FFmpeg

Class

PHPVideoToolkit

Code

protected function _raiseError($message, $replacements = FALSE) {
  $msg = 'PHPVideoToolkit error: ' . $this
    ->_getMessage($message, $replacements);

  //			check what the error is supposed to do
  if ($this->on_error_die === TRUE) {
    exit($msg);

    // <-			exits
  }

  //			add the error message to the collection
  array_unshift($this->_errors, $msg);
  return FALSE;
}