PHP code example of takuya / recpt1-wrapper
1. Go to this page and download the library: Download takuya/recpt1-wrapper library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
takuya / recpt1-wrapper example snippets
$recpt1 = new Recpt1( 'ssh 192.168.10.10 recpt1' );
$proc = $recpt1
->b25()
->strip()
->channel(22)
->duration(3600)
->destfile('out.ts')
->run();
$recpt1 = new Recpt1( 'ssh 192.168.10.10 recpt1' );
$recpt1
->b25()
->strip()
->channel(22)
->duration(3600)
->destfile('out.ts')
->run();
$proc = $recpt1->getProcess();
$out_stream = $proc->getOutputStream();
$recpt1 = new Recpt1( 'ssh 192.168.10.10 recpt1' );
$recpt1
->b25()
->strip()
->channel(22)
->duration(3600)
->destfile('out.ts')
->run();
$proc = $recpt1->getProcess();
$out = $proc->getOutput();
$recpt1_1 = new Recpt1( 'ssh 192.168.10.10 recpt1' );
$recpt1_1
->b25()
->strip()
->channel(22)
->duration(3600)
->destfile('out_1.ts')
->start();
//
$recpt1_2 = new Recpt1( 'ssh 192.168.10.10 recpt1' );
$recpt1_2
->b25()
->strip()
->channel(22)
->duration(3600)
->destfile('out_2.ts')
->start();
$recpt1_1->wait();
$recpt1_2->wait();