From aab39332755cf68abf9cf6dba1a4657984ba2ec5 Mon Sep 17 00:00:00 2001
From: Pierre Rudloff
Date: Fri, 4 Apr 2014 16:38:36 +0200
Subject: [PATCH] Cast API
---
api.php | 16 ++--
cast.js | 90 +++++++++++++++++++++
head.php | 2 +
img/ic_media_route_disabled_holo_light.png | Bin 0 -> 380 bytes
img/ic_media_route_off_holo_light.png | Bin 0 -> 401 bytes
img/ic_media_route_on_holo_light.png | Bin 0 -> 439 bytes
style.css | 12 +++
7 files changed, 112 insertions(+), 8 deletions(-)
create mode 100644 cast.js
create mode 100644 img/ic_media_route_disabled_holo_light.png
create mode 100644 img/ic_media_route_off_holo_light.png
create mode 100644 img/ic_media_route_on_holo_light.png
diff --git a/api.php b/api.php
index 89952c2..3b233b1 100644
--- a/api.php
+++ b/api.php
@@ -1,9 +1,9 @@
@@ -15,7 +15,7 @@ require_once 'download.php';
if (isset($_GET["url"])) {
if (isset($_GET["format"]) || isset($_GET['audio'])) {
$video = VideoDownload::getJSON($_GET["url"], $_GET["format"]);
-
+
if (isset($video->url)) {
//Vimeo needs a correct user-agent
$UA = VideoDownload::getUA();
@@ -57,7 +57,7 @@ if (isset($_GET["url"])) {
);
exit;
}
-
+
} else {
if (isset($_GET['audio'])) {
header(
@@ -135,12 +135,12 @@ if (isset($_GET["url"])) {
include 'logo.php';
?>
You are going to download
-
+
title;
- ?>.
+ ?>. 


thumbnail, '" alt="" />';
?>