appear2mee("setInlineMessageStateFn", inlineMessageState);
function inlineMessageState(messageId, state, value) {
if (state == "playButtonClick") {
console.log("msg:" + messageId + " with state:" + state);
if (state == "playReady") {
console.log("msg:" + messageId + " with state:" + state);
if (state == "playEnd") {
console.log("msg:" + messageId + " with state:" + state);
if (state == "playStarted") {
console.log("msg:" + messageId + " with state:" + state);
if (state == "loading") { // update loading indicator
console.log("msg:" + messageId + " with state:" + state + " and value:" + value );
console.log("msg:" + messageId + " with state:" + state);