Examples of VideoData


Examples of com.blackberry.toolkit.sample.youtube.internal.VideoData

      resultsList.setColumnProperty(0, GridFieldManager.PREFERRED_SIZE, 0);
      resultsList.setColumnProperty(1, GridFieldManager.AUTO_SIZE, 0);
      resultsList.setColumnPadding(1);
      resultsList.setCellPadding(0);
      for (int i = 0; i < results.size(); i++) {
        VideoData data = (VideoData) results.elementAt(i);
        // Thumbnail
        BitmapFieldButton image = new BitmapFieldButton(_clock, BitmapField.FOCUSABLE);
        image.setSpace(2, 2);
        image.setCommandAction(new ThumbnailClick(data));
        data.setBitmapField(image);
        resultsList.add(image);
        // Text column
        VerticalFieldManager vfm = new VerticalFieldManager();
        vfm.add(new LabelField(data.getTitle(), LabelField.NON_FOCUSABLE));
        vfm.add(new LabelField(data.getDescription(), LabelField.USE_ALL_HEIGHT | LabelField.NON_FOCUSABLE
            | LabelField.ELLIPSIS));
        resultsList.add(vfm);
        // Break
        resultsList.add(new NullField(NullField.NON_FOCUSABLE));
        resultsList.add(new SeparatorField());
View Full Code Here

Examples of lcmc.vm.domain.VideoData

        if (videos == null) {
            return new Object[0];
        }
        final MyButton removeBtn = widgetFactory.createButton("Remove", ClusterBrowser.REMOVE_ICON_SMALL, "Remove " + index);
        application.makeMiniButton(removeBtn);
        final VideoData videoData = videos.get(index);
        if (videoData == null) {
            return new Object[]{index + ": unknown", "", removeBtn};
        }
        final String modelType = videoData.getModelType();
        if (iToInfo != null) {
            final VideoInfo vidi = videoToInfo.get(index);
            iToInfo.put(index, vidi);
        }
        final MyButton iLabel = widgetFactory.createButton(modelType, null);
View Full Code Here

Examples of lcmc.vm.domain.VideoData

    @Override
    void updateParameters() {
        final Map<String, VideoData> videos =
                              getVMSVirtualDomainInfo().getVideos();
        if (videos != null) {
            final VideoData videoData = videos.get(getName());
            if (videoData != null) {
                for (final String param : getParametersFromXML()) {
                    final Value oldValue = getParamSaved(param);
                    Value value = getParamSaved(param);
                    final Widget wi = getWidget(param, null);
                    for (final Host h
                            : getVMSVirtualDomainInfo().getDefinedOnHosts()) {
                        final VmsXml vmsXml = getBrowser().getVmsXml(h);
                        if (vmsXml != null) {
                            final Value savedValue =
                                                  videoData.getValue(param);
                            if (savedValue != null) {
                                value = savedValue;
                            }
                        }
                    }
View Full Code Here

Examples of org.red5.server.net.rtmp.event.VideoData

        buffer.clear();
        buffer.put( video );
        buffer.flip();

        VideoData videoData = new VideoData( buffer );
        videoData.setTimestamp( (int) ts );

        kt++;

//        if ( kt < 10 ) {
//            logger.debug( "+++ " + videoData );
View Full Code Here

Examples of org.red5.server.net.rtmp.event.VideoData

        buffer.clear();
        buffer.put( video );
        buffer.flip();

        VideoData videoData = new VideoData( buffer );
        videoData.setTimestamp( (int) ts );

        kt++;

//        if ( kt < 10 ) {
//            logger.debug( "+++ " + videoData );
View Full Code Here

Examples of org.red5.server.net.rtmp.event.VideoData

  private VideoData getData(byte[] data) {
    IoBuffer buf = IoBuffer.allocate(data.length);
    buf.clear();
    buf.put(data);
    buf.flip();
    return new VideoData(buf);
  }
View Full Code Here

Examples of org.red5.server.net.rtmp.event.VideoData

          if (log.isTraceEnabled()) {
            log.trace(String.format("Image was captured in %s ms", System.currentTimeMillis() - start));
          }
          start = System.currentTimeMillis();
          try {
            VideoData data = se.encode(image);
            if (log.isTraceEnabled()) {
              log.trace(String.format("Image was encoded in %s ms", System.currentTimeMillis() - start));
            }
            frames.offer(data);
            se.createUnalteredFrame();
          } catch (IOException e) {
            log.error("Error while encoding: ", e);
          }
        }
      }, 0, timeBetweenFrames * NANO_MULTIPLIER, TimeUnit.NANOSECONDS);
      sendScheduler.scheduleWithFixedDelay(new Runnable() {
        public void run() {
          VideoData f = frames.poll();
          f = f == null ? se.getUnalteredFrame() : f;
          if (f != null) {
            try {
              timestamp += timeBetweenFrames;
              pushVideo(f, timestamp);
View Full Code Here

Examples of org.red5.server.net.rtmp.event.VideoData

 
      buffer.clear();
      buffer.put(video);
      buffer.flip();
 
      RTMPMessage rtmpMsg = RTMPMessage.build(new VideoData(buffer), (int) ts);
      client.publishStreamData(streamId, rtmpMsg);
    }
  }
View Full Code Here

Examples of org.red5.server.net.rtmp.event.VideoData

  private VideoData getData(byte[] data) {
    IoBuffer buf = IoBuffer.allocate(data.length);
    buf.clear();
    buf.put(data);
    buf.flip();
    return new VideoData(buf);
  }
View Full Code Here

Examples of org.red5.server.net.rtmp.event.VideoData

          if (log.isTraceEnabled()) {
            log.trace(String.format("Image was captured in %s ms", System.currentTimeMillis() - start));
          }
          start = System.currentTimeMillis();
          try {
            VideoData data = se.encode(image);
            if (log.isTraceEnabled()) {
              log.trace(String.format("Image was encoded in %s ms", System.currentTimeMillis() - start));
            }
            frames.offer(data);
            se.createUnalteredFrame(screen);
          } catch (IOException e) {
            log.error("Error while encoding: ", e);
          }
        }
      }, 0, timeBetweenFrames * NANO_MULTIPLIER, TimeUnit.NANOSECONDS);
      sendScheduler.scheduleWithFixedDelay(new Runnable() {
        public void run() {
          VideoData f = frames.poll();
          f = f == null ? se.getUnalteredFrame() : f;
          if (f != null) {
            try {
              timestamp += timeBetweenFrames;
              pushVideo(f, (int)timestamp);
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.