# wpstream/4.4.10/public/js/shortcodes.js

WpStream – Live Streaming, Video on Demand, Pay Per View, version 4.4.10. 58 lines.

- Page: https://pluginprobe.com/plugins/wpstream/4.4.10/code/public/js/shortcodes.js
- Raw: https://pluginprobe.com/plugins/wpstream/4.4.10/raw/public/js/shortcodes.js
- Modified: 2022-12-05T16:39:10+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/4.4.10/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);
})();

(function () {
    tinymce.create('tinymce.plugins.wpstream_list_products_channels', {
        
        init: function (ed, url) {
            ed.addButton('wpstream_list_products_channels', {
                title: 'WpStream List Channels',
                image:  url + '/list_media.png',
                onclick: function () {
                    ed.selection.setContent('[wpstream_list_products_channels][/wpstream_list_products_channels]');
                }
            });
        },
        createControl: function (n, cm) {
            return null;
        }
    });
    tinymce.PluginManager.add('wpstream_list_products_channels', tinymce.plugins.wpstream_list_products_channels);
})();

```
