XtGem Forum catalog
HomeBlogAbout Me

Screen Capture (by Google)



Awesome screenshot app chrome
  1. Screen Capture By Google Extension
  2. Screen Capture By Google Download
  3. Screen Capture Google Pixel

A free online screen recorder is one of the best tools to capture a screen in just a couple of clicks. No software installation needed. Use our online video recorder for. Screenshot Capture Screen Capture is the best,easiest and simplest way to capture, edit and share your mobile screen with friends and all. There is an 'Overlay button' to capture screen that is displayed on top of everything. You can take the screenshot easily with one touch on the screen. Capture the screen in several apps such as games, wallpapers or any type of apps or videos. Full Page Screen Capture. Full Page Screen Capture is one of the best and top-rated Google Chrome extension for screen capture. With Full Page Screen Capture, you can easily capture a screenshot of your current page. Just like every other screenshot capture extension, Full Page Screen Capture also allows users to edit the captured screenshots.

To build screen sharing capabilities into a WebRTC video chat application you must first be able to capture the content on screen. In this post we’re going to see how to access the screen capture capabilities of Google Chrome from within a web application.

What you need

In order to build this project you will need:

  • A text editor
  • A local web server – I like to use servedir for things like this

Screen sharing

As of right now, Chrome does not allow you to access the content of a screen via the mediaDevices API. There is a draft spec for a getDisplayMedia method but no browser has implemented it yet. Screen sharing on the web has many security concerns for the end user, so the browsers are handling this feature with concern.

What can we do right now then?

Well, in Chrome we can write a extension which will give us access to the screen, application windows, and browser tabs. Chrome extensions have extended permissions and APIs that allow access to resources that regular JavaScript on the page cannot.

Let’s write an extension that will give access to screen capture and then show the results of that on the page.

Building a Chrome Extension

The extension we are going to build is very simple. It consists of two parts: a manifest.json file that describes the extension and the script we want to run, which we’ll call extension.js.

The extension manifest

Screen Capture By Google Extension

Create a new directory in which to build our application, a directory for the extension itself, and the files manifest.json and extension.js.

Open up manifest.json in your favourite text editor. We need to add a few basic details to the manifest to start with: a name, a description, the version of our extension and the version of the manifest file format that we require which in this case is 2.

Now we need to describe how the extension works. Add the following to the manifest:

This tells Chrome what the extension actually does.

Firstly, it runs the file extension.js in the background. The 'persistant': false option indicates that we are building an event page. This means that when the extension isn’t needed it is unloaded and doesn’t take up system resources.

Being externally_connectable means that this extension can receive messages from a web page on a matching URL. In this case this is a development extension and will only work for localhost. If you want to build this into an extension for your site, you’ll need to add your own domain matching code here.

Finally, the permissions part means we want access to the Chrome extension’s desktopCapture API. We’ll see how that works as we write the code for the extension itself.

The extension code

To build an event page we need to create an event listener. We’ll be waiting for a message from a web page so open extension.js and start by entering:

chrome.runtime is the API we use to respond to events external to the extension as well as return other details about the extension itself. onMessageExternal is fired when a message is received from outside the extension so we need to listen to it. When our listener gets called it receives three arguments, the message we send from our page, a runtime.MessageSender object and a function we can use at most once to send a message back to the page.

Once this event fires, we then need to use chrome.desktopCapture.chooseDesktopMedia to pop up the screen sharing choice. We need to pass an array of sources to capture. These can be “screen”, “window”, “tab”, or “audio” and we’ll pass them through from the web page in the message we send. We also pass the tab that sent the message to the extension. Finally, we need to pass a callback that will be called once the function returns a streamId for the stream we asked for access to. In order to let us use the sendResponse function asynchronously we also need to return true at the end of the listener function.

Once we get the response to the callback we’re nearly done with the extension. All we need to do is to check if the user authorised access to a screen and send back either an unsuccessful response or the ID of the stream to the web page using sendResponse.

