No more maintaining this extension; as of 2019. So please use at your own risk.
This chrome extension not only captures content of the selected tab, but also provides multi-user peer-to-peer tab-streaming.
index.html
chrome.tabs.getSelected(null, function (tab) {
var video_constraints = {
mandatory: {
chromeMediaSource: 'tab'
}
};
var constraints = {
audio: false,
video: true,
videoConstraints: video_constraints
};
chrome.tabCapture.capture(constraints, function (stream) {
// it is a LocalMediaStream object!!
});
});
Make ZIP of the directory. Then navigate to Chrome WebStore Developer Dashboard and click Add New Item blue button.
To learn more about how to publish a chrome extension in Google App Store:
For additional information, click this link.
Chrome-Extensions are released under MIT license . Copyright (c) Muaz Khan.