angularjs - Set audio/video files of single recorded video file using ngCamRecorder and run simultaneously -
i using ngcamrecorder creating video file , upload in 2 separate file (audio , video) after uploading struggling display in browser
my code when video streaming using ngcamrecorder
<?php $tmp_name = $_files['filetoupload']['tmp_name']; $size = $_files['filetoupload']['size']; $name = $_files['filetoupload']['name']; $name2 = uniqid().'.webm'; /* s3 server code */ /* include('s3/uploads3.php'); $s3obj = new amazons3video(); $result = $s3obj->uploadfiles3($tmp_name, $name2); */ $target_path = "/public_html/myproject/videos/"; $target_file = $target_path.$name; $complete =$target_path.$name2; $_session['videofilename'] = $name2; $com = fopen($complete, "ab"); error_log($target_path); $in = fopen($tmp_name, "rb"); if ( $in ) { while ( $buff = fread( $in, 1048576 ) ) { fwrite($com, $buff); } } fclose($in); fclose($com); ?>
Comments
Post a Comment