issues
search
ArdiArtani
/
Google-Drive-Player-Script
Grab google drive streaming links (redirector.googlevideo.com/videoplayback?..)
https://ardiartani.github.io/Google-Drive-Player-Script/
MIT License
321
stars
229
forks
source link
What do I miss, to add the subtitle (closed captions)? And how can I add !!
#94
Closed
MustafaMta
closed
5 years ago
MustafaMta
commented
6 years ago
<?php
/*
Template Name: DT - Google Drive jwplayer
*/
if( isset($_GET['gd'] ) and isset( $_GET['id'] ) ) {
// Link parameters
$id = isset( $_GET['id'] ) ? $_GET['id'] : null; // the post
//$source = isset( $_GET['gd'] ) ? $_GET['gd'] : null; // The Google Drive ID
$sources1 = $_GET['gd'];
// JWplayer Option
$abouttext = get_option('dt_jw_abouttext');
$skinname = get_option('dt_jw_skinname');
$skinactive = get_option('dt_jw_skinactive');
$skininactive = get_option('dt_jw_skininactive');
$skinbackground = get_option('dt_jw_skinbackground');
$jwlogo = get_option('dt_jw_logo');
$jwkey = get_option('dt_jw_key');
$jwlogoposit = get_option('dt_jw_logo_position');
$image = rand_images('imagenes', $id, 'w1000', true, true);
//Google Drive ( connection )
$source = base64_decode ($sources1);
require_once( DOO_DIR . '/gdrive/drive.php');
$drive['link'] = $source;
$drive['down'] = Drive( $drive['link'] );
$drive['sour'] = '[{file: "'.$drive['down'].'",type: "video/mp4"}]';
// End PHP
?>
<!DOCTYPE html>
<?php } else {
_d('No data');
} ?>
ArdiArtani
commented
5 years ago
You can check out jwplayer's repo for more information
JWPlayer