source: trunk/fl5/js/test/examples/index.html @ 1537

Revision 1537, 10.0 KB checked in by zach, 2 years ago (diff)
  • Merging 5.5 alpha 904
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html>
3    <head>
4        <title>HTML5 Player Examples</title>
5        <style type="text/css">
6            body {
7                font-family: Arial, Verdana, sans-serif;
8                font-size: .8em;
9                padding-left: 1em;
10            }
11           
12            ul {
13                margin-left: 0;
14                padding: 1em;
15            }
16        </style>
17    </head>
18    <body>
19        <h1>Examples</h1>
20        <ul id="examples">
21        </ul>
22        <script type="text/javascript">
23            var list = document.getElementById("examples");
24            var examplePages = {
25                "Basic Tests": {
26                        "Page with no document type": "nodoctype.html",
27                        "Embedding": {
28                                "Object and embed tags": "objectembed.html",
29                                "Video tag embed": "videotag.html",
30                                "Multiple players": "multiple_players.html",
31                                "File paths": {
32                                        "No file specified": "nofile.html",
33                                        "Invalid file path specified": "badfile.html",
34                                                        //"No file extension": "noextension.html",
35                                        "Absolute file path": "filepathsabsolute.html",
36                                        "Root file path": "filepathsroot.html",
37                                        "Relative file path": "filepathsrelative.html"
38                                }
39                        },
40                        "Video codecs": {
41                                "Single MP4": "single_mp4.html",
42                                "Single OGV": "single_ogg.html",
43                                "YouTube": "youtube.html",
44                                "Multiple sources (MP4 and OGV)": "mp4_ogg.html",
45                                "Bitrate switching": "bitrateswitching.html",
46                                "RTMP": "rtmp.html"
47                        }
48                },
49                "Configuration Tests": {
50                                        "Providers": "providers.html", 
51                        "Multiple players with various options": "multiple_customs.html",
52                        "Skins": {
53                                "All Skins": "custom_skin.html",
54                                "Invalid skin path specified": "badskin.html",
55                                "Skin redirect": "testskin.html"
56                        },
57                        "Playlists": {
58                                "Progressive download": "playlist.html?type=progressive",
59                                //"HTTP Pseudo-streaming": "httpplaylist.html",
60                                "RTMP": "playlist.html?type=rtmp",
61                                "Mixed": "playlist.html?type=mixed",
62                                "XML Playlits": "xmlplaylists.html",
63                                                //"Playlist formats": {
64                                                //      "ASX" : "playlistparsing.html?"+escape('var config = {title:"ASX Playlists", "playlist":"../files/asx.xml"}'),
65                                                //      "Atom" : "playlistparsing.html?"+escape('var config = {title:"Atom Playlists", "playlist":"../files/atom.xml"}'),
66                                                //      "iTunes" : "playlistparsing.html?"+escape('var config = {title:"iTunes Playlists", "playlist":"../files/irss.xml"}'),
67                                                //      "mRSS" : "playlistparsing.html?"+escape('var config = {title:"mRSS Playlists", "playlist":"../files/mrss.xml"}'),
68                                                //      "XSPF" : "playlistparsing.html?"+escape('var config = {title:"XSPF Playlists", "playlist":"../files/xspf.xml"}')                                                       
69                                                //},
70                                                "Bitrate Switching" : "playlistparsing.html?"+escape('var config = {title:"Bitrate Switching", "playlist":"../files/bitrates.xml"}'),
71                                                "Dynamic Streaming" : "playlistparsing.html?"+escape('var config = {title:"Dynamic Streaming", "playlist":"../files/dynamic.xml"}'),
72                                                "Highwinds" : "playlistparsing.html?"+escape('var config = {title:"Highwinds", "playlist":"../files/highwinds.xml"}'),
73                                                "SMIL Loadbalancing" : "playlistparsing.html?"+escape('var config = {title:"SMIL Loadbalancing", "playlist":"../files/smil.xml"}')
74                        },
75                        "Components": {
76                                "Controlbar": "controlbar.html",
77                                "Logo": "logo.html"
78                        },
79                        "Plugins": {
80                                                "Overview": "plugins.html",
81                                                "Loading and Configuration" : {
82                                                        "Local": {
83                                                                "Absolute referenced": {
84                                                                        "JavaScript": "plugins.html?"+escape('var config = {title:"Absolute Path - JavaScript", plugins:{"http://localhost/player-5.5a/js/test/examples/plugins/textplugin.js":{text:"Plugin successfully loaded!"}}}'),
85                                                                        "Flash":"plugins.html?"+escape('var config = {title:"Absolute Path - Flash", plugins:{"http://localhost/player-5.5a/js/test/examples/plugins/hd.swf":{"file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}')
86                                                                },
87                                                                "Root referenced": {
88                                                                        "JavaScript": "plugins.html?"+escape('var config = {title:"Root Path - JavaScript", plugins:{"/player-5.5a/js/test/examples/plugins/textplugin.js":{text:"Plugin successfully loaded!"}}}'),
89                                                                        "Flash":"plugins.html?"+escape('var config = {title:"Root Path - Flash", plugins:{"/player-5.5a/js/test/examples/plugins/hd.swf":{"file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}')
90                                                                },
91                                                                "Relatively referenced": {
92                                                                        "JavaScript": "plugins.html?"+escape('var config = {title:"Relative Path - JavaScript", plugins:{"plugins/textplugin.js":{text:"Plugin successfully loaded!"}}}'),
93                                                                        "Flash":"plugins.html?"+escape('var config = {title:"Relative Path - Flash", plugins:{"plugins/hd.swf":{"file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}')
94                                                                },
95                                                                "Bad Path": {
96                                                                        "JavaScript": "plugins.html?"+escape('var config = {title:"Bad Path - JavaScript", plugins:{"plugins/textplugin.js":{text:"Plugin successfully loaded!"}, "plugins/textplugin1.js":{text:"Plugin successfully loaded!"}}}'),
97                                                                        "Flash":"plugins.html?"+escape('var config = {title:"Bad Path - Flash", plugins:{"http://localhost/player-5.5a/js/test/examples/plugins/hd1.swf":{"file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}')
98                                                                },
99                                                                "Mixed Mode": {
100                                                                        "CDN": "plugins.html?"+escape('var config = {title:"Mixed Mode - CDN", plugins:{"plugins/hd-cdn.js":{text:"Plugin successfully loaded!", "file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}'),
101                                                                        "Absolute": "plugins.html?"+escape('var config = {title:"Mixed Mode - Absolute", plugins:{"plugins/hd-absolute.js":{text:"Plugin successfully loaded!", "file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}'),
102                                                                        "Root": "plugins.html?"+escape('var config = {title:"Mixed Mode - Root", plugins:{"plugins/hd-root.js":{text:"Plugin successfully loaded!", "file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}'),
103                                                                        "Relative": "plugins.html?"+escape('var config = {title:"Mixed Mode - Relative", plugins:{"plugins/hd-relative.js":{text:"Plugin successfully loaded!", "file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}'),
104                                                                        "Bad": "plugins.html?"+escape('var config = {title:"Mixed Mode - Bad", plugins:{"plugins/hd-bad.js":{text:"Plugin successfully loaded!", "file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}')
105                                                                },
106                                                                "Flash Only": "plugins/local/flash.html",
107                                                                "Multiple plugins": "plugins/local/multiple.html",
108                                                                "Versioning": "plugins/local/versioning.html"
109                                                        },
110                                                        "Hosted": {
111                                                                "JavaScript": "plugins.html?"+escape('var config = {title:"Absolute Path - JavaScript", plugins:{"textplugin":{text:"Plugin successfully loaded!"}}}'),
112                                                                "Flash":"plugins.html?"+escape('var config = {title:"Absolute Path - Flash", plugins:{"hd":{"file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}')
113                                                        }
114                                                }
115                                        },
116                        "Stretching": "stretching.html",
117                        "Chromeless": "chromeless.html"
118                },
119                "API": {
120                        "Utilities": {
121                                "API": "api.html",
122                                "Event listeners": "listeners.html"
123                        },
124                        "Setup / remove": "setupandremove.html",
125                        "Unit Tests": {
126                                "Events": "apiunittestevents.html",
127                                "Play": "apiunittestplay.html",
128                                "Pause": "apiunittestpause.html",
129                                "Mute": "apiunittestmute.html",
130                                "Fullscreen": "apiunittestfullscreen.html"
131                        },
132                        "Resize": "resize.html",
133                        "Load": "load.html"
134                },
135                "Common Libraries": {
136                        "Dojo": "libraries/dojo.html",
137                        "Ext Core": "libraries/ext-core.html",
138                        "jQuery": "libraries/jquery.html",
139                        "MooTools": "libraries/mootools.html",
140                        "Prototype": "libraries/prototype.html",
141                        "Scriptaculous": "libraries/scriptaculous.html",
142                        "SWFObject": "libraries/swfobject.html",
143                        "YUI": "libraries/yui.html"
144                },
145                "Player 5.4": {
146                        "Bugs": {
147                                "Social media": "socialmedia.html",
148                                "Loading HTML instead of a skin": "htmlskin.html",
149                                "Firefox bug": "ff3bug.html#",
150                                "FLV failover": "failover.html",
151                                "Video URLs with query strings": "extensions.html",
152                                "Skins: Controlbar without settings block": "testskin.html"
153                        },
154                        "Features": {
155                                "Apple (Cupertino) Streaming": "m3u8.html",
156                                "Netstream base path": "netstreambasepath.html",
157                                "Settable wmode": "wmode.html",
158                                "Download fallback": "downloadfallback.html"
159                        }
160                }
161            };
162           
163            function createList(examples, parentDOM) {
164                for (var example in examples) {
165                        var listItem = document.createElement("li");
166                        if (typeof examples[example] == "object") {
167                                listItem.innerHTML = example;
168                                var newList = document.createElement("ul");
169                                listItem.appendChild(newList);
170                                createList(examples[example], newList);
171                        } else {
172                                var link = document.createElement("a");
173                                link.href = examples[example];
174                                link.innerHTML = example;
175                                listItem.appendChild(link);
176                        }
177                        parentDOM.appendChild(listItem);
178                }
179            }
180           
181           
182            createList(examplePages, list);
183        </script>
184    </body>
185</html>
Note: See TracBrowser for help on using the repository browser.