Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving demo to its own repository. #2

Merged
merged 1 commit into from
Jul 2, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed demo/css/WOFF/second_screen.woff
Binary file not shown.
Binary file removed demo/img/FPV_Sunset.mp4
Binary file not shown.
Binary file removed demo/img/FPV_Sunset.webm
Binary file not shown.
247 changes: 0 additions & 247 deletions demo/img/otc_logo.svg

This file was deleted.

Binary file removed demo/img/video_poster.png
Binary file not shown.
53 changes: 3 additions & 50 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,60 +2,13 @@
<meta charset="UTF-8">
<head>
<title>Presentation API Demo</title>
<script type="text/javascript" src="js/video-js/video.dev.js"></script>
<link href="js/video-js/video-js.css" rel="stylesheet">
<meta http-equiv="refresh" content="3; http://webscreens.github.io/demo/">
<link href="css/base.css" rel="stylesheet">
<script type="text/javascript" src="js/presentation_api_shim.js"></script>
<script type="text/javascript" src="js/presentation_button.js"></script>
<script type="text/javascript" src="js/resize.js"></script>
</head>
<body>
<article>
<h1>Presentation API Demo</h1>
<p>This demo page provides an example of the video sharing use case of <a href="http://webscreens.github.io/presentation-api/">Presentation API</a> which is being developed in the <a href="http://www.w3.org/community/webscreens/">Second Screen Presentation Community Group</a> in W3C.</p>
<p>Downloading the binaries, or building Chromium with the patches listed below applied to your tree allows you to run the demo.</p>
<p>Opening this page in the <a href="#binaries">modified version of Chromium</a> allows you to click on the second screen icon <span class="icon-instructions">s</span> in the right side of the controls bar of the <a href="#mainvid_html5_api">video player</a> and the video will open and continue playing on your secondary screen. Clicking the button again closes the window and playback resumes on your primary screen.</p>
<h2>Prerequisites</h2>
<p>It's recommended to run this demo with a secondary display connected to your system and having it configured to extend your desktop.</p>
<h2 id="binaries">Binaries</h2>
<p>Binaries are available for Linux and Mac. Use at your own risk.</p>
<ul>
<li>Linux: <a href="releases/Chromium_r240273_PresentationAPIDemo.tar.gz">Chromium_r240273_PresentationAPIDemo.tar.gz</a> - tested on Ubuntu 13.04 and Arch Linux.
<li>Mac: <a href="releases/Chromium_r240273_PresentationAPIDemo.dmg">Chromium_r240273_PresentationAPIDemo.dmg</a> - tested on OS X 10.9 Mavericks.
</ul>
<h2>Building the Demo / Code</h2>
<ul>
<li>Checkout and test build Chromium according to the <a href="http://www.chromium.org/developers/how-tos">instructions on the wiki</a>.
<li>Apply the Chromium Patch: <a href="https://codereview.chromium.org/98523003/">https://codereview.chromium.org/98523003/</a>
<li>Apply the Blink Patch: <a href="https://codereview.chromium.org/108333006/">https://codereview.chromium.org/108333006/</a>
<li>Build.
</ul>
<h2>Implementation Details</h2>
<p>The patches to Chromium implement a new feature attribute for the <code>window.open()</code> function called <code>presentation</code> which opens a new full-screen browser window on the first found secondary display.</p>
<p>The Presentation API bindings are currently implemented as a <a href="js/presentation_api_shim.js">JavaScript shim</a> on top of the modified <code>window.open()</code> call.</p>
<h2>Demo of Video Sharing Use Case</h2>
<h3>Instructions</h3>
<p>Run your binary, on Linux you may need to append the <code>--no-sandbox</code> command line argument.</p>
<p>Play the video and click the second screen icon <span class="icon-instructions">s</span>, click the button again or focus the secondary window and press Escape to close the secondary window.</p>
<video id="mainvid" controls preload="auto" class="video-js vjs-default-skin vjs-big-play-centered">
<source src="img/FPV_Sunset.mp4" type="video/mp4" />
<source src="img/FPV_Sunset.webm" type="video/webm" />
</video>

<script type="text/javascript">
mainvid = videojs("mainvid", { "preload": "auto", "poster" : "img/video_poster.png", plugins: { presentation: {} } });
</script>

<br>
<small>Video <a href="http://www.youtube.com/watch?v=VAHIV9FV_9k">"FPV Sunset - Medellin"</a> by YouTube user Bllama under <a href="http://creativecommons.org/licenses/by/3.0/legalcode">CC-BY</a>.<br>Second Screen Icon based on <a href="http://icomoon.io">IcoMoo</a>.</small>
<h2>Building your own Project</h2>
<p>By using the <a href="js/presentation_api_shim.js">JavaScript shim</a> and the demo Chromium release for your own project, you can experiment and realize your own ideas for how to make use of <a href="http://webscreens.github.io/presentation-api/">Presentation API</a>.</p>
<h2>Contact</h2>
<p>For feedback on the demo or on the <a href="http://webscreens.github.io/presentation-api/">Presentation API</a> itself, please subscribe and post your feedback to the <a href="http://lists.w3.org/Archives/Public/public-webscreens/">public-webscreens W3C mailing list</a>.</p>
<p>This demo is provided by <a href="https://01.org/">Intel's Open Source Technology Center</a>, <a href="mailto:dominik.rottsches@intel.com">Dominik Röttsches</a>.</p>
<p><a href="https://01.org/"><img id="otclogo" src="img/otc_logo.svg"></a></p>
</article>

<p>The presentation API demo page has moved
to <a href="http://webscreens.github.io/demo/">http://webscreens.github.io/demo/</a> - you will be redirected.</p>
</body>

</html>
15 changes: 0 additions & 15 deletions demo/js/presentation_api_shim.js

This file was deleted.

48 changes: 0 additions & 48 deletions demo/js/presentation_button.js

This file was deleted.

9 changes: 0 additions & 9 deletions demo/js/resize.js

This file was deleted.

41 changes: 0 additions & 41 deletions demo/js/video-js/demo.captions.vtt

This file was deleted.

31 changes: 0 additions & 31 deletions demo/js/video-js/demo.html

This file was deleted.

Binary file removed demo/js/video-js/font/.DS_Store
Binary file not shown.
Binary file removed demo/js/video-js/font/vjs.eot
Binary file not shown.
65 changes: 0 additions & 65 deletions demo/js/video-js/font/vjs.svg

This file was deleted.

Binary file removed demo/js/video-js/font/vjs.ttf
Binary file not shown.
Binary file removed demo/js/video-js/font/vjs.woff
Binary file not shown.
Loading