Results 1 to 4 of 4

Thread: Web Conference Script

  1. #1
    Join Date
    Sep 2012
    Posts
    3

    Default Web Conference Script

    I use the following script for FMIS and it is working. Now I am trying to use it for WOWZA. It got connected to the server but no video nor microphone or camera..
    Any help please:

    package
    {

    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.net.*;
    import flash.media.Camera;
    import flash.media.Microphone;
    import flash.media.Video;
    import flash.events.NetStatusEvent;


    public class EConference extends Sprite
    {
    private var nc:NetConnection;
    private var good:Boolean;

    private var netOut:NetStream;
    private var netIn1:NetStream;
    private var netIn2:NetStream;
    private var netIn3:NetStream;
    private var netIn4:NetStream;
    private var netIn5:NetStream;
    private var netIn6:NetStream;
    private var netIn7:NetStream;
    private var netIn8:NetStream;
    private var netIn9:NetStream;


    private var cam:Camera;
    private var mic:Microphone;
    private var responder:Responder;


    private var vidOut:Video;
    private var vid1:Video;
    private var vid2:Video;
    private var vid3:Video;
    private var vid4:Video;
    private var vid5:Video;
    private var vid6:Video;
    private var vid7:Video;
    private var vid8:Video;
    private var vid9:Video;

    private var outStream:String;
    private var inStream1:String;
    private var inStream2:String;
    private var inStream3:String;
    private var inStream4:String;
    private var inStream5:String;
    private var inStream6:String;
    private var inStream7:String;
    private var inStream8:String;
    private var inStream9:String;

    private var rtmpNow:String;


    public function EConference()
    {
    // constructor code
    rtmpNow = new String ;
    rtmpNow = "";
    init();
    setCam();
    setMic();
    setVid();
    }
    private function init():void
    {
    nc = new NetConnection ;
    nc.connect(rtmpNow);
    nc.addEventListener(NetStatusEvent.NET_STATUS, getStream);

    }
    private function getStream(infoObject:NetStatusEvent):void
    {
    good = infoObject.info.code == "NetConnection.Connect.Success";
    if (good)
    {
    trace("Server connected");
    responder = new Responder(streamNow);
    nc.call("streamSelect", responder);
    }
    else
    {
    trace("not connected to server");
    }
    }
    private function streamNow(streamSelect:String):void
    {
    trace("settings for cam mic and video");


    switch (streamSelect)
    {
    case "p1" :
    outStream = "p1";
    inStream1 = "p2";
    inStream2 = "p3";
    inStream3 = "p4";
    inStream4 = "p5";
    inStream5 = "p6";
    inStream6 = "p7";
    inStream7 = "p8";
    inStream8 = "p9";
    inStream9 = "p10";
    break;

    case "p2" :
    outStream = "p2";
    inStream1 = "p1";
    inStream2 = "p3";
    inStream3 = "p4";
    inStream4 = "p5";
    inStream5 = "p6";
    inStream6 = "p7";
    inStream7 = "p8";
    inStream8 = "p9";
    inStream9 = "p10";
    p1_txt.text = "Participant 1";
    break;

    case "p3" :
    outStream = "p3";
    inStream1 = "p1";
    inStream2 = "p2";
    inStream3 = "p4";
    inStream4 = "p5";
    inStream5 = "p6";
    inStream6 = "p7";
    inStream7 = "p8";
    inStream8 = "p9";
    inStream9 = "p10";
    p1_txt.text = "Participant 1";
    p2_txt.text = "Participant 2";
    break;

    case "p4" :
    outStream = "p4";
    inStream1 = "p1";
    inStream2 = "p2";
    inStream3 = "p3";
    inStream4 = "p5";
    inStream5 = "p6";
    inStream6 = "p7";
    inStream7 = "p8";
    inStream8 = "p9";
    inStream9 = "p10";
    p1_txt.text = "Participant 1";
    p2_txt.text = "Participant 2";
    p3_txt.text = "Participant 3";
    break;

    case "p5" :
    outStream = "p5";
    inStream1 = "p1";
    inStream2 = "p2";
    inStream3 = "p3";
    inStream4 = "p4";
    inStream5 = "p6";
    inStream6 = "p7";
    inStream7 = "p8";
    inStream8 = "p9";
    inStream9 = "p10";
    p1_txt.text = "Participant 1";
    p2_txt.text = "Participant 2";
    p3_txt.text = "Participant 3";
    p4_txt.text = "Participant 4";
    break;

    case "p6" :
    outStream = "p6";
    inStream1 = "p1";
    inStream2 = "p2";
    inStream3 = "p3";
    inStream4 = "p4";
    inStream5 = "p5";
    inStream6 = "p7";
    inStream7 = "p8";
    inStream8 = "p9";
    inStream9 = "p10";
    p1_txt.text = "Participant 1";
    p2_txt.text = "Participant 2";
    p3_txt.text = "Participant 3";
    p4_txt.text = "Participant 4";
    p5_txt.text = "Participant 5";
    break;

    case "p7" :
    outStream = "p7";
    inStream1 = "p1";
    inStream2 = "p2";
    inStream3 = "p3";
    inStream4 = "p4";
    inStream5 = "p5";
    inStream6 = "p6";
    inStream7 = "p8";
    inStream8 = "p9";
    inStream9 = "p10";
    p1_txt.text = "Participant 1";
    p2_txt.text = "Participant 2";
    p3_txt.text = "Participant 3";
    p4_txt.text = "Participant 4";
    p5_txt.text = "Participant 5";
    p6_txt.text = "Participant 6";
    break;

    case "p8" :
    outStream = "p8";
    inStream1 = "p1";
    inStream2 = "p2";
    inStream3 = "p3";
    inStream4 = "p4";
    inStream5 = "p5";
    inStream6 = "p6";
    inStream7 = "p7";
    inStream8 = "p9";
    inStream9 = "p10";
    p1_txt.text = "Participant 1";
    p2_txt.text = "Participant 2";
    p3_txt.text = "Participant 3";
    p4_txt.text = "Participant 4";
    p5_txt.text = "Participant 5";
    p6_txt.text = "Participant 6";
    p7_txt.text = "Participant 7";
    break;

    case "p9" :
    outStream = "p9";
    inStream1 = "p1";
    inStream2 = "p2";
    inStream3 = "p3";
    inStream4 = "p4";
    inStream5 = "p5";
    inStream6 = "p6";
    inStream7 = "p7";
    inStream8 = "p8";
    inStream9 = "p10";
    p1_txt.text = "Participant 1";
    p2_txt.text = "Participant 2";
    p3_txt.text = "Participant 3";
    p4_txt.text = "Participant 4";
    p5_txt.text = "Participant 5";
    p6_txt.text = "Participant 6";
    p7_txt.text = "Participant 7";
    p8_txt.text = "Participant 8";
    break;

    case "p10" :
    outStream = "p10";
    inStream1 = "p1";
    inStream2 = "p2";
    inStream3 = "p3";
    inStream4 = "p4";
    inStream5 = "p5";
    inStream6 = "p6";
    inStream7 = "p7";
    inStream8 = "p8";
    inStream9 = "p9";
    p1_txt.text = "Participant 1";
    p2_txt.text = "Participant 2";
    p3_txt.text = "Participant 3";
    p4_txt.text = "Participant 4";
    p5_txt.text = "Participant 5";
    p6_txt.text = "Participant 6";
    p7_txt.text = "Participant 7";
    p8_txt.text = "Participant 8";
    p9_txt.text = "Participant 9";
    break;

    }
    //Publish local video
    netOut = new NetStream(nc);
    netOut.attachAudio(mic);
    netOut.attachCamera(cam);
    vidOut.attachCamera(cam);
    netOut.publish(outStream, "live");

    //Play streamed video
    netIn1 = new NetStream(nc);
    vid1.attachNetStream(netIn1);
    netIn1.play(inStream1);


    netIn2 = new NetStream(nc);
    vid2.attachNetStream(netIn2);
    netIn2.play(inStream2);


    netIn3 = new NetStream(nc);
    vid3.attachNetStream(netIn3);
    netIn3.play(inStream3);


    netIn4 = new NetStream(nc);
    vid4.attachNetStream(netIn4);
    netIn4.play(inStream4);


    netIn5 = new NetStream(nc);
    vid5.attachNetStream(netIn5);
    netIn5.play(inStream5);


    netIn6 = new NetStream(nc);
    vid6.attachNetStream(netIn6);
    netIn6.play(inStream6);


    netIn7 = new NetStream(nc);
    vid7.attachNetStream(netIn7);
    netIn7.play(inStream7);


    netIn8 = new NetStream(nc);
    vid8.attachNetStream(netIn8);
    netIn8.play(inStream8);


    netIn9 = new NetStream(nc);
    vid9.attachNetStream(netIn9);
    netIn9.play(inStream9);

    }
    private function setCam():void
    {
    cam = new Camera;
    cam = Camera.getCamera();
    cam.setMode(200,150, 12);
    cam.setQuality(0,0);
    cam.setKeyFrameInterval(12);
    }
    private function setMic():void
    {
    mic = new Microphone
    mic = Microphone.getMicrophone();
    mic.rate = 11;
    mic.setSilenceLevel(12, 2000);
    }
    private function setVid():void
    {
    vidOut = new Video(200,150);
    addChild(vidOut);
    vidOut.x = 725.85;
    vidOut.y = 44;

    vid1 = new Video(200,150);
    addChild(vid1);
    vid1.x = 24.20;
    vid1.y = 44;


    vid2 = new Video(200,150);
    addChild(vid2);
    vid2.x = 252.75;
    vid2.y = 44;


    vid3 = new Video(200,150);
    addChild(vid3);
    vid3.x = 481.35;
    vid3.y = 44;


    vid4 = new Video(200,150);
    addChild(vid4);
    vid4.x = 24.20;
    vid4.y = 275;


    vid5 = new Video(200,150);
    addChild(vid5);
    vid5.x = 252.75;
    vid5.y = 275;


    vid6 = new Video(200,150);
    addChild(vid6);
    vid6.x = 481.35;
    vid6.y = 275;


    vid7 = new Video(200,150);
    addChild(vid7);
    vid7.x = 24.20;
    vid7.y = 506;


    vid8 = new Video(200,150);
    addChild(vid8);
    vid8.x = 252.75;
    vid8.y = 506;


    vid9 = new Video(200,150);
    addChild(vid9);
    vid9.x = 481.35;
    vid9.y = 506;

    }
    }

    }

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    FMIS uses Actionscript 1 on server-side. Wowza uses Java and its own API. So this will have to ported to Wowza/Java.

    Take a look at this FMIS/Wowza mapping reference
    http://www.wowza.com/resources/Wowza...APIMapping.pdf

    Richard

  3. #3
    Join Date
    Sep 2012
    Posts
    3

    Default

    Do you know somebody who can do this for a fee?

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Write to support@wowza.com and ask for the list of independent consultants.

    Or take a look at these 4 third-party companies that offer products with pre-built video chat environments.
    * ChatBlazer http://www.chatblazer.com/ (part of Pendulab)
    * Flashcoms http://www.flashcoms.com/
    * AVChat http://avchat.net
    * Cyberxess http://www.cyberxess.com/wms/login.php

    Richard

Similar Threads

  1. PHP Script Web Cast [Consultation]
    By EstevenRG in forum General Forum
    Replies: 1
    Last Post: 06-09-2014, 08:27 AM
  2. Video Conference - Web Application
    By VideoWhisper.com in forum Showcase
    Replies: 1
    Last Post: 12-05-2012, 03:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •