# wpstream/3.1.8/public/js/shortcodes.js

WpStream – Live Streaming, Video on Demand, Pay Per View, version 3.1.8. 40 lines.

- Page: https://pluginprobe.com/plugins/wpstream/3.1.8/code/public/js/shortcodes.js
- Raw: https://pluginprobe.com/plugins/wpstream/3.1.8/raw/public/js/shortcodes.js
- Modified: 2020-03-23T10:33:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpstream/3.1.8/code/public/js/shortcodes.js#L10-L20`.

```javascript
(function () {
    "use strict";
    tinymce.create('tinymce.plugins.wpstream_player', {
        init: function (ed, url) {
            ed.addButton('wpstream_player', {
                title: 'WpStream Player',
                image: url + '/button.png',
                onclick: function () {
                    ed.selection.setContent('[wpstream_player id="Add here the live stream id or the video id" ][/wpstream_player]');
                }
            });
        },
        createControl: function (n, cm) {
            return null;
        }
    });
    tinymce.PluginManager.add('wpstream_player', tinymce.plugins.wpstream_player);
})();


(function () {
    tinymce.create('tinymce.plugins.wpstream_list_products', {
        
        init: function (ed, url) {
            ed.addButton('wpstream_list_products', {
                title: 'WpStream List Products',
                image:  url + '/list_media.png',
                onclick: function () {
                    ed.selection.setContent('[wpstream_list_products media_number="No of media" product_type="Free Live Channel or Free Video"][/wpstream_list_products]');
                }
            });
        },
        createControl: function (n, cm) {
            return null;
        }
    });
    tinymce.PluginManager.add('wpstream_list_products', tinymce.plugins.wpstream_list_products);
})();


```
