Skip to content

Commit

Permalink
增加react集成示例
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjin committed Nov 20, 2017
1 parent db03387 commit d3f4647
Show file tree
Hide file tree
Showing 8 changed files with 19,108 additions and 28 deletions.
4 changes: 2 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<title>ksplayer demo</title>
<meta content="直播SDK,点播SDK,金山云,视频云,视频播放,KLS,KVS,Kingsoft,KingCloud, Playback, KSPlayer, ksplayer" name="keywords">
<meta content="KSPlayer是金山云的Web端视频播放器,该播放器Web SDK让您可以在主流的桌面和移动端浏览器上播放rtmp、hls、http-flv协议的直播视频以及mp4、m3u8格式的点播视频。KSPlayer基于video.js框架开发,提供稳定和易于使用的API。本SDK隶属于金山云视频云解决方案" name="description">
<link rel="shortcut icon" href="https://www.ksyun.com/assets/img/static/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="./style/ksplayer.min.css">

<style>
Expand Down Expand Up @@ -85,10 +86,9 @@ <h1>KSPlayer Demo</h1>
<script src="js/ksplayer.min.js"></script>

<script>

ksplayer.options.flash.swf = "ksplayer.swf";
</script>

<script>
var $ = document.querySelectorAll.bind(document);

var player = ksplayer('example-video',{
Expand Down
26 changes: 13 additions & 13 deletions demo/js/ksplayer.min.js

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions demo/lib/browser.min.js

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions demo/lib/react-dom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/**
* ReactDOM v0.14.0
*
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
// Based off https://github.com/ForbesLindesay/umd/blob/master/template.js
;(function(f) {
// CommonJS
if (typeof exports === "object" && typeof module !== "undefined") {
module.exports = f(require('react'));

// RequireJS
} else if (typeof define === "function" && define.amd) {
define(['react'], f);

// <script>
} else {
var g
if (typeof window !== "undefined") {
g = window;
} else if (typeof global !== "undefined") {
g = global;
} else if (typeof self !== "undefined") {
g = self;
} else {
// works providing we're not in "use strict";
// needed for Java 8 Nashorn
// see https://github.com/facebook/react/issues/3037
g = this;
}
g.ReactDOM = f(g.React);
}

})(function(React) {
return React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
});
Loading

0 comments on commit d3f4647

Please sign in to comment.