/**
* a helper to invoke any setter/getter from the native player
* @author: Aamir khan
* @param {String} fnName name of the function to be invoked from native player
* @returns {any} result form the invoked function
* @example
* MyWrapper.prototype.play = invokeNative('play');
*/
const invokeNative = (fnName) => function() {
console.log('INVOKE NATIVE')
const player = this.activePlayer;
return player[fnName].apply(player, arguments);
}
export default invokeNative;