增加快速启动的研发模式fast
This commit is contained in:
		| @@ -1,2 +0,0 @@ | ||||
| # jessibuca-mobile-demo | ||||
|  jessibuca mobile demo | ||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -1,72 +0,0 @@ | ||||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
|  | ||||
| <head> | ||||
|   <meta charset="UTF-8" /> | ||||
|   <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||||
|   <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||||
|   <title>Document</title> | ||||
|   <style> | ||||
|     * { | ||||
|       margin: 0; | ||||
|     } | ||||
|  | ||||
|     html, | ||||
|     body { | ||||
|       width: 100%; | ||||
|       height: 100%; | ||||
|     } | ||||
|  | ||||
|     #container { | ||||
|       width: 100%; | ||||
|       height: 100%; | ||||
|       background-color: #000; | ||||
|     } | ||||
|   </style> | ||||
| </head> | ||||
|  | ||||
| <body> | ||||
|   <div id="container"></div> | ||||
|   <script src="index.js"></script> | ||||
|  | ||||
|   <script> | ||||
|     var search = document.location.search | ||||
|  | ||||
|     if (!search && search.split('url=').length < 2) { | ||||
|  | ||||
|     } else { | ||||
|       var url = search.split('url=')[1] | ||||
|       var player = new window.Jessibuca({ | ||||
|         container: document.getElementById("container"), | ||||
|         decoder: "./index.js", | ||||
|         isResize: false, | ||||
|         supportDblclickFullscreen: true, | ||||
|         forceNoOffscreen: true, | ||||
|         keepScreenOn: true, | ||||
|         isNotMute: true, | ||||
|         loadingText: '加载中...', | ||||
|         operateBtns: { | ||||
|           fullscreen: true, | ||||
|           screenshot: true, | ||||
|           play: true, | ||||
|           audio: true, | ||||
|           record: true | ||||
|         } | ||||
|       }); | ||||
|  | ||||
|       if (player.hasLoaded()) { | ||||
|         player.play(url) | ||||
|       } else { | ||||
|         player.on('load', function () { | ||||
|           player.play(url) | ||||
|         }) | ||||
|       } | ||||
|  | ||||
|       player.on('fullscreen', function (e) { | ||||
|         window.parent.postMessage(e, '*') | ||||
|       }) | ||||
|     } | ||||
|   </script> | ||||
| </body> | ||||
|  | ||||
| </html> | ||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Reference in New Issue
	
	Block a user