This is all we need to write for this version of our extension. Now we need to install it before we can use it.

Install the extension

Installing an extension that you’re working on in Chrome to test is nice and easy. Just open up the extensions settings page by typing chrome://extensions into the address bar of the browser.

Then, to install the extension you need to check the “Developer mode” box and then choose “Load unpacked extension…”. From the dialog, navigate to the directory you saved the extension in and select the whole directory.

Once it’s uploaded you will want to take a note of your extension ID. We’ll need that in the next part.

Building screen capture

For the rest of this post we’re going to see how to use our new extension to get access to capture our screen. We’ll show that in a <video> element on a web page for now. In another post we’ll look into using the stream in a video chat so we can share our screen remotely.

Get started by creating directory called chrome within your project directory and inside that a new HTML page called index.html. Add the following markup:

This is a basic HTML page with one <video> element inside to show our results, two buttons to start and stop the screen capture and a <script> block where we will write the rest of the code.

We’ll start the code by gathering the DOM elements we are going to use. We also set up an object for the request we’ll make to the extension later. Remember we could supply the sources we wanted to select from. In this app we’ll be able to choose from the whole screen, a window of an app or a tab from Chrome. You’ll also need the extension ID from when you loaded your extension into Chrome earlier. Add this inside your <script> block:

Now, to start on capturing the desktop. When we click on the button to get the screen we make the request to the extension and get the response in a callback.

Once we have the response we check whether it is a success. If so, we can take the stream ID that the extension returned to us and pass it to the mediaDevices API. If not, then we log that access was denied.

In this code we pass options to the video option for mediaDevices.getUserMedia. The chromeMediaSource should be set to 'desktop' and the chromeMediaSourceId is the stream ID we got from the extension.

The rest of the code we need to write is just the same as regular getUserMedia code. The function returns a Promise that resolves with the stream, so we need to set the stream as the source to the page’s <video> element. We’ll also hide the get screen button, show the stop screen button and catch any errors that may occur.

Finally, we can write the code to handle stopping the screen capture. This will listen for clicks on the button, get the stream’s tracks and stop them all. It also removes the src from the <video> and reverses the visible buttons.

That’s all the code. Let’s run this.

Capturing the screen

Screen Capture By Google Download

The last thing we need to do is serve this HTML file on localhost. I usually use an npm module called servedir. If you have Node.js and npm installed, you can install it with

You can then navigate using the command line to the directory you saved your file in and serve it on localhost:8000 by entering:

If you have another method you use to serve static files on localhost you can use that too.

Open up the page, click on the “Get the screen” button and choose the screen, window or tab you want to share. You’ve captured your screen!

Next steps

If you didn’t write all that code down, you can also check out the results in this GitHub repo. Switchem 1 1 0.

Everything we have done here is very specific to the Chrome browser, but it turns out you can get access to screen capture in Firefox too. With that knowledge check out how to use the code for both Chrome and Firefox to build a screen sharing video chat application with Twilio Video.

We have implemented a very minimal version of the required extension to get access to screen capture. For a more robust version, check out the screen capture guide in the Twilio docs. You’ll also find more information there on how to use this new ability with Twilio Video to screen share during a video call.

Do you have an interesting use case for screen capture in browsers? Drop me your ideas or any questions in the comments below. Or feel free to reach out on Twitter at @philnash or by email at philnash@twilio.com.

Google Maps is a web mapping service application. It not only provides satellite imagery, street maps, but also offers routes for you depending on your transportation (by car, public transportation, walking and bicycling). In 2007, Google Maps furnished itself with a new feature: My Maps. It allows users to create their own map with lines, markers, directions, as well as measure distances and areas. Having been updated with coming up features later, Google Maps becomes more and more intuitive and powerful for you to search any place around the world.

