| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html lang='en-US'> | 2 <html lang='en-US'> |
| 3 <head> | 3 <head> |
| 4 <title>EME playback test application</title> | 4 <title>EME playback test application</title> |
| 5 </head> | 5 </head> |
| 6 <body style='font-family:"Lucida Console", Monaco, monospace; font-size:14px'
onload="start()"> | 6 <body style='font-family:"Lucida Console", Monaco, monospace; font-size:14px'
onload="start()"> |
| 7 <i>Clearkey works only with content encrypted using bear key.</i><br><br> | 7 <i>Clearkey works only with content encrypted using bear key.</i><br><br> |
| 8 <table> | 8 <table> |
| 9 <tr title='URL param mediaFile=...'> | 9 <tr title='URL param mediaFile=...'> |
| 10 <td><label for='mediaFile'>Encrypted video URL:</label></td> | 10 <td><label for='mediaFile'>Encrypted video URL:</label></td> |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 if (!element) | 138 if (!element) |
| 139 return; | 139 return; |
| 140 if (element.style['display'] != 'none') | 140 if (element.style['display'] != 'none') |
| 141 element.style['display'] = 'none'; | 141 element.style['display'] = 'none'; |
| 142 else | 142 else |
| 143 element.style['display'] = ''; | 143 element.style['display'] = ''; |
| 144 } | 144 } |
| 145 | 145 |
| 146 function start() { | 146 function start() { |
| 147 initApp(); | 147 initApp(); |
| 148 // TODO(jrummell): Support setMediaKeys() after play(). |
| 149 // See http://crbug.com/675011 |
| 148 emeApp.createPlayer() | 150 emeApp.createPlayer() |
| 149 .then(function(p) { | 151 .then(function(p) { |
| 150 player = p; | 152 player = p; |
| 151 play(player.video, testConfig.playTwice); | 153 play(player.video, testConfig.playTwice); |
| 152 }).catch(function(error) { | 154 }).catch(function(error) { |
| 153 Utils.timeLog(error); | 155 Utils.timeLog(error); |
| 154 Utils.failTest('Unable to play video.'); | 156 Utils.failTest('Unable to play video.'); |
| 155 }); | 157 }); |
| 156 } | 158 } |
| 157 </script> | 159 </script> |
| 158 </html> | 160 </html> |
| OLD | NEW |