PHP Classes

File: examples/index.php

Recommend this page to a friend!
  Classes of Dawood Ikhlaq   PHP Screen Recorder   examples/index.php   Download  
File: examples/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Screen Recorder
Capture videos of the current screen with ffmpeg
Author: By
Last change:
Date: 6 years ago
Size: 461 bytes
 

Contents

Class file image Download
<?php
/**
 * Created by PhpStorm.
 * User: dawood.ikhlaq
 * Date: 7/17/2017
 * Time: 12:44
 */

include "../vendor/autoload.php";

use
dawood\PhpScreenRecorder\ScreenRecorder;




$screenRecorder=new ScreenRecorder();
$screenRecorder->setScreenSizeToCapture(1920,1080);

$screenRecorder->startRecording(__DIR__.DIRECTORY_SEPARATOR.'myVideo');
sleep(5+2);
$screenRecorder->stopRecording();


print
"video is saved at :\"".$screenRecorder->getVideo().'"'.PHP_EOL;