##Configuring Ubuntu for using IIT Delhi internet
For details http://www.cc.iitd.ernet.in/ and http://mirror.iitd.ernet.in
###Contents:
| <%@ Page Title="About" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="WebApplication2.About" %> | |
| <asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server"> | |
| <h2><%: Title %></h2> | |
| <h3>Your application description page.</h3> | |
| <p>Use this area to provide additional information.</p> | |
| <div id="vdo<%=otp%>" style="height:400px;width:640px;max-width:100%;"></div> | |
| <script> | |
| (function(v,i,d,e,o){v[o]=v[o]||{}; v[o].add = v[o].add || function V(a){ (v[o].d=v[o].d||[]).push(a);}; | |
| if(!v[o].l) { v[o].l=1*new Date(); a=i.createElement(d), m=i.getElementsByTagName(d)[0]; |
| <?php | |
| function send($action, $params, $posts = false){ | |
| $curl = curl_init(); | |
| curl_setopt($curl, CURLOPT_RETURNTRANSFER,true); | |
| curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); | |
| $getData = http_build_query($params); | |
| $postData = ['clientSecretKey'=>'CLIENT_SECRET_KEY']; ////Replace the caps CLIENT_SECRET_KEY with your video id. | |
| if ($posts) { | |
| $postData = http_build_query(array_merge($postData, $posts)); | |
| } |
| using Newtonsoft.Json.Linq; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Text; | |
| using System.Web; | |
| using System.Web.Mvc; |
| using Newtonsoft.Json.Linq; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Text; | |
| using System.Web; | |
| using System.Web.Mvc; |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| <title>Sample</title> | |
| </head> | |
| <body> | |
| <hr /> | |
| <div id="vdo{{OTP}}" style="height: 300px; width: 520px;"></div> | |
| <input type="text" id="totalPlayed" value="" /> | |
| <button onclick="start()">Start</button> |
| <div id="vdo%OTP%" style="height:400px;width:640px;max-width:100%;"></div> | |
| <script> | |
| (function(v,i,d,e,o){v[o]=v[o]||{}; v[o].add = v[o].add || function V(a){ (v[o].d=v[o].d||[]).push(a);}; | |
| if(!v[o].l) { v[o].l=1*new Date(); a=i.createElement(d), m=i.getElementsByTagName(d)[0]; | |
| a.async=1; a.src=e; m.parentNode.insertBefore(a,m);} | |
| })(window,document,'script','//de122v0opjemw.cloudfront.net/vdo.js','vdo'); | |
| vdo.add({ | |
| o: "%OTP%", | |
| }); | |
| </script> |
##Configuring Ubuntu for using IIT Delhi internet
For details http://www.cc.iitd.ernet.in/ and http://mirror.iitd.ernet.in
###Contents:
| Imports System.Net | |
| Imports System.IO | |
| Partial Class VdoCipher | |
| Inherits System.Web.UI.Page | |
| ' A function to interact with API server based paramaters | |
| Public Function vdocipher_sendCommand(action As String, getData As String) As String | |
| Dim strGetURL As String = "http://api.vdocipher.com/v2/" + action + "?" + getData | |
| Dim strResult As String |
| <?php | |
| function send($action, $params){ | |
| $curl = curl_init(); | |
| curl_setopt($curl, CURLOPT_FAILONERROR, true); | |
| curl_setopt($curl, CURLOPT_RETURNTRANSFER,true); | |
| curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); | |
| curl_setopt($curl, CURLOPT_VERBOSE, true); | |
| curl_setopt($curl, CURLOPT_FAILONERROR, false); | |
| $getData = http_build_query($params); |
| <% | |
| Public Function vdocipher_sendCommand(action, getData, postFields) | |
| clientSecretKey = "CLIENT_SECRET_KEY" | |
| Set ServerXmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.6.0") | |
| ServerXmlHttp.open "POST", "http://api.vdocipher.com/v2/" + action + "?"+getData + "&type=xml" | |
| ServerXmlHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" | |
| postData = "clientSecretKey="+ clientSecretKey + "&" +postFields | |
| ServerXmlHttp.send(postData) |