@bradmax/player-rxjs
Version:
Bradmax Player ReactJs.
13 lines • 1.62 kB
JavaScript
!function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory():"function"==typeof define&&define.amd?define("bradmax-player-rxjs-zebra",factory):factory()}(0,function(){"use strict";
/**
* @license
* _ _
* | | | |
* | |__ _ __ __ _ __| |_ __ ___ __ ___ __
* | '_ \| '__/ _` |/ _` | '_ ` _ \ / _` \ \/ /
* | |_) | | | (_| | (_| | | | | | | (_| |> <
* |_.__/|_| \__,_|\__,_|_| |_| |_|\__,_/_/\_\
*
* Bradmax Player
* bradmax.com
*/Object.defineProperty(exports,"__esModule",{value:!0});var tslib_1=require("tslib");require("@bradmax/player/zebra");var version_1=require("@bradmax/player/version"),React=require("react"),BradmaxPlayerZebra=function(_super){function BradmaxPlayerZebra(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.theme="zebra",_this.container=null,_this.player=null,_this.api=null,_this}return tslib_1.__extends(BradmaxPlayerZebra,_super),BradmaxPlayerZebra.prototype.componentDidMount=function(){null!=this.container&&(this.player=bradmax.player.create(this.container,this.props,this.theme+"_"+version_1.BRADMAX_PLAYER_VERSION),this.api=this.player.modules.JavascriptApi)},BradmaxPlayerZebra.prototype.componentWillUnmount=function(){null!=this.player&&bradmax.player.destroy(this.player)},BradmaxPlayerZebra.prototype.render=function(){var _this=this;return React.createElement("div",{className:"bradmax-player zebra",ref:function(r){return _this.container=r}})},BradmaxPlayerZebra}(React.Component);exports.default=BradmaxPlayerZebra});