Question about when subscribing to a directly published stream

Hi,
In the article there : http://www.adobe.com/devnet/flashmediaserver/articles/real-time-collaboration.html#article contentAdobe_numberedheader_1
We can see this under 'User lookup'
RTMFP assigns a peer ID to each participant. These peer IDs are 256 bits long and are non-forgeable. When you want to subscribe to a directly published stream, you must specify the publisher's peer ID:
var receiveStream:NetStream = new NetStream(netConnection, id_of_publishing_client);
receiveStream.play("media");
In another thread, Michael said :
i believe the problem is that you are attempting to make a P2P connection to the server's peer ID; that is, something like" 
   var ns:NetStream = new NetStream(netConnection, netConnection.farID);
   ns.play(...);
under the covers, this will open a new RTMFP flow to the server that will appear to the server as a new incoming client, but the initial handshake will be incorrect (the first/only command message is "play" instead of "connect").  i see this on Cirrus all the time.
Is it an error in the article or is it right considering the scenario?
Thanks

you specify the peer ID of the publisher for 1:1 P2P communication.  in particular, you specify the peer ID of a peer that is publishing a stream on a P2P publishing NetStream -- one created with ns = new NetStream(netConnection, NetStream.DIRECT_CONNECTIONS).
Flash Media Server does not publish streams in this fashion.  it publishes streams in the traditional client-server fashion.  to subscribe to a stream from the server, you just use ns = new NetStream(netConnection) and do not specify a peer ID or other special token (well, there is a special token, but it's the default -- the previous call is equivalent to ns = new NetStream(netConnection, NetStream.CONNECT_TO_FMS)).
as i explained earlier, if you try to subscribe to an FMS stream using the DIRECT_CONNECTIONS P2P method, it will not work because the handshake is different.  the server end of your NetConnection is not a peer and it will not behave like a peer.  a server-side NetConnection is a peer and will have its own distinct peer ID; however, i don't believe any of the 1:1 P2P functions will work with it, only group stuff (multicast NetStreams and NetGroups).

Similar Messages

  • Design question about when to use inner classes for models

    This is a general design question about when to use inner classes or separate classes when dealing with table models and such. Typically I'd want to have everything related to a table within one classes, but looking at some tutorials that teach how to add a button to a table I'm finding that you have to implement quite a sophisticated tablemodel which, if nothing else, is somewhat unweildy to put as an inner class.
    The tutorial I'm following in particular is this one:
    http://www.devx.com/getHelpOn/10MinuteSolution/20425
    I was just wondering if somebody can give me their personal opinion as to when they would place that abstracttablemodel into a separate class and when they would just have it as an inner class. I guess re-usability is one consideration, but just wanted to get some good design suggestions.

    It's funny that you mention that because I was comparing how the example I linked to above creates a usable button in the table and how you implemented it in another thread where you used a ButtonColumn object. I was trying to compare both implementations, but being a newbie at this, they seemed entirely different from each other. The way I understand it with the example above is that it creates a TableRenderer which should be able to render any component object, then it sets the defaultRenderer to the default and JButton.Class' renderer to that custom renderer. I don't totally understand your design in the thread
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=680674
    quite yet, but it's implemented in quite a bit different way. Like I was saying the buttonClass that you created seem to be creating an object of which function I don't quite see. It looks more like a method, but I'm still trying to see how you did it, since it obviously worked.
    Man adding a button to a table is much more difficult than I imagined.
    Message was edited by:
    deadseasquirrels

  • Question about when L3 sticky information is removed on CSS

    Hi everyone,
    I have a question about L3 sticky on CSS.
    I understand L3 sticky takes effect on the following situations,
    1: until expiring inactive timer
    2: until sticty table full
    and
    3: until the connection disconnect by receiving RST or FIN from client or real server
    The "3:" means that CSS maintains sticky connection between specific client IP address
    to real server (L3 stickty) when CSS has its information on sticky table.
    And CSS has removed it from sticky table if CSS receive RST or FIN even if the inactive timer
    abot its connection has not expired.
    That is, CSS removed L3 sticky information from sticky table when CSS receive
    RST or FIN from client or real server even if inactive timer has not expired and
    in this situation, the next new connection from same client IP address is processed with
    normal load balancing, in the result, the new connection from same client IP address
    forwards other real server.
    Is my understanding correct ?
    Or CSS maintains L3 sticky information on the sticky table until the situation meets
    "1:" or "2:" even if CSS receive RST or FIN ?
    Your information would be appreciated.
    Thank you in advance.
    Best Regards,

    What point number 3 means is the layer 3 sticky will take effect when a connection disconnect message is received from a client or a real server. This connection disconnect is received in the form of RST or FIN messages from the real server or the client.

  • Question about when to use EJB

    Hello All,
    Right now, I am tasked with taking data out of the database and storing it on the mid-tier. We will be storing this static data in an XML file. We were hoping to read it in when starting the server and then persisting the data for the life of the server. Is this a good time to user EJB? All I have seen is examples using a database. We would like to take the database hit out of the equation when it comes to retrieving this data, but would also like to avoid parsing the XML doc every time someone logs in to the application. Is EJB a good answer here, or is it overkill?

    If this is for use as a read-only dictionary for supporting an EJB application, by all means.
    But to use EJB just to do this - I think that would be overkill.
    A singleton would do the job fine - especially if the XML doesn't change - actually even if it does that doesn't matter.

  • Questions about Apple TV 2 as a music streamer

    I'm thinking about picking up an Apple TV 2, with my main intention being to use it as an AirPlay music streamer, and I'd like to find out some specifics about how it behaves.  Specifically, I want to make sure it won't require me to turn on the TV before I can stream to it. Preferably I wouldn't even have to turn on the device itself.  So maybe you can tell me:
    Does the Apple TV respond to AirPlay even when it's in standby mode, or do I have to turn it on with its remote before it appears as an AirPlay destination?
    Do I have to navigate to some location in the menus before it appears as an AirPlay destination?
    Can you turn the device on using the Remote app, or do you have to use the physical remote control?
    Thanks!

    Welcome to the Apple Community.
    There are a large number of people that have noted that the Apple TV will not turn itself on unless a connected TV is also turned on and the correct input is selected.
    There are others that have been able to play audio via a receiver without the TV being on. There are also others who have found that if they turn the TV on and start to stream audio from say iTunes on their computer that they can then turn the TV off again.
    There doesn't seem any consistency to the reports I've seen and the assumption I have made in this matter is that it may depend on which TV is being used with the Apple TV (it may also depend on the receiver in use.

  • Questions about reading/writing with output and input streams

    I'm getting a bit confused on this subject. I have written an array of doubles to a file, and now I need to know how to read them back in to another array. I have also wrapped each double into its own object, but I need to know how to write those to a file, and read the doubles contained in them back into an array.
    Here is what I have so far; the method that writes the array of doubles to a file.
    public void writePrimDoubles() {
              DataOutputStream outStream;
              System.out.println("Now writing the values to file...");
              try     {               
                   outStream = new DataOutputStream(new FileOutputStream("file.dat"));
              catch (IOException ex) {
                   System.out.println("Error opening file");
              return;
              try {
                   for(int i = 0; i<arraySize; i++)
                        outStream.writeBytes(numberArray[i] + "\n");
                   outStream.close();
              catch(IOException e) {
                   System.out.println("Error writing to file");
         }

    * writes all doubles in the given array to the file 'file.dat'
    public void writePrimDoubles(double[] array) throws IOException {
       DataOutputStream out = new DataOutputStream(new FileOutputStream("file.dat"));
       for(int i=0; i<array.length; i++) {
          out.writeDouble(array);
    out.close();
    * reads in all stored doubles from the given file ('file.dat').
    * cause of each double has been written to a 8byte part of the file
    * you could get the number of doubles stored in the file by dividing
    * its filesize by 8.
    * Alternatively you might first store all read doubles as Double in
    * a list (e.g. java.util.ArrayList). After reading all doubles you could then
    * create a new double[] with the lists size (double[] array = new double[list.size()];)
    * -> this alternative is commented out in the following code.
    public double[] readPrimDoubles() throws IOException {
    File file = new File("file.dat");
    DataInputStream in = new DataInputStream(new FileInputStream(file));
    double[] array = new double[file.length()/8];
    for(int i=0; i<array.length; i++) {
    array[i] = in.readDouble();
    in.close();
    return array;
    ArrayList list = new ArrayList();
    try {
    while(true) {
    list.add(new Double(in.readDouble()));
    catch(EOFException e) {} // catchs the exception thrown when end of file is reached
    in.close();
    double[] array = new double[list.size()];
    for(int i=0; i<list.size(); i++) {
    array[i] = ((Double)list.get(i)).doubleValue();
    return array;
    For further information on the classes you have to use you might have a look to the concerning API documentation (http://java.sun.com/j2se/1.4.2/docs/api/). In this docs you could find all methods, constructors and fields accessable for a class.
    have fun...

  • Question about using Runnable

    hi
    i have a question about when i should implement this class. if i just want to create a standalone app and run it, all i need to do is create a main method in one of my regular classes and run it. and the class doesn't have to implement the Runnable. why bother with implemeting runnable? thanks

    i have a question about when i should implement this
    class. if i just want to create a standalone app and
    run it, all i need to do is create a main method in
    one of my regular classes and run it. and the class
    doesn't have to implement the Runnable. why bother
    with implemeting runnable? thanksRunnable is an interface which your class implements to allow using multithreading in the application.
    http://java.sun.com/docs/books/tutorial/essential/threads/
    http://www.javaworld.com/javaworld/jw-04-1996/jw-04-threads.html

  • How to prevent user publish stream to FMS

    Hi all,
    I've installed Flash Media Server and send stream to it use Flash Media Live Encoder via rtmp://mydomain.com/live. And on my website, I've embed code to play this live stream via rtmp://mydomain.com/live. All ok!
    But, any user can install Flash Media Live Encoder and connect to my FMS, publish his/her stream (because url to publish and view is same)
    My question is: how to prevent end-user publish stream to my FMS, only allow end-user view my live stream?

    From the Flash Media Live Encoder FAQ:
    How can I enable authentication on Flash Media Server?
    Download the Authentication add-in and install it on Flash Media Server.

  • TS3297 When I try to buy a song from iTunes it says something about security questions and when I type them in it says they are not valid and won't let me download the music?!

    iTunes Store is not letting me purchase any songs. When I download them it says something about security questions and when I type them in it says they are incorrect when they are! Hiw can I download song?

    Click here and search the article for '2 out of 3' without the quotes; in the case of forgotten answers, this generally involves either a message being sent to your rescue email address or contacting the iTunes Store staff directly.
    (74834)

  • I have a question about Lightroom 5... I used it last night, I go to get on it today and its will not open. I have an error msg "Lightroom encountered an error when reading from its preview cache and needs to quit" Lightroom will attempt to fix the proble

    I have a question about Lightroom 5... I used it last night, I go to get on it today and its will not open. I have an error msg "Lightroom encountered an error when reading from its preview cache and needs to quit" Lightroom will attempt to fix the problem when reopened

    https://forums.adobe.com/message/6219922#6219922
    See if the issue in the thread above helps you to solve your problem.

  • Hi I have a question about shooting in Raw with my Canon EOS 6d. I'm in the process of learning photography and my goal was to start shooting in raw. I have Photoshop CS5. When I tried to edit my images in raw I received an error message stating, "The pho

    Hi I have a question about shooting in Raw with my Canon EOS 6d.
    I'm in the process of learning photography and my goal was to start shooting in raw.
    I have Photoshop CS5. When I tried to edit my images in raw I received an error message stating, "The photoshop camera raw plug-in did not recognize the format. If these files are from a camera, you may need to update your camera raw plug in."
    In researching the issue I read that to edit in raw you need a camera model requirement of at least 7.3 which only works with CS6. My version of CS5 is 6.0.0.205. Being new to all this I see that my options are to upgrade to CS6 or convert by using DNG converter and paying a monthly fee. Two things I know nothing about and don't know which is would be more beneficial.
    I'd appreciate any advise on which route to go and how upgrade and what it may cost. THANKS in advance!
    Heather

    In researching the issue I read that to edit in raw you need a camera model requirement of at least 7.3 which only works with CS6.
    That is correct. Your camera was first supported by Camera Raw 7.3. Camera Raw 7.3 will not work with CS5. You need CS6 or CC.
    Being new to all this I see that my options are to upgrade to CS6 or convert by using DNG converter and paying a monthly fee. Two things I know nothing about and don't know which is would be more beneficial.
    I'd appreciate any advise on which route to go and how upgrade and what it may cost.
    It all depends on your preferred workflow and your budget.
    Using the DNG converter is free. There is no monthly fee. You use the converter to convert all Raw files from the EOS 6D to DNGs then edit the DNGs in CS5. That's an extra step every time - every photo. Some people don't like the extra step. Others don't mind.
    Camera raw, DNG | Adobe Photoshop CC
    Or you can upgrade to CS6 (non-Cloud) and pay the upgrade fee
    Creative Suite 6
    Or join the Cloud and pay the monthly fee
    Or join the Photoshop Photography Program (US9.99/month) and get PS CC+LR

  • I have a question about extracting pages.  When I do the function, adobe saves the individual files as " file name space page number ", so the files look like this "filename 1.pdf", "filename 2.pdf", "filename 3.pdf".  Without too many gory details, I a

    I have a question about extracting pages.  When I do the function, adobe saves the individual files as "<file name><space><page number>", so the files look like this "filename 1.pdf", "filename 2.pdf", "filename 3.pdf".  Without too many gory details, I am using excel to concatenate some data to dynamically build a hyperlink to these extraced files.  It casues me problems, however, for the space to be the the file name.  Is there any way to change the default behavoir of this function to perhaps use a dash or underscore instead of a space?

    No, you can't change the default naming scheme. You can do it yourself if you extract the pages using a script instead of using the built-in command.

  • Hi, I have quick question about use of USEBEAN tag in SP2. When I specify a scope of SESSION for the java bean, it does not keep the values that I set for variable in the bean persistent.Thanks,Sonny

     

    Make sure that your bean is implementing the serializable interface and that
    you are accessing the bean from the session with the same name.
    Bryan
    "Sandeep Suri" <[email protected]> wrote in message
    news:[email protected]..
    Hi, I have quick question about use of USEBEAN tag in SP2. When I
    specify a scope of SESSION for the java bean, it does not keep the
    values that I set for variable in the bean persistent.Thanks,Sonny
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Answer to question about "Error Occurring when convertion is tried for PDF to Word Document"

    There are about ten questions about the "Error Occurring" when  using Abode Reader XLto convert a PDF to a Word Doc, but no one has the answer? It has something to do with "signing in  the wrong address". I have been working on this three days Now! Soimeone has the answer? Cataloochee

    You must be kidding to say, "Adobe doesn't convert any version of Adobe Reader."'  I must be in another world! When i move an Adobe Reader file pdf that goes to a wIndow that the top line says,'' Adobe reader X1 1001 Early Dutch History. pdf ". Then i click on the far left yellow marked icon that is used to move 1001 Early Dutch History.pdf to thye far right into a gray colored slot that reads "1001 Early Dutch History.pdf'. Under the file above  or down below, the selected File for conversionis, a selection gray slot that ask if you want to convert this file(pdf) to a .docx.,.doc, tex. or Excell. After I make the selection and click onto Convert, a message comes into view where the word convert was that reads "An Error Occurred wilth Signing In  OK" Even the use of another pdf file with a complete different address produces the same message. There are eight chapters in Dutch that I need to convert to word document by tommorrow or the class i teach "the Origin of Golf" will have to listen in Dutch and I can't speak Dutch. Cataloochee

  • Question about the CSS behavior when using layer 3 sticky and sticky table

    Hi everyone,
    I have a question about the CSS behavior when using layer 3 sticky and sticky table is full.
    If I configure layer 3 sticky and specify the inactivity timeout as below, how does the CSS
    handle subsequent needed sticky requests ?
    advanced-balance sticky-srcip
    sticky-inact-timeout 30
    CSS document says that
    Note:
    If you use the sticky-inact-timeout command to specify the inactivity timeout
    period on a sticky connection, when the sticky table becomes full and none of
    the entries have expired from the sticky table, the CSS rejects subsequent
    needed sticky requests.
    My question is what is the next reaction by doing the CSS if the CSS is in the
    following condition:
    when the sticky table becomes full and none of the entries have expired from
    the sticky table, the CSS rejects subsequent needed sticky requests
    Does CSS just rejects/drops subsequent needed sticky requests ?
    or
    Does CSS does not stick subsequence requests to particular service but CSS forward
    subsequence requests with round-robin basis ? which means if the sticky table is full,
    the CSS just works round-robin load balancing fashion for subsequence requests ?
    Your information would be appreciated.
    Best regards,

    Hello,
    There is a good document explaining this on Cisco web site
    http://www.cisco.com/en/US/products/hw/contnetw/ps789/products_tech_note09186a0080094b4b.shtml
    It depends if the sticky-inact-timeout is used or not. If not, it's FIFO (the oldest entry in the sticky table is removed). If yes, the CSS will reject the next sticky request.
    Rgds,
    Gaetan
    Rgds
    Gaetan

Maybe you are looking for

  • Credit Management - Document somehow released via VA02

    I have a sales document that shows Overall status of Credit Checks changed via VA02 in the change log.  There have been no changes to the customer activity (Payer) that would justify this.  No payments have been posted, orders cancelled, returns rece

  • How do you know when your raid controller has gone bad?

    I fired up my xserve raid 14X400 with 2X512mb Raid Controllers and drives 1-7 on the left won't show up at all. I swapped the controllers and then drives 8-14 won't show up. I have been trying to update the firmware from 1.5 to the latest and keep ge

  • How can I save photos to a CD?  (Elements 11)

    How can I save a group of photos to a CD?  Elements 11

  • XI Monitpting RFC's

    Hi... Please ...how i can to monitoting the rfc's sending to XI??? Which screen i can monitoring the rfc send to XI ?? ..in XI ???? I have a problem in send a RFC ...the people who send the rfc to me said the destination is ok !!! But i not receive t

  • Maximizing a floating document window makes the entire UI inaccessible

    On Windows 7, with Photoshop CS6, if you drag a document tab out of the main application window, it becomes a floating document with its own window controls for minimize, maximize, and close just like a normal Windows OS document should.  However, if