Created
January 5, 2011 14:18
-
-
Save joshski/766370 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/div/html4/strict.dtd"> | |
<html> | |
<head> | |
<title>Tiny Samsung Video App</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<script type='text/javascript' language='javascript' src='$MANAGER_WIDGET/Common/API/Widget.js'></script> | |
</head> | |
<body onload="bodyLoad()" onunload="bodyUnload()"> | |
<object id="videoPlugin" border=0 classid="clsid:SAMSUNG-INFOLINK-PLAYER"></object> | |
<object id="audioPlugin" border=0 classid="clsid:SAMSUNG-INFOLINK-AUDIO"></object> | |
<object id="middlewarePlugin" border=0 classid="clsid:SAMSUNG-INFOLINK-TVMW"></object> | |
<script type="text/javascript"> | |
var widgetAPI = new Common.API.Widget(); | |
var originalSource = 0; | |
function bodyLoad() { | |
var videoPlugin = document.getElementById("videoPlugin"); | |
var audioPlugin = document.getElementById("audioPlugin"); | |
var middlewarePlugin = document.getElementById("middlewarePlugin"); | |
widgetAPI.sendReadyEvent(); | |
originalSource = middlewarePlugin.GetSource(); | |
middlewarePlugin.SetMediaSource(); | |
videoPlugin.SetDisplayArea(458, 58, 472, 270); | |
videoPlugin.Play( "/Argentina.mp4" ); | |
audioPlugin.SetSystemMute(false); | |
} | |
function bodyUnload() { | |
middlewarePlugin.SetSource(originalSource); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment