ByteScout Screen Capturing SDK - Java - Record Screen Video - ByteScout

ByteScout Screen Capturing SDK – Java – Record Screen Video

  • Home
  • /
  • Articles
  • /
  • ByteScout Screen Capturing SDK – Java – Record Screen Video

How to record screen video in Java and ByteScout Screen Capturing SDK

This tutorial will show how to record screen video in Java

Every ByteScout tool contains example Java source codes that you can find here or in the folder with installed ByteScout product. ByteScout Screen Capturing SDK can record screen video. It can be used from Java. ByteScout Screen Capturing SDK is the screen video recording SDK helps in quick implementation of screen video recording. WMV, AVI, WebM output options are available with adjustable quality, video size, framerate and video and audio codec. Includes special features like live multiple blacking out of selected areas, recording from web cam as main source and as overlay, optional watermarks for output video.

You will save a lot of time on writing and testing code as you may just take the Java code from ByteScout Screen Capturing SDK for record screen video below and use it in your application. Follow the instructions from the scratch to work and copy the Java code. Enjoy writing a code with ready-to-use sample codes in Java.

You can download free trial version of ByteScout Screen Capturing SDK from our website to see and try many others source code samples for Java.

Try ByteScout Screen Capturing SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

Readme.txt
      
If you are running your Java application on Windows then you may use Screen Capturing SDK from Java using the Jacob library ( you may get it from http://danadler.com/jacob/ ) The final code (using Jacob) code should look like this import com.ms.com.*; import com.ms.activeX.*; public class DispatchTest { public static void main(String[] args) { ActiveXComponent captureLib = new ActiveXComponent("BytescoutScreenCapturing.Capturer"); Object capturer = captureLib.getObject(); try { // output file name Dispatch.put(capturer, "OutputFileName", "EntireScreenCaptured.wmv"); // output width Dispatch.put(capturer, "OutputWidth", 640); // output height Dispatch.put(capturer, "OutputHeight", 480); // setting the capturing type to 3 (entire screen) Dispatch.put(capturer, "CapturingType", 3); // run the recording Variant f = new Variant(false); Dispatch.call(workbook, "Run", f); // record for 5 seconds Thread.sleep(4000); } catch (Exception e) { e.printStackTrace(); } finally { ; } } }

Try ByteScout Screen Capturing SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

Test.java
      
/* If you are running your Java application on Windows then you may use Screen Capturing SDK from Java using the Jacob library ( you may get it from http://danadler.com/jacob/ ) The final code (using Jacob) code should look like this */ import com.ms.com.*; import com.ms.activeX.*; public class DispatchTest { public static void main(String[] args) { ActiveXComponent captureLib = new ActiveXComponent("BytescoutScreenCapturing.Capturer"); Object capturer = captureLib.getObject(); try { // output file name Dispatch.put(capturer, "OutputFileName", "EntireScreenCaptured.wmv"); // output width Dispatch.put(capturer, "OutputWidth", 640); // output height Dispatch.put(capturer, "OutputHeight", 480); // setting the capturing type to 3 (entire screen) Dispatch.put(capturer, "CapturingType", 3); // run the recording Variant f = new Variant(false); Dispatch.call(workbook, "Run", f); // record for 5 seconds Thread.sleep(4000); } catch (Exception e) { e.printStackTrace(); } finally { ; } } }

Try ByteScout Screen Capturing SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

VIDEO

ON-PREMISE VERSION INFORMATION

Get 60 Day Free Trial or Visit ByteScout Screen Capturing SDK Home Page

Explore ByteScout Screen Capturing SDK Documentation

Get ByteScout Screen Capturing SDK Free Training

WEB API

Get Your Free API Key

Explore Web API Documentation

Tutorials:

prev
next