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

Revision 1743, 10.0 KB checked in by zach, 2 years ago (diff)
  • Fixing config parser
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                                                        "Unkown / 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                                                "Mode specific targetting": "modespecificconfig.html",
40                                                "Mode alias": "modealias.html",
41                                "Multiple jwplayer.js": "multiplejwplayerjs.html"
42                        },
43                        "Video codecs": {
44                                "Single MP4": "single_mp4.html",
45                                "Single OGV": "single_ogg.html",
46                                "YouTube": "youtube.html",
47                                "Multiple sources (MP4 and OGV)": "mp4_ogv.html",
48                                "Bitrate switching": "bitrateswitching.html",
49                                "RTMP": "rtmp.html"
50                        },
51                        "Audio codecs": {
52                                "Single MP3": "single_mp3.html",
53                                "Single OGG (Vorbis)": "single_ogg.html"
54                        }
55                },
56                "Configuration Tests": {
57                                        "Width / Height": "heightwidth.html",
58                                        "Providers": "providers.html", 
59                        "Multiple players with various options": "multiple_customs.html",
60                                        "Components + positions": "components.html",
61                        "Skins": {
62                                "All Skins": "custom_skin.html",
63                                "Invalid skin path specified": "badskin.html",
64                                "Skin redirect": "testskin.html"
65                        },
66                        "Playlists": {
67                                "Progressive download": "playlist.html?type=progressive",
68                                "Progressive video + audio": "playlist.html?type=audio",
69                                "RTMP": "playlist.html?type=rtmp",
70                                "Mixed": "playlist.html?type=mixed",
71                                "XML Playlits": "xmlplaylists.html"
72                        },
73                        "Components": {
74                                "Controlbar": "controlbar.html",
75                                "Logo": "logo.html",
76                                "Dock": "dock.html"
77                        },
78                        "Plugins": {
79                                                "Plugin strings": "pluginstrings.html",
80                                                "Loading and Configuration" : {
81                                                        "Local": {
82                                                                "Absolute referenced": {
83                                                                        "JavaScript": "plugins.html?"+escape('var config = {title:"Absolute Path - JavaScript", plugins:{"http://developer.longtailvideo.com/player/trunk/fl5/js/test/examples/plugins/textplugin.js":{text:"Plugin successfully loaded!"}}}'),
84                                                                        "Flash":"plugins.html?"+escape('var config = {title:"Absolute Path - Flash", plugins:{"http://developer.longtailvideo.com/player/trunk/fl5/js/test/examples/plugins/hd.swf":{"file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}')
85                                                                },
86                                                                "Root referenced": {
87                                                                        "JavaScript": "plugins.html?"+escape('var config = {title:"Root Path - JavaScript", plugins:{"/player/trunk/fl5/js/test/examples/plugins/textplugin.js":{text:"Plugin successfully loaded!"}}}'),
88                                                                        "Flash":"plugins.html?"+escape('var config = {title:"Root Path - Flash", plugins:{"/player/trunk/fl5/js/test/examples/plugins/hd.swf":{"file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}')
89                                                                },
90                                                                "Relatively referenced": {
91                                                                        "JavaScript": "plugins.html?"+escape('var config = {title:"Relative Path - JavaScript", plugins:{"plugins/textplugin.js":{text:"Plugin successfully loaded!"}}}'),
92                                                                        "Flash":"plugins.html?"+escape('var config = {title:"Relative Path - Flash", plugins:{"plugins/hd.swf":{"file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}')
93                                                                },
94                                                                "Bad Path": {
95                                                                        "JavaScript": "plugins.html?"+escape('var config = {title:"Bad Path - JavaScript", plugins:{"plugins/textplugin1.js":{text:"Plugin successfully loaded!"}}}'),
96                                                                        "Flash":"plugins.html?"+escape('var config = {title:"Bad Path - Flash", plugins:{"http://developer.longtailvideo.com/player/trunk/fl5/js/test/examples/plugins/hd1.swf":{"file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}')
97                                                                },
98                                                                "Mixed Mode": {
99                                                                        "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"}}}'),
100                                                                        "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"}}}'),
101                                                                        "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"}}}'),
102                                                                        "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"}}}'),
103                                                                        "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"}}}')
104                                                                },
105                                                                "Dock buttons" : {
106                                                                        "Flash": "docksetbutton.html?flash",
107                                                                        "Html5": "docksetbutton.html?html5"
108                                                                }
109                                                                //"Flash Only": "plugins/local/flash.html",
110                                                                //"Multiple plugins": "plugins/local/multiple.html",
111                                                                //"Versioning": "plugins/local/versioning.html"
112                                                        },
113                                                        "Hosted": {
114                                                                "JavaScript": "plugins.html?"+escape('var config = {title:"Absolute Path - JavaScript", plugins:{"textplugin":{text:"Plugin successfully loaded!"}}}'),
115                                                                "Flash":"plugins.html?"+escape('var config = {title:"Absolute Path - Flash", plugins:{"hd":{"file":"http://content.bitsontherun.com/videos/gSzpo2wh-486405.mp4"}}}')
116                                                        }
117                                                }
118                                        },
119                        "Stretching": "stretching.html",
120                        "Chromeless": "chromeless.html"
121                },
122                "API": {
123                        "Utilities": {
124                                "API": "api.html",
125                                "Event listeners": "listeners.html"
126                        },
127                        "Setup / remove": "setupandremove.html",
128                        "Unit Tests": {
129                                "Events (in setup block)": "apiunittesteventssetup.html",
130                                "Events (dynamic)": "apiunittesteventsdynamic.html",
131                                "Play": "apiunittestplay.html",
132                                "Pause": "apiunittestpause.html",
133                                "Mute": "apiunittestmute.html",
134                                "Fullscreen": "apiunittestfullscreen.html"
135                        },
136                        "Resize": "resize.html",
137                        "Load": "load.html"
138                },
139                "Common Libraries": {
140                        "Dojo": "libraries/dojo.html",
141                        "Ext Core": "libraries/ext-core.html",
142                        "jQuery": "libraries/jquery.html",
143                        "MooTools": "libraries/mootools.html",
144                        "Prototype": "libraries/prototype.html",
145                        "Scriptaculous": "libraries/scriptaculous.html",
146                        "SWFObject": "libraries/swfobject.html",
147                        "YUI": "libraries/yui.html"
148                },
149                "Player 5.4": {
150                        "Bugs": {
151                                "Social media": "socialmedia.html",
152                                "Loading HTML instead of a skin": "htmlskin.html",
153                                "Firefox bug": "ff3bug.html#",
154                                "FLV failover": "failover.html",
155                                "Video URLs with query strings": "extensions.html",
156                                "Skins: Controlbar without settings block": "testskin.html"
157                        },
158                        "Features": {
159                                "Apple (Cupertino) Streaming": "m3u8.html",
160                                "Netstream base path": "netstreambasepath.html",
161                                "Settable wmode": "wmode.html",
162                                "Download fallback": "downloadfallback.html"
163                        }
164                },
165                "Player 5.5": {
166                        "Bugs": {
167                                "Embed location": "embedlocation.html"
168                        }
169                },
170                "Player 5.6": {
171                        "Bugs": {
172                                "Switching HTTP mediaprovider": "switchhttp.html",
173                                "Mixed plugin locations": "mixedpluginlocations.html",
174                                                "HTTP Startparam" : "configdeserializer.html"
175                        },
176                        "Features": {
177                            "Enchanced tabbing capabilities": "tabbing.html"
178                        }
179                }
180            };
181           
182            function createList(examples, parentDOM) {
183                for (var example in examples) {
184                        var listItem = document.createElement("li");
185                        if (typeof examples[example] == "object") {
186                                listItem.innerHTML = example;
187                                var newList = document.createElement("ul");
188                                listItem.appendChild(newList);
189                                createList(examples[example], newList);
190                        } else {
191                                var link = document.createElement("a");
192                                link.href = examples[example];
193                                link.innerHTML = example;
194                                listItem.appendChild(link);
195                        }
196                        parentDOM.appendChild(listItem);
197                }
198            }
199           
200           
201            createList(examplePages, list);
202        </script>
203    </body>
204</html>
Note: See TracBrowser for help on using the repository browser.