Examples of Video


Examples of org.arquillian.extension.recorder.video.Video

        takenResourceRegister.get().addReported(video);
        propertyReportEvent.fire(new PropertyReportEvent(getVideoEntry(video)));
    }

    public void onStopRecording(@Observes StopRecordVideo event) throws IOException {
        Video video = recorder.get().stopRecording();
        takenResourceRegister.get().addTaken(video);

        TestResult testResult = event.getVideoMetaData().getTestResult();

        if (testResult != null) {
            Status status = testResult.getStatus();
            appendStatus(video, status);
            if (!status.equals(Status.FAILED) && configuration.get().getTakeOnlyOnFail()) {
                if (!video.getResource().getAbsoluteFile().delete()) {
                    System.out.println("video was not deleted: " + video.getResource().getAbsolutePath());
                }
                File directory = video.getResource().getParentFile();
                if (directory != null && directory.listFiles().length == 0) {
                    FileUtils.deleteDirectory(directory);
                }
            }
        }
View Full Code Here

Examples of org.arquillian.extension.recorder.video.Video

    }

    @Override
    public Video stopRecording() {
        if (recorder != null && recorder.isRecording()) {
            Video video = recorder.stopRecording();
            takenResourceRegister.addTaken(video);
            return video;
        }
        throw new IllegalStateException("It seems you have not called init() method of this video recorder yet.");
    }
View Full Code Here

Examples of org.arquillian.extension.recorder.video.Video

        } catch (InterruptedException ignored) {
            throw new RuntimeException("Unable to stop video recording.");
        }

        timer = null;
        Video video = new DesktopVideo();
        video.setResource(recordedVideo);
        video.setResourceType(VideoType.valueOf(configuration.getVideoType()));
        video.setWidth(screenBounds.width / 2);
        video.setHeight(screenBounds.height / 2);
        return video;
    }
View Full Code Here

Examples of org.internna.iwebmvc.model.core.Video

    }

    @Override
    @SuppressWarnings("unchecked")
    public void setAsText(String text) throws IllegalArgumentException {
        Video doc = (Video) getValue();
        Properties properties = new Properties();
        try {
            properties.load(IOUtils.toInputStream(text));
            String uri = properties.getProperty("uri");
            Assert.isEncrypted(decipherer, uri);
            if (doc == null) doc = new Video();
            doc.setUri(decipherer.decrypt(uri));
            doc.setMimeType(properties.getProperty("mimeType"));
            doc.setIdentifier(properties.getProperty("identifier"));
            doc.setCreated(dateFormat.parse(properties.getProperty("created")));
            doc.setSizeInBytes(Long.parseLong(properties.getProperty("sizeInBytes")));
            doc.setWidth(Integer.parseInt(properties.getProperty("width")));
            doc.setHeight(Integer.parseInt(properties.getProperty("height")));
            doc.setDuration(Integer.parseInt(properties.getProperty("duration")));
        } catch (Exception ex) {
            if (log.isDebugEnabled()) log.debug("Could not completely bind [" + text + "] as a Video: " + ex.getMessage());
        }
        setValue(doc);
    }
View Full Code Here

Examples of org.openhab.model.sitemap.Video

 
  /**
   * {@inheritDoc}
   */
  public EList<Widget> renderWidget(Widget w, StringBuilder sb) throws RenderException {
    Video videoWidget = (Video) w;
    String snippet = null;
   
    String widgetId = itemUIRegistry.getWidgetId(w);   
    String sitemap = w.eResource().getURI().path();
   
    if(videoWidget.getEncoding() !=null && videoWidget.getEncoding().contains("mjpeg")) {
      // we handle mjpeg streams as an html image as browser can usually handle this
      snippet = getSnippet("image");
      snippet = StringUtils.replace(snippet, "%setrefresh%", "");
      snippet = StringUtils.replace(snippet, "%refresh%", "");
    } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.