source: Dev/branches/rest-dojo-ui/client/dojox/embed/tests/quicktime.html @ 256

Last change on this file since 256 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

File size: 1.5 KB
Line 
1<html>
2        <head>
3                <title>dojo.embed.QuickTime Detection Test</title>
4                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5                <style type="text/css">
6                        @import "../../../dojo/resources/dojo.css";
7                        @import "../../../dijit/tests/css/dijitTests.css";
8                </style>
9                <script type="text/javascript" src="../../../dojo/dojo.js" djConfig="isDebug: true"></script>
10                <script type="text/javascript">
11                        dojo.require("dojox.embed.Quicktime");
12
13                        //      what a pain.  We hate having to deal with async loading issues.
14                        dojo.addOnLoad(function(){
15                                console.log("Getting the Quicktime version...");
16                                var r=dojo.byId("results"),
17                                        fn=function(){
18                                                var v=dojox.embed.Quicktime.version || { major: 0, minor: 0, rev: 0 };
19                                                r.innerHTML = v.major
20                                                        + '.' + v.minor
21                                                        + '.' + v.rev;
22                                        };
23                                if(!dojox.embed.Quicktime.available){
24                                        r.innerHTML = "QuickTime plugin not installed";
25                                }else if(!dojox.embed.Quicktime.supported){
26                                        r.innerHTML = "QuickTime not supported";
27                                }else if(dojox.embed.Quicktime.initialized){
28                                        fn();
29                                }else{
30                                        console.log("dojox.embed.Quicktime not initialized yet... waiting");
31                                        var h=dojo.connect(dojox.embed.Quicktime, "onInitialize", function(){
32                                                fn();
33                                                dojo.disconnect(h);
34                                        });
35                                }
36                        });
37                </script>
38        </head>
39        <body>
40                <h1>DojoX A/V: QuickTime detection tests.</h1>
41               
42                <p>This page is testing the base QuickTime movie generator.  See the Firebug log for details.</p>
43               
44                <p>Installed QuickTime version: <span id="results"></span></p>
45        </body>
46</html>
Note: See TracBrowser for help on using the repository browser.