{"action":"created","issue":{"url":"https://api.github.com/repos/clappr/clappr/issues/739","labels_url":"https://api.github.com/repos/clappr/clappr/issues/739/labels{/name}","comments_url":"https://api.github.com/repos/clappr/clappr/issues/739/comments","events_url":"https://api.github.com/repos/clappr/clappr/issues/739/events","html_url":"https://github.com/clappr/clappr/pull/739","id":122278624,"number":739,"title":"Сustom and reorder a set of internal plugins","user":{"login":"avreg","id":1052428,"avatar_url":"https://avatars.githubusercontent.com/u/1052428?v=3","gravatar_id":"","url":"https://api.github.com/users/avreg","html_url":"https://github.com/avreg","followers_url":"https://api.github.com/users/avreg/followers","following_url":"https://api.github.com/users/avreg/following{/other_user}","gists_url":"https://api.github.com/users/avreg/gists{/gist_id}","starred_url":"https://api.github.com/users/avreg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avreg/subscriptions","organizations_url":"https://api.github.com/users/avreg/orgs","repos_url":"https://api.github.com/users/avreg/repos","events_url":"https://api.github.com/users/avreg/events{/privacy}","received_events_url":"https://api.github.com/users/avreg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/clappr/clappr/labels/to-be-reviewed","name":"to-be-reviewed","color":"fef2c0"}],"state":"open","locked":false,"assignee":{"login":"towerz","id":989801,"avatar_url":"https://avatars.githubusercontent.com/u/989801?v=3","gravatar_id":"","url":"https://api.github.com/users/towerz","html_url":"https://github.com/towerz","followers_url":"https://api.github.com/users/towerz/followers","following_url":"https://api.github.com/users/towerz/following{/other_user}","gists_url":"https://api.github.com/users/towerz/gists{/gist_id}","starred_url":"https://api.github.com/users/towerz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/towerz/subscriptions","organizations_url":"https://api.github.com/users/towerz/orgs","repos_url":"https://api.github.com/users/towerz/repos","events_url":"https://api.github.com/users/towerz/events{/privacy}","received_events_url":"https://api.github.com/users/towerz/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-12-15T13:59:32Z","updated_at":"2015-12-15T16:54:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/clappr/clappr/pulls/739","html_url":"https://github.com/clappr/clappr/pull/739","diff_url":"https://github.com/clappr/clappr/pull/739.diff","patch_url":"https://github.com/clappr/clappr/pull/739.patch"},"body":"Example (from public/plugins.html):\r\n\r\n```\r\n    // override or/and reorder internal plugins set for all players\r\n    Clappr.defaultPlugins.playback = ['flash', 'html5_video', 'html5_audio', 'hls', 'flashls', 'html_img' /*, 'no_op' */];\r\n    Clappr.defaultPlugins.container = ['spinner', 'watermark', 'poster', /* 'stats', 'google_analytics', */ 'click_to_pause'];\r\n    Clappr.defaultPlugins.core = ['dvr_controls', 'favicon', 'seek_time'];\r\n\r\n    // override or/and reorder internal plugins set for a current player\r\n    var player = new Clappr.Player({\r\n        source: 'http://clappr.io/highline.mp4',\r\n        poster: 'http://clappr.io/poster.png',\r\n        mute: true,\r\n        height: 240,\r\n        width: 320,\r\n        internalPlugins: {\r\n          playback: ['html5_video', 'html5_audio', 'flash', 'flashls', 'hls', 'html_img' /*, 'no_op' */],\r\n          container: ['spinner']\r\n        },\r\n        plugins: {'playback': [RTMP]},\r\n        rtmpConfig: {\r\n          swfPath: 'dist/assets/RTMP.swf',\r\n          scaling:'stretch',\r\n          playbackType: 'live',\r\n          bufferTime: 1,\r\n          startLevel: 0,\r\n          autoSwitch: true,\r\n        }\r\n      });\r\n```"},"comment":{"url":"https://api.github.com/repos/clappr/clappr/issues/comments/164825591","html_url":"https://github.com/clappr/clappr/pull/739#issuecomment-164825591","issue_url":"https://api.github.com/repos/clappr/clappr/issues/739","id":164825591,"user":{"login":"avreg","id":1052428,"avatar_url":"https://avatars.githubusercontent.com/u/1052428?v=3","gravatar_id":"","url":"https://api.github.com/users/avreg","html_url":"https://github.com/avreg","followers_url":"https://api.github.com/users/avreg/followers","following_url":"https://api.github.com/users/avreg/following{/other_user}","gists_url":"https://api.github.com/users/avreg/gists{/gist_id}","starred_url":"https://api.github.com/users/avreg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avreg/subscriptions","organizations_url":"https://api.github.com/users/avreg/orgs","repos_url":"https://api.github.com/users/avreg/repos","events_url":"https://api.github.com/users/avreg/events{/privacy}","received_events_url":"https://api.github.com/users/avreg/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T16:54:25Z","updated_at":"2015-12-15T16:54:25Z","body":"В Tue, 15 Dec 2015 08:13:18 -0800\nBruno Torres <notifications@github.com> пишет:\n\n> As you mentioned in #737, you need the ability to remove some plugins from the list. Since we don't have this implemented yet, why don't you try to disable the undesired plugins for now?\n\nReally? Without patching loader.js?\n\nHow can I just turn off the following plugins:\n  * container: [WaterMarkPlugins, StatsPlugin, GoogleAnalyticsPlugin]\n  * playback: [hls, flash]\n?\n\n> Another way to do this is extending the player class and making your own loader exposing your list of internal plugins.\nYes, it is possible, but more like a hack.\n"}}