Examples of MediaStream


Examples of com.subside.fluid.MediaStream

      com.subside.fluid.Configuration fluidConf = new com.subside.fluid.Configuration(fluidConfigPath);
      fluidConf.setProperty("broadcastTCPOutputConnector.rule", System.getProperty("freshet.topdir") + "/WEB-INF/classes/host.rules");
      fluidConf.setProperty("broadcastTCPOutputConnector.max", System.getProperty("broadcastTCPOutputConnector.max"));
            fluidConf.setProperty("broadcastTCPOutputConnector.port", System.getProperty("broadcastTCPOutputConnector.port"));
            log.debug("Starting Fluid MediaStream");
      mediaStream = new MediaStream(fluidConf);
      if (mediaStream == null) status = false;
    } catch (IOException e) {
      log.error("Could not open Fluid conf file: "+ fluidConfigPath, e);
      status = false;
    }
View Full Code Here

Examples of com.subside.fluid.MediaStream

        String propValue = (String)fluidConf.getProperty(propKey);
        System.setProperty(propKey, propValue);
        log.info(propKey+": "+propValue);
      }
      log.debug("Starting Fluid MediaStream");
      mediaStream = new MediaStream(fluidConf);
    } catch (IOException e) {
      log.error("Could not open Fluid conf file: "+ fluidConfigPath, e);
    }
  }
View Full Code Here

Examples of org.jitsi.service.neomedia.MediaStream

  public JingleStream startStream( String name, byte payloadTypeId, MediaFormat format, TransportAddress remoteRtpAddress, TransportAddress remoteRtcpAddress, DatagramSocket rtpDatagramSocket, DatagramSocket rtcpDatagramSocket ) throws IOException {
    MediaDevice dev = devices.get(name);
   
    MediaService mediaService = LibJitsi.getMediaService();
   
        MediaStream mediaStream = mediaService.createMediaStream(dev);

        mediaStream.setDirection(MediaDirection.SENDRECV);

        /*
         * The MediaFormat instances which do not have a static RTP
         * payload type number association must be explicitly assigned
         * a dynamic RTP payload type number.
         */
        if ( format.getRTPPayloadType() == MediaFormat.RTP_PAYLOAD_TYPE_UNKNOWN ) {
            mediaStream.addDynamicRTPPayloadType(
                    payloadTypeId,
                    format);
        }
       
//        System.out.println( "++++++++++++++++++++++" );
//        System.out.println( "++++++++++++++++++++++" );
//        System.out.println( "++++++++++++++++++++++" );
//        System.out.println( "For stream: " + name );
//        System.out.println( "Format: " + format );
//        System.out.println( "Dynamic payload type: " + payloadTypeId );
//        System.out.println( "++++++++++++++++++++++" );
//        System.out.println( "++++++++++++++++++++++" );
//        System.out.println( "++++++++++++++++++++++" );

        mediaStream.setFormat(format);

        StreamConnector connector = new DefaultStreamConnector( rtpDatagramSocket, rtcpDatagramSocket );

        mediaStream.setConnector(connector);

        mediaStream.setTarget( new MediaStreamTarget( remoteRtpAddress, remoteRtcpAddress ) );

        mediaStream.setName(name);
       
        mediaStream.start();
       
        JingleStream js = new JingleStream( name, mediaStream, this );
        jingleStreams.put( name, js );
        return js;
  }
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.