diff --git a/src/webcam/getwebcamdata.php b/src/webcam/getwebcamdata.php index 21a32328..8a905e73 100644 --- a/src/webcam/getwebcamdata.php +++ b/src/webcam/getwebcamdata.php @@ -1,5 +1,5 @@ prefix."posts"; - /*$results = $wpdb->insert( - $table_name, - array('group_id' => 1, - 'testimonial' => $cf7->posted_data["tu-mensaje"], - 'client_name' => $cf7->posted_data["tu-nombre"], - 'client_pic' => 'http://localhost/lqdvi/webcam/images/'.$cf7->posted_data["id"], - 'client_website' => $cf7->posted_data["tu-email"], - 'client_company' => '', - 'show_in_widget' => 0, - 'order' => 0));*/ - /*$result = $wpdb->insert( - $table_name, - array( 'post_type' => 'slides', - 'post_title' => $cf7->posted_data["tu-nombre"], - 'post_content' => $cf7->posted_data["tu-mensaje"], - 'post_status' => 'pending', - 'post_date' => current_time('mysql'), - 'post_date_gmt' => current_time('mysql',1) - - ) - - );*/ - - /*$filename = 'http://localhost/lqdvi/webcam/images/'.$cf7->posted_data["id"]; - $wp_filetype = wp_check_filetype(basename($filename), null ); - $attachment = array( - 'post_mime_type' => $wp_filetype['type'], - 'post_title' => preg_replace('/\.[^.]+$/', '', basename($filename)), - 'post_content' => '', - 'post_status' => 'inherit' - ); - $attach_id = wp_insert_attachment( $attachment, $filename, 37 ); - // you must first include the image.php file - // for the function wp_generate_attachment_metadata() to work - require_once(ABSPATH . 'wp-admin/includes/image.php'); - $attach_data = wp_generate_attachment_metadata( $attach_id, $filename ); - wp_update_attachment_metadata( $attach_id, $attach_data );*/ - // Create post object $my_post_data = array( diff --git a/src/wp-content/themes/lqdvi/template-webcam.php b/src/wp-content/themes/lqdvi/template-webcam.php index ad5556dc..caf32939 100644 --- a/src/wp-content/themes/lqdvi/template-webcam.php +++ b/src/wp-content/themes/lqdvi/template-webcam.php @@ -22,7 +22,7 @@ Template Name: Webcam videoPreviewY: "10", // video preview y cord. videoFps: "30", // video fps bandwidth: "0", // Specifies the maximum amount of bandwidth that the current outgoing video. The default value is 16384 , pass 0 for bandwidth. - quality: "100", // quality for camera, value is 0-100. + quality: "80", // quality for camera, value is 0-100. screenShotX: "10", // screen shot x cord screenShotY: "10", // screen shot y cord currentURL: ""