function qiniu_concat_video($paths) { $auth = new Auth(get_option('qiniu_access_key'), get_option('qiniu_secret_key')); $process = new \Qiniu\Processing\PersistentFop($auth, 'henried'); $arg = 'avconcat/2/format/mp4'; foreach (array_slice($paths, 1) as $path) { $arg .= '/' . \Qiniu\base64_urlSafeEncode(qiniu_get_real_download_url(trim($path), 7200)); } return $process->execute($paths[0], $arg); }
echo count($sections); ?> </span>章节</li> <!--<li><span>1</span>quizzes</li> <li><span>30</span>units</li> <li><span>5</span>assignments</li>--> </ul> </div> <!-- END / CURRENT PROGRESS --> <?php if ($sections[0]->videos[0]) { ?> <div class="video-course-intro"> <div class="video embed-responsive embed-responsive-16by9"> <video controls src="<?php echo qiniu_get_real_download_url($sections[0]->videos[0]); ?> " class="embed-responsive-item"></video> </div> </div> <?php } ?> <div class="new-course"> <div class="item course-code"> <i class="icon md-barcode"></i> <h4><a href="#">课程编号</a></h4> <p class="detail-course"># <?php echo get_post_meta(get_the_ID(), 'code', true); ?> </p>