Package model

Examples of model.VideoStream


    // start sending the video.
    // get the video that's been requested
    String r = Util.byteArrayToHex(rID);
    int len = r.length();
    String request = r.substring(len-16, len);
    VideoStream vs = publisher.getVideoPublisher().getVideoStreamByRID(request);
    // Get a handle on the video
    System.err.println("Requested " + vs.getAbsolutePath());
    // Implement the video strategy.
    videoRunner = new VideoRunner(vs.getAbsolutePath(), ds.getLocalPort());
    videoRunner.start();
    ItemName newPubName = ItemName.parseSerializedName(rID, ScopeID.SEGMENT_SIZE);
    try {
      DatagramPacket p = null;
      do{
View Full Code Here


        ByteIdentifier newPubID = new ByteIdentifier(Hex.decodeHex(rid.toCharArray()));
      ItemName newPubName = new ItemName(superScope, newPubID);
      client.publishItem(newPubName, strategy);
      // Add to the list.
      published.add(newPubName);
      addVideo(new VideoStream(path, getChannelID(), rid));
      return true;
    }catch (Exception e){
      e.printStackTrace();
      return false;
    }
View Full Code Here

      return false;
    }
  }

  private boolean removeVideoByRid(String rid){
    VideoStream marker = null;
    for (VideoStream vs: videos){
      if (vs.getrID().equalsIgnoreCase(rid)){
        marker = vs;
      }
    }
View Full Code Here

TOP

Related Classes of model.VideoStream

Copyright © 2018 www.massapicom. 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.