`Case 6:21-cv-00569-ADA Document 244-78 Filed 07/21/23 Page 1 of 6
`"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
`<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
` <head>
` <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
` <title>TouchStream Technologies</title>
` <!-- Use the code from AJAX professional book periodic refresher -->
`<script type="text/javascript" src="zxml.js"></script>
` <script type="text/javascript" src="CommentChecker.js"></script>
` <link rel="stylesheet" type="text/css" href="PeriodicRefresh.css" />
` <!-- Use the Google AJAX Libraries API:
` http://code.google.com/apis/ajaxlibs/ -->
` <script src="http://www.google.com/jsapi"></script>
` <script>
` google.load("swfobject", "2.1");
` </script>
`<script type="text/javascript">
`
`</script>
` <style type="text/css">
`
` body {
` font-family: verdana, helvetica;
` background-color: #000000;
` }
`
` #timedisplay {
` border: solid 1px red;
` width: 50px;
` }
` body,td,th {
`color: #000000;
`
`}a
`
`:link {
`
`color: #000000;
`
`:visited {
`color: #000000;
`
`:hover {
`color: #000000;
`
`:active {
`color: #000000;
`
`}a
`
`}a
`
`}a
`
`}<
`
`/style>
` <script type="text/javascript">
` var ytplayer = document.getElementById("myytplayer");
` var id;
`
`var player_w;
`
`sfdasdfasdf
`
`sfdasdfasdf
`
`JTX 0226
`
`JTX 0226.0001
`
`
`
`Case 6:21-cv-00569-ADA Document 244-78 Filed 07/21/23 Page 2 of 6
`
`var player_h;
`player_w = screen.width;
`player_h = screen.height;
`
` function updateHTML(elmId, value) {
` document.getElementById(elmId).innerHTML = value;
` }
`
` function setytplayerState(newState) {
` updateHTML("playerstate", newState);
` }
`
` function onYouTubePlayerReady(playerId) {
` ytplayer = document.getElementById("myytplayer");
` setInterval(updateytplayerInfo, 250);
` updateytplayerInfo();
` ytplayer.addEventListener("onStateChange", "onytplayerStateChange");
` ytplayer.addEventListener("onError", "onPlayerError");
` }
`
` function onPlayerError(errorCode) {
` alert("An error occured: " + errorCode);
` }
`
` function onytplayerStateChange(newState) {
` setytplayerState(newState);
` }
`
` function updateytplayerInfo() {
` updateHTML("bytesloaded", getBytesLoaded());
` updateHTML("bytestotal", getBytesTotal());
` updateHTML("videoduration", getDuration());
` updateHTML("videotime", getCurrentTime());
` updateHTML("startbytes", getStartBytes());
` updateHTML("volume", getVolume());
` }
`
` // functions for the api calls
` function loadNewVideo(id, startSeconds) {
` if (ytplayer) {
` ytplayer.loadVideoById(id, parseInt(startSeconds));
` }
` }
`
` function cueNewVideo(id, startSeconds) {
` if (ytplayer) {
` ytplayer.cueVideoById(id, startSeconds);
` }
` }
`
`sfdasdfasdf
`
`JTX 0226.0002
`
`
`
`Case 6:21-cv-00569-ADA Document 244-78 Filed 07/21/23 Page 3 of 6
`
` function play() {
` if (ytplayer) {
` ytplayer.playVideo();
` }
` }
`
` function pause() {
` if (ytplayer) {
` ytplayer.pauseVideo();
` }
` }
`
` function stop() {
` if (ytplayer) {
` ytplayer.stopVideo();
` }
` }
`
` function getPlayerState() {
` if (ytplayer) {
` return ytplayer.getPlayerState();
` }
` }
`
` function seekTo(seconds) {
` if (ytplayer) {
` ytplayer.seekTo(seconds, true);
` }
` }
`
` function getBytesLoaded() {
` if (ytplayer) {
` return ytplayer.getVideoBytesLoaded();
` }
` }
`
` function getBytesTotal() {
` if (ytplayer) {
` return ytplayer.getVideoBytesTotal();
` }
` }
`
` function getCurrentTime() {
` if (ytplayer) {
` return ytplayer.getCurrentTime();
` }
` }
`
` function getDuration() {
`
`sfdasdfasdf
`
`JTX 0226.0003
`
`
`
`Case 6:21-cv-00569-ADA Document 244-78 Filed 07/21/23 Page 4 of 6
`
` if (ytplayer) {
` return ytplayer.getDuration();
` }
` }
`
` function getStartBytes() {
` if (ytplayer) {
` return ytplayer.getVideoStartBytes();
` }
` }
`
` function mute() {
` if (ytplayer) {
` ytplayer.mute();
` }
` }
`
` function unMute() {
` if (ytplayer) {
` ytplayer.unMute();
` }
` }
`
` function getEmbedCode() {
` alert(ytplayer.getVideoEmbedCode());
` }
`
` function getVideoUrl() {
` alert(ytplayer.getVideoUrl());
` }
`
` function setVolume(newVolume) {
` if (ytplayer) {
` ytplayer.setVolume(newVolume);
` }
` }
`
` function getVolume() {
` if (ytplayer) {
` return ytplayer.getVolume();
` }
` }
`
` function clearVideo() {
` if (ytplayer) {
` ytplayer.clearVideo();
` }
` }
`
` function videoCommand(vAction,vInfo){
`
`sfdasdfasdf
`
`JTX 0226.0004
`
`
`
`Case 6:21-cv-00569-ADA Document 244-78 Filed 07/21/23 Page 5 of 6
`
` if (vAction == "play") {
` play();
`
` }
` if (vAction == "pause") {
` pause();
`
` }
` if (vAction == "nVideo") {
` loadNewVideo(vInfo, 0);
` }
`
` }
` </script>
` </head>
` <body id="page">
`
` <div align="center">
`<div>
` <!-- embed the player -->
` <div id="ytapiplayer">
` You need Flash player 8+ and JavaScript enabled to view this video.
` </div>
` <script type="text/javascript">
` // <![CDATA[
`
` // allowScriptAccess must be set to allow the Javascript from one
` // domain to access the swf on the youtube domain
` var params = { allowScriptAccess: "always", bgcolor: "#cccccc" };
` // this sets the id of the object or embed tag to 'myytplayer'.
` // You then use this id to access the swf and make calls to the player's API
` var atts = { id: "myytplayer" };
`
`swfobject.embedSWF("http://www.youtube.com/v/hcmHhklkiZ0?border=0&enablejsapi=1&
`amp;playerapiid=ytplayer",
` "ytapiplayer", player_w, player_h, "8", null, null, params,
`atts);
` //]]>
` </script>
`
` <!-- HTML below here is for display of the player info + state -->
`
` </div>
` </div>
`
`sfdasdfasdf
`
`JTX 0226.0005
`
`
`
`Case 6:21-cv-00569-ADA Document 244-78 Filed 07/21/23 Page 6 of 6
`
` </body>
`</html>
`
`sfdasdfasdf
`
`JTX 0226.0006
`
`