Return a stream subscribed to publish

Hello world

Is it possible to return a stream subscribed to publish? This would be a way to send the received stream even without using the multicast. I don't want to fix the camera on the NetStream, I want to join the received stream.

Thank you.

I assume you mean in Flash Player (or AIR).

Laughing out loud

Tags: Adobe

Similar Questions

  • NULL the returned Session Streaming

    This happens ONLY on 7.1.

    I have about 10 buttons on the screen, each one is assigned some audio within its category.

               // load the audio
                InputStream is = getClass().getResourceAsStream(soundresource);
                _snd = Manager.createPlayer(is, "audio/mp3");
                _snd.realize();
                _snd.prefetch();
                is.close();
    

    Two of the added buttons, then an exception is thrown:

    net.rim.device.internal.media.RimMediaException: Null in Streaming Session returned

    Doesnt' seem to be my day for audio.

    If you try to create 10 media players at the same time?  Don't think that you can do.  I think you can create 1 or 2 (2 for CDMA devices).  Which explains the problem?

  • [need help] Function body of PL/SQL returning the SQL with BI publisher

    Hello

    I'm new to BI publisher, back then I used ocj4 for pdf printing, but then we got BI publisher. We want to have a better relationship, since we always used the standard one.

    My pl/sql like this look
    DECLARE
      q varchar2(4000);
      list_betreuer htmldb_application_global.vc_arr2;
      list_semester htmldb_application_global.vc_arr2;
      list_status htmldb_application_global.vc_arr2;
    
    BEGIN
    
     -- variable to store the list
     list_betreuer := HTMLDB_UTIL.STRING_TO_TABLE(:P61_BETREUER);
     list_semester := HTMLDB_UTIL.STRING_TO_TABLE(:P61_SEMESTER);
     list_status := HTMLDB_UTIL.STRING_TO_TABLE(:P61_STATUS);
    
     -- Query begins
     q:= 'select p1.name, p1.vorname , a1.tel, a2.tel, '; 
     q:= q||'ab.thema, ab.status, ab.typ, s.bezeichnung, p2.name ';
     
     q:= q||'from person p1, person p2, adresse a1, adresse a2, ';
     q:= q||'zuordnungp_a zpa1,zuordnungp_a zpa2, ';
     q:= q||'abschlussarbeit ab, semester s ';
    
     q:= q||'WHERE ab.SEMESTER = s.OBJECTID (+) ';
     q:= q||'AND ab.STUDENT = p1.OBJECTID (+) ';
     q:= q||'AND ab.BETREUER = p2.OBJECTID (+) ';
    
     q:= q||'and p1.objectid = zpa1.person (+) ';
     q:= q||'and zpa1.adresse  = a1.objectid (+) ';
     q:= q||'and zpa1.art (+)= ''Privat'' ';
    
     q:= q||'and p1.objectid = zpa2.person (+) ';
     q:= q||'and zpa2.adresse  = a2.objectid (+) ';
     q:= q||'and zpa2.art (+)= ''Geschäft'' ';
    
    
     -- Loop for betreuer list
     FOR i in 1..list_betreuer.count
     LOOP
        IF i = 1 THEN
        q:= q||'AND (ab.betreuer = '||list_betreuer(i);
        ELSE
        q:= q||' OR ab.betreuer  = '||list_betreuer(i);
        END IF;
     END LOOP; if (list_betreuer.count>0)THEN q:= q||')'; END IF;
    
      -- Loop for semester list
     FOR i in 1..list_semester.count
     LOOP
        IF i = 1 THEN
        q:= q||'AND (ab.semester = '||list_semester(i);
        ELSE
        q:= q||'OR ab.semester = '||list_semester(i);
        END IF;
     END LOOP; if (list_semester.count>0)THEN q:= q||')'; END IF;
     
     -- Loop for status list
     FOR i in 1..list_status.count
     LOOP
        IF i = 1 THEN
        q:= q||'AND (ab.status = '''||list_status(i)||'''';
        ELSE
        q:= q||'OR ab.status = '''||list_status(i)||'''';
        END IF;
     END LOOP; if (list_status.count>0)THEN q:= q||')'; END IF;
     
     -- htp.p(q);
     return q;
     
    END;
    the question is how can I generate a pdf with this query using BI publisher report, what should I do?



    Thanks in advance


    Danny

    Check this out to see if this helps you. This article talks about passing parameters to the BI publisher of Apex report.

    http://tylermuth.WordPress.com/2008/03/31/call-bi-Publisher-Web-services-from-apex/

    Thank you!

  • I bought my code and subscribe to publishing CC student and Professor (a year), but all the products that I have installed are still testing, what continues?

    I have followed the instructions, checked my email because the ID Adobe and Adobe CC, assured that I would have access to full versions of adobe products, but still they are installed in the trial. I am currently using MacBook Pro.

    Screen Shot 2015-04-03 at 7.04.24 pm.pngScreen Shot 2015-04-03 at 7.05.25 pm.pngScreen Shot 2015-04-03 at 7.09.44 pm.pngCreative cloud download & install How do I activate/redeem Redemption Code CC Adobe

    Hi Denzel,

    Please see the below help documents:

    Creative Cloud applications unexpectedly back in the test mode. CS6, CCM

    Using redemption code

    Kind regards

    Sheena

  • Is no longer possible to publish a stream in iTunes you and in the podcast store

    Just a heads up-

    We spent several years some of our streams iTunes U published in the regular iTunes podcast store often use the same RSS feed for both. Since the recent launch of iTunes Connect (the new quote and service management of content from the iTunes store), however, it seems that it is possible to submit an RSS feed in iTunes you and the iTunes podcast store. I get a message that says "status: Validation failure ' and 'cannot submit your feed. Your feed had already been submitted. »

    I submitted a ticket to Apple support, but some trial and error tests suggests that there is a workaround. If you have already submitted your feed to iTunes U, you can submit it to the iTunes podcast store but you need to replace the feed URL and the title of the podcast. I don't know if cela a new policy from Apple or a glitch in the new iTunes Connect service.

    Another work around could be to send the stream to the podcast to iTunes store first and then submit to iTunes U public site manager using-, but I have tested this theory yet.

    Tom

    Hi Tom,

    As I KNOW you're not supposed to do this in the first place. (It's what we were told in 2009).

    I guess Apple is simply start applying this restriction.

    Best, Erik

  • FMS: Statistics Streaming Live Audio

    Hi all

    I need assistance with FMS 4.5 for audio streaming live.

    I had to flow for the audio bytes per second statistics.

    (This should be used to show the level of activity of the user in flash).

    It's my hierarchy in FMS:

    Request = > Instance

    Each instance will have multiple streams of data.

    FMS server does not appear to be a way to obtain flow statistics of data (in bytes/second).

    Help, please.

    Thank you

    Karan

    You can use the NetStream.send () method that sends a message on a stream of data published to all subscribing clients. You can also use the Timer class in which you can specify a Manager under the send() call method. In this way it will continue to send the activity level after each specified period.

    In addition, you can check following link for details on these classes:

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/NET/NetStream.htm l #send ()

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/utils/timer.html

  • Need help for the conversion of the nested loops to use the stream

    I'm trying to teach me how to effectively use the java stream, but finds it difficult to find the correct syntax for a problem of nested loop. I would like to convert the following code to use the Java 8 stream instead of nested loops.  Can anyone provide an example or a solution?

     /**
         * Return all members of stringListOne that begin with any of the strings in
         * stringListTwo
         *
         * @return all members of stringListOne that begin with any of the strings in
         * stringListTwo
         */
        Set<String> getFilteredStrings(Set<String> stringListOne, Set<String> stringListTwo) {
         
          Set<String> stringListOneFiltered = new HashSet<String>();
          for (String next : stringListOne) {
                for (String nextPrefix : stringListTwo) {
                    if (next.startsWith(nextPrefix)) {
                        stringListOneFiltered.add(next);
                    }
                }
            }
            return stringListOneFiltered;
        }
    

    Here's a test case for the above code:

    /**
         * Test method for {@link scratchpad.MyClass#getFilteredStrings(java.util.Set, java.util.Set)}.
         */
        @Test
        public final void testGetFilteredStrings() {
    
            MyClass uut = new MyClass();
            
            Set<String> stringListOne = new HashSet<String>();
            stringListOne.add("until");
            stringListOne.add("unite");
            stringListOne.add("under");
            stringListOne.add("prepare");
            stringListOne.add("pretend");
            stringListOne.add("prefix");
            stringListOne.add("prepend");
            stringListOne.add("post");
            stringListOne.add("positive");
            stringListOne.add("postgame");
            stringListOne.add("postpone");       
            
            Set<String> stringListTwo = new HashSet<String>();
            stringListTwo.add("post");
            stringListTwo.add("pre");
            stringListTwo.add("und");
            
            
            Set<String> result= uut.getFilteredStrings(stringListOne, stringListTwo);
            
            System.out.println(result);
            assertEquals(8, result.size());
        }
    

    Thanks for any help you can provide!  I get the hang of using the course of water, but this particular code was difficult.

    tmbc

    I found the following solution to my question:

    GetFilteredStrings (Set stringListOne, the value

    {Set stringListTwo)

    Predicate startsWith = p-> stringListTwo.stream () .anyMatch (prefix-> p.startsWith (prefix));

    Return stringListOne.stream () .filter (startsWith) .collect (Collectors.toSet ());

    }

  • [FMS4] record stream app generate 1KO flv

    Hi all

    I did an as3 app that save a video stream (webcam) with fms4. The problem is that the generated files have a weight of only 1 KB.

    where is the problem? I need help...

    package {}

    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.display.BitmapData;
    Import 12345678910111213import;
    import flash.text.TextField;
    import flash.media.Camera;
    import flash.media.Video;
    import flash.events. *;
    import flash.net.NetConnection;
    to import flash.net.NetStream;

    Webcam/public class extends Sprite {}

    private var: camera;
    private var video: Video;
    private var label: TextField;
    private var camFPS:Number = 25;
    private var camW:Number = 640;
    private var camH:Number = 350;
    bandwidth private int var = 0;
    private var quality: int = 80;
    private var nc:NetConnection = new NetConnection();
    private var videoStream:NetStream;
    Object: private var info;

    private var booRec:Boolean = false;

    public void Webcam (): void {}

    Cam = Camera.getCamera ();
    cam.setMode (camW, camH, camFPS, true);
    cam.setQuality (bandwidth, quality);
    cam.setMotionLevel (10, 500);

    If (cam == null) {}
    label = new TextField();
    Label.Text = "WEBCAM No. FOUND ';
    addChild (label);
    } else {}
    video = new Video (camW, camH);
    vcLocal.attachCamera (cam);
    nc.addEventListener (NetStatusEvent.NET_STATUS, netStatus);
    nc.addEventListener (SecurityErrorEvent.SECURITY_ERROR, netSecurityError);
    nc.addEventListener (AsyncErrorEvent.ASYNC_ERROR, onAsyncError);
    NC.client = this;
    NC. Connect ("rtmp://demo.flashmediaserver.it/video");
    rec.addEventListener (MouseEvent.MOUSE_DOWN, goStream);
    }
    }

    private void goStream(e:MouseEvent):void {}
    {if(!booRec)}
    recVideo();
    rec.gotoAndStop (2);
    } else {}
    stopRec();
    rec.gotoAndStop (1);
    }
    booRec =! booRec;
    function recVideo() {}
    trace ("REC");
    videoStream = new NetStream (nc);
    video.attachNetStream (videoStream);
    videoStream.publish ("2", "record");
    addChild (video);
    }
    function stopRec (): void {}
    videoStream.close ();
    }
    }

    State Net switch events
    public void netStatus(event:NetStatusEvent):void {}
    Info = event.info;
    Switch (info.code) {}
    case "NetConnection.Connect.Success":
    trace ("CONNECTION SUCCESSFUL");
    goStream();
    break;
    case "NetConnection.Connect.Failed":
    trace ("CONNECTION FAILED");
    break;
    case "NetConnection.Connect.Rejected":
    trace ("CONNECTION REJECTED");
    break;
    case "NetConnection.Connect.Closed":
    trace ("Closed");
    break;
    case "NetStream.Play.Start":
    trace ("START");
    break;
    by default:
    trace ("error Some @# $%!");
    }

    }

    private void netSecurityError(event:SecurityErrorEvent):void {}
    trace ("netSecurityError:" + event);
    }

    private void onAsyncError(event:AsyncErrorEvent):void {}
    trace ("onAsyncError:" + event);
    }

    public function onBWDone (): void {}
    Intercept onBWdone errors
    }

    }
    }

    Thanks in advance

    Fabio

    Looks like you've fixed all the sources in the stream that you publish on. You must attach a microphone or a cam to start to send audio or video data.

  • "Data flow cannot be published because there is no" error

    Hello

    I got this error message and can not know why this is happening.

    Here's what I do:

    I have a single room for 2 users maximum with AudioSubscriber and AudioPublisher as in the PeerToPeerRtmfp example.

    I want to do is keep a user connected always in the bathroom (master). The other user (Viewer) must be able to connect to a room, disconnect, then reconnect and then again later.

    The first time I connect and use AudioSubscriber and AudioPublisher, everything works fine, I can hear and speak.

    Then I unplug the viewer of the room:

    audioPub.stop();
    audioSub.resetAllStreams();
    session.close(); // I tried with session.logout() also, same effect
    

    So far, everything is working correctly, the main user is the only one connected piece.

    Later, I want to reconnect the user to 'the observer', so I give him the same stage of connection on the session.

    I get the SYNCHRONIZATION_CHANGE and the user is logged on to the session.

    Then I try to publish its audio stream:

    audioPub.publish();
    

    And this call to generate the stack trace:

    Error: Stream cannot be published as it doesnot exists
         at com.adobe.rtc.sharedManagers::StreamManager/publishStream()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/main/connect/cocomoPlayer10/src/com/adobe/rtc/sharedManagers/StreamManager.as:709]
         at com.adobe.rtc.collaboration::AudioPublisher/publish()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/main/connect/cocomoPlayer10/src/com/adobe/rtc/collaboration/AudioPublisher.as:700]
         at voiceapi/merchantAudioConnected()[D:\workspace\voiceapi\src\voiceapi.mxml:132]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()
         at com.adobe.rtc.collaboration::AudioSubscriber/onStreamReceive()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/main/connect/cocomoPlayer10/src/com/adobe/rtc/collaboration/AudioSubscriber.as:680]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at com.adobe.rtc.sharedManagers::StreamManager/onItemReceive()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/main/connect/cocomoPlayer10/src/com/adobe/rtc/sharedManagers/StreamManager.as:1580]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at com.adobe.rtc.sharedModel::CollectionNode/http://www.adobe.com/2006/connect/cocomo/messaging/internal::receiveItem()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/main/connect/cocomoPlayer10/src/com/adobe/rtc/sharedModel/CollectionNode.as:742]
         at com.adobe.rtc.messaging.manager::MessageManager/http://www.adobe.com/2006/connect/cocomo/messaging/internal::receiveItem()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/main/connect/cocomoPlayer10/src/com/adobe/rtc/messaging/manager/MessageManager.as:662]
         at com.adobe.rtc.session.managers::SessionManagerBase/receiveItem()[/Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/main/connect/cocomoPlayer10/src/com/adobe/rtc/session/managers/SessionManagerBase.as:330]
    

    Is this a bug or I did something wrong?

    Thanks for your help!

    Hello

    I guess I figured out where you were wrong

    The master publishes as well as the spectator is published after the viewer connects. When you are suspended, you delete the stream of the master and manager want you also audioPub.stop (for the Viewer), but before the audioPub.stop () is executed, which is the flow of the Viewer is removed, call you already to disconnect and once you do this, the micro instance maintains suspended since before its deletion Workflow notification reached himself the Viewer is already disconnected from the session.

    You need to wait for the viewer workflow should be deleted by listening to STREAM_DELETE to audioPub to the Viewer before disconnecting. Here's your update Viewer code.

    <>

    "xmlns:MX ="http://www.adobe.com/2006/mxml"

    xmlns:RTC = "AfcsNameSpace".

    layout = "absolute" >

    import com.adobe.rtc.clientManagers.MicrophoneManager;

    import com.adobe.rtc.events.SessionEvent;

    import com.adobe.rtc.events.StreamEvent;

    private void connect (): void {}

    session. Login());

    }

    private void onSynchronize(event:SessionEvent):void {}

    If (event.type == SessionEvent.SYNCHRONIZATION_CHANGE) {}

    If {(session.isSynchronized)

    audioPub.codec = SoundCodec.SPEEX;

    MicrophoneManager.getInstance () .framesPerPacket = 1;

    audioPub.publish ();

    audioSub.addEventListener (StreamEvent.STREAM_DELETE, masterAudioHangUp);

    }

    }

    }

    private void masterAudioHangUp(event:StreamEvent):void {}

    audioPub.stop ();

    audioSub.resetAllStreams ();

    audioPub.addEventListener (StreamEvent.STREAM_DELETE, onStreamDelete);

    }

    private void onStreamDelete(p_evt:StreamEvent):void

    {

    session. Logout());

    }

    ]]>

    <>

    ID = "session".

    «"authenticator ="»

    roomURL = "url of your room.

    initialRoomSettings =""

    synchronizationChange = "onSynchronize (event)" > "

    This code should work fine now.

    I hope this helps.

    Thank you

    Hironmay Basu

  • How to save songs on Flash Media Server streams?

    I want to record a stream that is published with Flash Live Encoder FMS 3.5, but divide the recording into files with predefined length. For example, if a 'webcam' feed is published I want to save it in 10-minute segments: "webcam1.flv", "webcam2.flv"... From what I can tell there is no possibility of working with timers. The only solution I could think about was via stream.record () with a delay setting, but which seems to be a hack because it triggers the NetStream.Record.DiskQuotaExceeded on the stream when the recordin should stop and start recording another piece. If someone has done something similar?

    I would like to approach it by saving in a new stream side server instead of directly the customer record to publish feeds. A rough example would be something like this (I'm testing the code... it's just an example):

    application.onPublish = {function (client, stream)

    client.publishingStreamName = stream.name;

    application.chunkRecording (customer);

    }

    application.onDisconnect = {function (customer)}

    clearInterval (client.chunkInterval);

    {if (client.recordingStream)}

    client.recordingStream.play (false);

    client.recordingStream.record (false);

    }

    }

    application.chunkRecording = {function (customer)}

    clearInterval (client.chunkInterval);

    Stop the recording of any old

    {if (client.recordingStream)}

    client.recordingStream.play (false);

    client.recordingStream.record (false);

    }

    Start the new record. Create a new name for the stream based on the time.

    var recordStreamName = client.publishingStreamName + '-' + new Date () .getTime ();

    client.recordingStream = Stream.get (recordStreamName);

    client.recordingStream.record ();

    Me throw again in an hour.

    client.chunkInterval - setInterval (application, "chunkRecording", 3600000, client);

    }

  • How to get the return value from Java runtime.getRuntime.exec?

    I am running shell from a (GR 11, 2) Oracle database commands on aix.
    But, I would get a return value of a shell comand... as you get with "echo $?"

    I use a code like
    CREATE OR REPLACE JAVA SOURCE NAMED common."Host" AS
    import java.io.*;
    public class Host {
      public static int executeCommand(String command) {
        int retval=0;
        try {
            String[] finalCommand;
            finalCommand = new String[3];
            finalCommand[0] = "/bin/sh";
            finalCommand[1] = "-c";
            finalCommand[2] = command;
    
          final Process pr = Runtime.getRuntime().exec(finalCommand);
          pr.waitFor();
    }
       catch (Exception ex) {
          System.out.println(ex.getLocalizedMessage());
          retval=-1;
        }
        return retval;
    };
    /
    but I do not get a return value... because I don't know how to get the return value...

    Published by: user9158455 on 22-Sep-2010 07:33

    Hello

    Your pr.exitValue () has tried?

    I think you also need a finally block that destroys the sub-process

    Concerning
    Peter

  • Application of relay

    Hello

    Is there any application which can relay another application on Flash Media server?

    For example, I have a 'live' application on the server. I want another application, "liverelay" that can relay essentially makes his appearance on the 'live' application

    Is this possible? If yes how can I apply?

    Looking forward to a response.

    Thank you

    Basically, you can hold in my code from anywhere above the code of the application 'live' - I don't think that it must enter in conflict - something like below

    NetConnection.prototype.connectTimer;

    NetConnection.prototype.url;

    NetConnection.prototype.onStatus = function (info)

    {

    trace ("# nc:" + info.code + "' # '");

    If (info.code == "NetConnection.Connect.Failed" |)  info.code is "NetConnection.Connect.Closed")

    {

    If (this.connectTimer)

    {

    clearInterval (this.connectTimer);

    this.connectTimer = null;

    }

    trace ("set up to reconnect timer for" + this.url);

    this.connectTimer = setInterval (reconnection, 30000, this);

    } else {}

    If (info.code is "NetConnection.Connect.Success")

    {

    trace ("* connection to" + this.url + "successfully");

    If {(this.connectTimer)

    clearInterval (this.connectTimer);

    }

    }

    }

    }

    Reconnect = function (nc)

    {

    If (NC.connectTimer)

    {

    clearInterval (nc.connectTimer);

    nc.connectTimer = null;

    }

    NC. Connect (NC. (URL);

    }

    application.onAppStart = function()

    {

    NC = new NetConnection();

    NC. URL = "rtmp://localhost/app_2";

    NC. Connect (NC. (URL);

    }

    application.onPublish = function (client, stream)

    {

    trace ("# publish:" + stream.name + "#");

    client.ns = new NetStream (nc);

    client.ns.onStatus = function (info)

    {

    trace ("ns:" + info.code);

    If (info.code is "NetStream.Publish.Start")

    {

    client.ns.Attach (Stream);

    }

    }

    If (client.ns)

    {

    client.ns.Publish (Stream.Name);

    }

    Returns true;

    }

    application.onUnpublish = function (client, stream)

    {

    trace ("# end of publication:" + stream.name + "#");

    client.ns.Attach (false);

    client.ns.Publish (false);

    }

    /*

    * application.onConnect:

    * Implementation of the interface onConnect function (optional).

    * It is called whenever a client connection request connection. Live webcam app uses this

    * function to authenticate the connection field and allows only

    for one request of the Subscriber.

    */

    application.onConnect = function (p_client, p_autoSenseBW)

    {

    Check if pageUrl is an area that we know.

    Check pageurl

    An application for Flash Media Encoder is not verified for authentication

    If ((p_client.agent.indexOf ("WEF") is-1) & (p_client.agent.indexOf ("GFFE") is-1))

    {

    Area of the HTML of authentication for the request file:

    Do not call validate() when the query is localhost

    or HTML authentication domains is disabled.

    If ((p_client.ip! = "127.0.0.1") & application.) HTMLDomainsAuth

    && ! this.Validate (p_client.pageUrl, this.allowedHTMLDomains))

    {

    trace ("authentication for pageurl failed:" + p_client.pageUrl + ", rejecting the connection to" + p_client.ip);

    Returns false;

    }

    Authentication of domain of the SWF file for the query:

    Do not call validate() when the query is localhost

    or SWF authentication domains is disabled.

    If ((p_client.ip! = "127.0.0.1") & application.) SWFDomainsAuth

    && ! this.Validate (p_client.referrer, this.allowedSWFDomains))

    {

    trace ("authentication for sponsor failed:" + p_client.referrer + ", rejecting the connection to" + p_client.ip);

    Returns false;

    }

    Logging

    trace ("accepted a connection to IP address:" + p_client.ip)

    + ", sponsor:"+ p_client.referrer"

    + ", pageurl:" + p_client.pageUrl);

    } else {}

    Logging

    trace ("Adobe Flash Media Encoder connected to" + p_client.ip);

    }

    By default, all clients are disabled to access raw audio and video and data bytes in a stream

    using BitmapData.draw () and () SoundMixer.computeSpectrum., please see

    Flow doccumentations for access to the data to know requirement version of flash player to support this restriction

    Access permissions can be allowed for all uncomment the following statements

    p_client.audioSampleAccess = ' / ';.

    p_client.videoSampleAccess = ' / ';.

    this.acceptConnection (p_client);

    Client based on a component connection Flash 8 and 9 FLV Playback

    requires the following code.

    If (p_autoSenseBW)

    p_client.checkBandwidth ();

    on the other

    p_client. Call ("onBWDone");

    }

    /*

    * Client.prototype.getPageUrl

    * Public API to return the URL of the HTML page.

    *

    */

    Client.prototype.getPageUrl = function() {}

    Return this.pageUrl;

    }

    /*

    * Client.prototype.getReferrer

    * Public API to return the URL of the client SWF file field.

    *

    */

    Client.prototype.getReferrer = function() {}

    Return this.referrer;

    }

    /*

    * FCPublish:

    * FME calls FCPublish with the name of the stream each time a stream of data

    * is published. This notification can be used by the script action server-side

    * to maintain a list of all streams or also to force FME to suspend their publication.

    * To stop the publication, call "onFCPublish" with an information object with status

    * code of the value of "NetStream.Publish.BadName".

    */

    Client.prototype.FCPublish = function (streamname)

    {

    your configuration data flow and check if you want to allow this workflow to be published

    If (true) / / do a validation here

    {/ / This is optional.}

    This.Call ("onFCPublish", null, {code: "NetStream.Publish.Start", description: streamname});

    }

    on the other

    {

    This.Call ("onFCPublish", null, {code: "NetStream.Publish.BadName", description: streamname});

    }

    }

    /*

    * FCUnpublish:

    * FME notifies server script when a data stream is not published.

    */

    Client.prototype.FCUnpublish = function (streamname)

    {

    make your own place

    This.Call ("onFCUnpublish", null, {code: "NetStream.Unpublish.Success", description: streamname});

    }

    /*

    * releaseStream:

    * When the FME for FMS connection fall during an editing session, it will be

    * try to republish the data stream when the connection is restored. In a certain

    * times FMS will reject the new workflow server is always

    * ignoring the fall of connection, sometimes it can take a few minutes.

    * FME called 'releaseStream' method with the name of the stream, and this can be

    * used for free by the force of the stream.

    */

    Client.prototype.releaseStream = function (streamname)

    {

    s = Stream.get (streamname);

    s.Play (false);

    }

    /*

    * application.readValidDomains

    * Function to read the file of authorized field

    * Parameters:

    * the file name:

    * name of the file in the application directory

    * which contains a domain name valid per line. This file can contain

    * Comments followed by a ' # ' as the first character in this line.

    * an entry without comment with a space is considered to be an error cases.

    *

    * Returns

    * a table where each entry contains a domain name

    * listed in the file.

    */

    application.readValidDomains = function (fileName, domainsType)

    {

    var domainFile = new File (fileName);

    var domainsArray = new Array();

    var index = 0;

    var lineCount = 0;

    var tempLine;

    domainFile.open ("text", "read");

    Read the file line by line and fill in the domainsArray

    with valid entries

    While (domainFile.isOpen &! domainFile.eof ())

    {

    tempLine = domainFile.readln ();

    lineCount ++;

    If (! tempLine | tempLine.indexOf("#") == 0)

    {

    continue;

    }

    tempLine = tempLine.trim ();

    If (tempLine.indexOf("")! = - 1)

    {

    trace ("' junk, entry field ignored." + fileName + ":"+(lineCount+1));)

    }

    on the other

    {

    domainsArray [index] = tempLine.toLowerCase ();

    index ++;

    If (tempLine == "*")

    {

    Switch (domainsType) {}

    case 'HTMLDomains ':

    trace ("found the wildcard character (*) entry: disable authentication for areas of HTML file" "");

    request. HTMLDomainsAuth = false;

    break;

    case 'SWFDomains ':

    trace ("found the wildcard character (*) entry: disable authentication for areas of SWF file" "");

    This. SWFDomainsAuth = false;

    break;

    by default:

    Do nothing

    break;

    }

    }

    }

    } / / End while

    Something is wrong! the file of areas must be accessible.

    If (! domainFile.isOpen) {}

    trace ("error: cannot open '" + name + "', rejecting all customers except localhost.");

    }

    on the other

    {

    domainFile.close ();

    }

    Return domainsArray;

    }

    /**

    * String.prototype.trim:

    * Function to cut the spaces at the end beginning of an input string.

    * Returns:

    * chain adorned without space leader & end.

    *

    */

    String.prototype.Trim = function () {}

    Return this.replace(/^\s*/, "") .replace (/ \s*$ /, "");

    }

    ===================================================

    Try it and see if his work - if you are having problems LMK

  • Audiosubscriber

    I have problems with the AudioSubscriber - using flash10. I get the following error:

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at com.adobe.rtc.collaboration::AudioSubscriber/playStreams()[C:\work\main\connect\SDKApp\payload\libs\flashOnly\player10\src\com\adobe\rtc\collaboration\AudioSubscriber.as:507]
    at com.adobe.rtc.collaboration::AudioSubscriber/set publisherIDs()[C:\work\main\connect\SDKApp\payload\libs\flashOnly\player10\src\com\adobe\rtc\collaboration\AudioSubscriber.as:247]
    at dk.lektieronline.view.component.audio::Audio/setUpSubscriber()[C:\Workspace\Lektier Online\source\classes\dk\lektieronline\view\component\audio\Audio.as:59]
    
    

    Audio 59 is the following line in my code:

    audioSubscriber.publisherIDs = [streamPublisherID];

    My code:

              public function Audio(connectsession : IConnectSession) {
                   addPublisher(connectsession);
                   addSubscriber(connectsession);
              }
    
              private function addPublisher(connectsession : IConnectSession) : void {
                   var audioPublisher:AudioPublisher = new AudioPublisher();
                   _userManager = audioPublisher.connectSession.userManager;
                   audioPublisher.connectSession = connectsession;
                   audioPublisher.subscribe();
                   audioPublisher.publish();
              }
    
              private function addSubscriber(connectsession : IConnectSession) : void {
                   audioSubscriber = new AudioSubscriber();
                   audioSubscriber.connectSession = connectsession;
                   audioSubscriber.addEventListener(StreamEvent.STREAM_RECEIVE, onReceiveStream);
                   
                   //If streams are already running
                   var _streamManager : StreamManager = audioSubscriber.connectSession.streamManager;
                   var _userManager : UserManager = audioSubscriber.connectSession.userManager;
                   
                   var publishers : Object = _streamManager.getStreamsOfType(StreamManager.AUDIO_STREAM);
                    
                   
                   for (var streamPublisherID:String in publishers) {
                        if (streamPublisherID != _userManager.myUserID)  setUpSubscriber(streamPublisherID); // If it's not myself
                   }
              }
              
    
              private function onReceiveStream(event : StreamEvent) : void {
                   if (event.streamDescriptor.streamPublisherID != _userManager.myUserID)  {
                        setUpSubscriber(event.streamDescriptor.streamPublisherID);
                   }
              }
              
              private function setUpSubscriber(streamPublisherID : *) : void {
                   if (subscribed) return;
                   subscribed = true;
                   audioSubscriber.publisherIDs = [streamPublisherID];
                   audioSubscriber.subscribe();
              }
    

    Hello

    I ran your code. All you have to do is call audioSubscriber.subscribe () before calling

    audioSubscriber.publisherIDs =;  inside the setUpSubscriber method. The reason being subscribed instantiates classes like StreamManager, UserManager inside that are required before calling playStreams() all by setting the publisherIDs property.  I enclose your code with the fix.

    import com.adobe.rtc.sharedManagers.StreamManager;

    import com.adobe.rtc.sharedManagers.UserManager;

    import com.adobe.rtc.collaboration.AudioPublisher;

    import com.adobe.rtc.collaboration.AudioSubscriber;

    import com.adobe.rtc.events.StreamEvent;

    import com.adobe.rtc.session.IConnectSession;

    private var _userManager:UserManager;

    private var audioPublisher:AudioPublisher;

    private var audioSubscriber:AudioSubscriber;

    private var subscribed: Boolean = false;

    public void onCreationComplete(connectsession: IConnectSession): void

    {

    addPublisher (connectsession);

    addSubscriber (connectsession);

    }

    private void addPublisher(connectsession: IConnectSession): void {}

    var audioPublisher:AudioPublisher = new AudioPublisher();

    _userManager = connectsession.userManager;

    audioPublisher.connectSession = connectsession;

    audioPublisher.subscribe ();

    audioPublisher.publish ();

    }

    private void addSubscriber(connectsession: IConnectSession): void {}

    audioSubscriber = new AudioSubscriber();

    audioSubscriber.connectSession = connectsession;

    audioSubscriber.addEventListener (StreamEvent.STREAM_RECEIVE, onReceiveStream);

    If the rivers are already running

    var _streamManager: StreamManager = audioSubscriber.connectSession.streamManager;

    _userManager = connectsession.userManager;

    Publishers var: Object = streamManager.getStreamsOfType(StreamManager.AUDIOSTREAM);

    for (var streamPublisherID:String in editors) {}

    If (streamPublisherID! = _userManager.myUserID) setUpSubscriber (streamPublisherID); If this isn't me

    }

    }

    private void onReceiveStream(event: StreamEvent): void {}

    If (event.streamDescriptor.streamPublisherID! = _userManager.myUserID) {}

    setUpSubscriber (event.streamDescriptor.streamPublisherID);

    }

    }

    private void setUpSubscriber(streamPublisherID: *): void {}

    If (capital) return;

    subscribed = true;

    audioSubscriber.subscribe ();

    audioSubscriber.publisherIDs =;

    }

    I hope this helps.

    Thank you

    Hironmay Basu

  • What is a common way to create audio chat rooms?

    What is an expected way to create voice chat rooms? Either try to mix audio streams all edited into single and release it under the common name? Or simply to inform all customers of the other and allow everyone to connect to a stream of data, published by the other?

    What I write webapplication personalized with my own scripts in it, or it is a default feature?

    Thank you.

    Hi Dimitri.

    I doubt if the mixture is possible in the FMS. Even for your case many, I would always say to have a separate for each user flow (so that he can 'talk') and reading / subscribe all feed to all users and save them as well. You will as well as many /streams recordings, like the number of users. Then, you will have to write some scripts for 'sync', each of them (all records).

    It will be useful.

    Thank you!

  • Restricting LIVE feeds by IP address

    I want to restrict the possibility for encoders to connect and listen to my server FMS [3.0] by their IP addresses.
    So, basically, 1.1.1.1 can connect and send in a stream named "livestream" (very original I know). However, if 2.2.2.2 attempts - nothing happens.
    While at the same time, I don't want to restrict playback to all...

    I know that I can use in FMS authentication intake to add auth user/pass on the side of the encoder...
    What I'm trying to do, is allow anyone in my building of flow, but no one else. If I use the user/pass authentication, out in the open then (banks firewall ACL), anyone can broadcast on my FMS server.

    Anyone know how to implement this?

    Much obliged for any help...

    You need to add the ip address, check inside the application.onPublish(client,stream) function, it is called when a user tries to publish a stream. customer. IP returns the address of the Publisher. a simple application.disconnect (customer) would probably do what you must, if the ip address is not mapped.

Maybe you are looking for

  • Safari issues

    I can't use safari to get indexing still on the bottom of the page chrome shows all here is a screenshot of the same browsers different pages As you can see chrome displays the index of the page on the bottom but safari it appears below the bar low a

  • How to unlock I pad

    I have an air cushion. frozen will show opening page / time. Press the button on the right will display "slide to turn off", but it does not

  • Microsoft Jet database cannot be found, do not forget to file

    I bought two pal of calendar time. One for my windows 7 that works very well. Second for my windows XP that gives me an error message which can not well the MS Jet database remember file. I was told that my file systems must be corupted. so I reinsta

  • "Media sharing goes out" - parameters required Windows, or a component has changed in Windows XP

    Original title: 'Media Sharing Turned Off' - settings of Windows required or a component has changed. Unable to find the information that I must correct. I have Windows XP Windows Media Player purchased in 2005.

  • Windows keeps starting in SafeMode... help!

    Windows keeps starting in safe mode. We tried to reboot several times, we tried the system restore and various tools Diagnostics on windows help and support and we checked the system configuration screen and start normal box is checked.Is it possible