source: trunk/fl5/js/test/examples/switchhttp.html @ 1712

Revision 1712, 1.9 KB checked in by pablo, 2 years ago (diff)

Adding 5.6 test cases

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>Multiple sources</title>
5        <script type="text/javascript" src="../../bin-debug/jwplayer.js">
6        </script>
7        <script type="text/javascript" src="settings.js">
8        </script>
9    </head>
10    <body>
11        <script type="text/javascript">
12            document.write("<h1>" + document.title + "</h1>");
13        </script>
14        <p>
15            In Flash mode, switching from an HTTP streaming item to another item, then back to the HTTP streaming item would result in a blank screen.
16           
17            To test, play the first item, then switch to the second item, then back to the first.
18        </p>
19        <div>
20            <div id="player">
21                Flash Player should replace this.
22            </div>
23            <p id="text">This text should be after the player</p>
24        </div>
25        <script type="text/javascript">
26            jwplayer("player").setup({
27                players: settings.players(window.location.href, ["flash","html5","download"]),
28                playlist: [
29                    {                   
30                        file:'http://content.bitsontherun.com/videos/Qvxp3Jnv-483.mp4',
31                        image: "http://content.bitsontherun.com/thumbs/Qvxp3Jnv-480.jpg",
32                                provider:'http',
33                                title:'HTTP Stream'
34                    },
35                    {                   
36                                file:'videos/Qvxp3Jnv-483.mp4',
37                        image: "http://content.bitsontherun.com/thumbs/Qvxp3Jnv-480.jpg",
38                                streamer:'rtmp://fms.12E5.edgecastcdn.net/0012E5',
39                                title:'RTMP Stream'
40                    }
41                ],
42                'playlist.position': "right",
43                height: "270",
44                width: "680",
45            });
46        </script>
47        <h3>HTML code</h3>
48    </body>
49</html>
Note: See TracBrowser for help on using the repository browser.