In order to record a location on Google Maps or instruct others on using it, you need to create a screenshot of the map. However, you are unable to save Google Maps when you right-click your mouse as there is no “save image as…” in the menu. In this case, taking screenshot of Google Maps will be a solution to this problem. This article offers you three ways to do this job. Check them out in the following summary.

How to Screeshot Google Maps

Screenshot Google Maps with Comprehensive Tool

Apowersoft Screen Capture Pro is a powerful application which has various screenshot modes and a robust screen recorder. With this tool, you are able to take screenshots of any part on the screen directly. Aside from taking screenshots, this tool also enables you to add some annotations to the screenshot the moment you create it. What’s more, after editing the screenshot, you can upload it to the Cloud or just share it directly to Twitter, Google+ and Pinterest.

To create a screenshot of Google Maps, you can follow the steps below:

Screen Capture Google Pixel

  • Download and install this program on your PC.
  • Navigate to Google Maps and find your target map.
  • Click “All in one” capture mode, choose “Quick editor” and hit the camera icon on the interface of this tool. Then you will see your cursor turns into a crosshair. You can drag your mouse to select a specific region on the map, or just hover the mouse over your browser to grab the window. The screenshot will be confirmed as soon as you release your mouse.
  • Upon the creation of a screenshot, there will be two toolbars around it. You can decorate your map with texts, arrows, and lines, which are available on the horizontal toolbar. When you’re done all the marks, click the “Save” button to save the image, or hit the share button on the vertical bar to deliver it instantly to your social accounts.

Snapshot Google Maps with Screenshot Extension

Webpage screenshot is a free extension for Google chrome. It is designed to take screenshots of anything on webpages. To take a screenshot of Google Maps with this tool, here are the steps:

  • Search for “Webpage Screenshot” extension in Chrome store and add it to Chrome.
  • Open Google Maps and navigate to the map of the target place.
  • Hit the icon of this extension on the toolbar, and choose “Visible screenshot” to capture the map on your browser.
  • After that, a window will pop up with the Google map screenshot in it. There will be some editing options for you to use. You can crop it to get the specific part you want or add texts, lines and arrows to the graph.
  • Click the “Save” button on the top right corner to preserve the image to local file folder.

This method is workable but a little troublesome in that you can’t capture a spot on the map flexibly.

Use Built-in Apple Program to Screenshot Google Maps

To create a screenshot on Mac is very easy. You can use the key combinations of “Command + Shift + 3/4”. But you can’t add highlights on the screenshot instantly in this way. In this case, you can use a bundled Apple utility called Grab, which is located under Utilities. You can capture anything visible on the screen with this program. In order to snapshot Google Maps, you need to:

  • Display the Google Map you want.
  • Click “Finder”>”Applications”>”Utilities”, find Grab and Run it.
  • Hit “Capture” to drop down a menu, on which you can either select “Window” to snapshot the whole Google Maps window or choose “Selection” and drag your mouse to capture a particular part on Google Maps.
  • Click “Save” under “File” to preserve it to your local disk.

As you can see, this method is also very easy and you don’t need to install anything on your Mac.

Take Google Map Screenshot with Shareware

Capturing Google Map can also be done with a use of a well known shareware called Jing. This is a standalone snapshot application that can be utilized in grabbing a certain portion of the screen, or even the entire page. It also has an editing feature which can help you in putting marks on the map. Here are the steps to take screenshot with this shareware.

  • Install and run Jing.
  • Open your desired Google Map.
  • Hit the cross hair icon from the three hand Jing shortcut, and drag it to the portion to capture.
  • Save the captured screenshot to the folder you like.
Screen Capture (by Google)

Conclusion

This post provides several ways on how to screenshot Google Maps. Among them, Apowersoft Screen Capture Pro is the best way to capture screen on Google Maps, because of its multiple screenshot modes, powerful image editor and various screenshot managing ways.

Related posts:





Screen Capture (by Google)
Back to posts
This post has no comments - be the first one!

UNDER MAINTENANCE