WordPress.org

Plugin Directory

Changeset 1659514


Ignore:
Timestamp:
05/17/17 16:11:15 (2 months ago)
Author:
videowhisper
Message:

Update

Location:
video-posts-webcam-recorder/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • video-posts-webcam-recorder/trunk/posts/videowhisper/recorded.php

    r1628680 r1659514  
    4646            $playlists = sanitize_file_name($username); 
    4747 
    48             VWvideoShare::importFile($file, sanitize_file_name($stream), $userID, $playlists, '', 'webcam', $description = $username . ' webcam recording'); 
     48            $categoryID = ''; 
     49            $category = sanitize_file_name( $_COOKIE['vw_recording_category'] ); 
     50            if ($category) 
     51            { 
     52                $categoryID = get_cat_ID( $category ); 
     53 
     54                //require_once(ABSPATH . 'wp-admin/includes/taxonomy.php') 
     55                //if (!$categoryID) $categoryID = wp_create_category($category); 
     56            } 
     57 
     58            VWvideoShare::importFile($file, sanitize_file_name($stream), $userID, $playlists, $categoryID, 'webcam', $description = $username . ' webcam recording'); 
    4959 
    5060            //  echo '&videosharevod=1'; 
  • video-posts-webcam-recorder/trunk/readme.txt

    r1628680 r1659514  
    2121 
    2222= Recording During Video Playback = 
    23 Supports Youtube video synchronised recordings (start recording at same time with a video and record during playback, great for karaoke or standard interviews / questionnaires and live reactions):   [videowhisper_recorder youtube_sync="video-id"] 
     23Supports Youtube video synchronised recordings (start recording at same time with a video and record during playback, great for karaoke or standard interviews / questionnaires and live reactions):   [videowhisper_recorder youtube_sync="video-id" category="category-name"] 
    2424 
    2525= Special Requirements = 
  • video-posts-webcam-recorder/trunk/videoposts.php

    r1643171 r1659514  
    44Plugin URI: http://www.videowhisper.com/?p=WordPress+Video+Recorder+Posts+Comments 
    55Description: Video Posts Webcam Recorder allows WordPress users to record and authors to directly insert videos in their posts. Integrates with VideoShareVOD plugin for advanced video management, multiple players and settings. 
    6 Version: 2.5.8 
     6Version: 2.5.9 
    77Author: VideoWhisper.com 
    88Author URI: http://www.videowhisper.com/ 
     
    8383            } 
    8484 
    85             $atts = shortcode_atts(array('height' => '550px', 'width'=> '100%', 'youtube_sync' =>'', 'default_name' => '' ), $atts, 'videowhisper_recorder'); 
     85            $atts = shortcode_atts(array('height' => '550px', 'width'=> '100%', 'youtube_sync' =>'', 'default_name' => '', 'category' => '' ), $atts, 'videowhisper_recorder'); 
    8686 
    8787            $base = plugin_dir_url(__FILE__) . "posts/videowhisper/"; 
     
    9191 
    9292            $height = $atts['height']; 
     93 
     94            if ($category = sanitize_file_name($atts['category'])) 
     95            { 
     96              setcookie( 'vw_recording_category', $category,  time() + 86400, '/' ); 
     97 
     98                $categoryID = get_cat_ID( $category ); 
     99                if (!$categoryID) 
     100                { 
     101                    require_once(ABSPATH . 'wp-admin/includes/taxonomy.php'); 
     102                    $categoryID = wp_create_category($category); 
     103                } 
     104 
     105                /* 
     106                $sessionPath = $options['uploadsPath'] . $atts['default_name']; 
     107                $sessionInfo = array('category' => $category); 
     108                VWvideoPosts::varSave($sessionPath, $sessionInfo); 
     109                */ 
     110            } 
    93111 
    94112            if ($atts['youtube_sync']) 
     
    214232         } 
    215233 
    216          if (event.data == YT.PlayerState.PAUSED ) 
     234         if (event.data == YT.PlayerState.PAUSED  || event.data == YT.PlayerState.BUFFERING) 
    217235         { 
    218236           playerPaused = true; 
     
    400418        } 
    401419 
     420 
     421        function varSave($path, $var) 
     422        { 
     423            file_put_contents($path, serialize($var)); 
     424        } 
     425 
     426        function varLoad($path) 
     427        { 
     428            if (!file_exists($path)) return false; 
     429 
     430            return unserialize(file_get_contents($path)); 
     431        } 
     432 
     433 
    402434        function init() 
    403435        { 
     
    454486            $youtube_sync = sanitize_text_field($_GET['youtube_sync']); 
    455487            $name = sanitize_text_field($_GET['name']); 
     488            $category = sanitize_file_name($_GET['category']); 
    456489 
    457490            ob_clean(); 
    458             echo do_shortcode('[videowhisper_recorder youtube_sync="'.$youtube_sync.'" default_name="' .$name. '"]'); 
     491            echo do_shortcode('[videowhisper_recorder youtube_sync="'.$youtube_sync.'" default_name="' .$name. '" category="'. $category .'"]'); 
    459492            die; 
    460493        } 
     
    466499        function adminOptionsDefault() 
    467500        { 
     501            $root_url = get_bloginfo( "url" ) . "/"; 
     502            $upload_dir = wp_upload_dir(); 
     503 
    468504            return array( 
     505                'uploadsPath' => $upload_dir['basedir'] . '/vw_vpwr', 
     506 
    469507                'embedMode' => 1, 
    470508                'autoplay' => true, 
     
    658696Example: http://yourserver.com/streams/ 
    659697 
     698<h4><?php _e('Uploads Path','video-share-vod'); ?></h4> 
     699<input name="uploadsPath" type="text" id="uploadsPath" size="100" maxlength="256" value="<?php echo $options['uploadsPath']?>"/> 
    660700 
    661701 
     
    767807Can be shown as post content plugin or with shortcode on any page (resulting videos are managed with VideoShareVOD plugin). 
    768808<h4>Shortcode</h4> 
    769 [videowhisper_recorder height="550px"] - Displays video recording interface on a page. Uses VideoShareVOD video sharing permissions if enabled. 
    770 <br>[videowhisper_recorder youtube_sync="video id" default_name=""] - Displays video recorder and also an youtube video that plays while recording (great for video interviews, questionnaires, karaoke, live reactions). 
     809[videowhisper_recorder height="550px" category=""] - Displays video recording interface on a page. Uses VideoShareVOD video sharing permissions if enabled. 
     810<br>[videowhisper_recorder youtube_sync="video id" default_name="" category=""] - Displays video recorder and also an youtube video that plays while recording (great for video interviews, questionnaires, karaoke, live reactions). 
    771811Default name is used when visitors are allowed to record, for recording name - when not provided, is generated. 
    772812 
     
    776816<?php 
    777817                    $ajaxurl = admin_url() . 'admin-ajax.php?action=vpwr_recorder&name=&youtube_sync='; 
    778                     echo $ajaxurl . '[YouTube Video ID]'; 
     818                    echo $ajaxurl . '[YouTube Video ID]&category=[Site Category]'; 
    779819?> 
    780820<BR>Sample IFRAME embed: 
    781 <BR><textarea readonly cols="100" rows="2"><IFRAME SRC="<?php echo $ajaxurl?>oifAEZJYKvI" allowfullscreen /></textarea> 
     821<BR><textarea readonly cols="100" rows="2"><IFRAME SRC="<?php echo $ajaxurl?>oifAEZJYKvI&category=Recordings" allowfullscreen /></textarea> 
    782822 
    783823<h4>Who can record video</h4> 
Note: See TracChangeset for help on using the changeset viewer.