The Stream.play () method does not work why?

I want to create an application to switch streams and republish them under continuous flow unique to the remote server.

In the first step, I tested "Livestream code" of the "Multipoint publishing example" p. 184 of "FLASHMEDIA SERVER 4.5 Developer's Guide ADOBE®" If ns.publish method is used. He managed.

I try stream.play method now.

I wrote main.asc code as in the Stream.play example (p. 162) of the 'the ACTIONSCRIPT Language Reference® to ADOBE® FLASH® MEDIASERVER 4.5 server-side", but I have a certain problem despite this.

I try to spread on my local server (Uri - "localhost/studia") by two customers - OUT and my request for "Livestream" accordingly (with stream name "livestream2") and retraslate it to a remote server by using my "studia" on a local application.

The connection between two servers (with application "on-line") appears in the Remote Server Admin Consol, but the flow of my local server do not come to her.

Here's my main.asc script:

application.myRemoteConn = new NetConnection();

application.myRemoteConn.onStatus = {function (info)}

trace ("Connect" + info.code + "\n");

Respond to all customers

for (var i = 0; i < application.clients.length; i ++) {}

application.clients [i]. Call ("onServerStatus", null, info.code, info.description);

}

};

Connect use NetConnection object remote server (the remote server works with other application wery well)

application.myRemoteConn.connect ("rtmp://RemoteServer/live");

Estimate of the server data flow

application.myStream = Stream.get ("livestream");

application.myStream = Stream.get ("livestream");

If {(application.myStream)

application.myStream.play ("livestream2", 0, -1, true, application.myRemoteConn);

}

The Stream.play () method does not work why?

What I've done wrong?

In this case, I recommend a mixture of solution...

Something like that will be interesting to check:

var tempSwitchingStream = Stream.get ("myswitchingstream"); create a stream live temp on the server local app...

tempSwitchingStream.play (livestream1, 0, -1);      Subscribe to tempSwitching to livestream1... That is to say get the content of livestream1 in there... I can also switch to different streams inside... tempSwitchingStream will get the contents of the stream of //switched

If (tempSwitchingStream) / / if there is

{

NS. Attach (tempSwitchingStream);  Subscribe to my net workflow to receive data from tempSwitchingStream

NS. Publish (livestream, "live");  now flows net is get data from tempSwitchingStream, so publishing those data with the name "livestream" on the connection to the network... NET already know its NetConnection... See above

}

Did you get the point? I created a temporary stream that can pass the stream in its method of game and then I push this temporary stream to a remote server...

However, it is tricky... Majorly, in most cases similar to yours, people write applications on the application of remote server to get the stream and he spend the pull in play method as described in the first method discussed...

Tags: Adobe Media Server

Similar Questions

  • The key fire method does not work

    Hi all

    I have a little problem with my javafx application. I designed my application with the scene designer and added a few buttons for them. For each button, I defined a listener method (annotated with @FXML) and

    I also added each button as member variable to my controller. So far so good.

    Now my controller extends an AbstractController which has certain functions inside. Inside of my method to initialize I pass the button to a method of the abstract class to collect the buttons inside a set.

    Now, to a point that I want to get all buttons of my abstract class defined but that does not work.

    I tried to add to each button setAction method and implemented an anonymous class before you put the button in my game. Then the fire of the button method calls the anoymous class / method. But

    Why it works don't not with a @FXML annotated method?

    The problem would be the "timing"? If I switch the button the the class abstract in the init, the button may not be registred listener method? Just for my understanding, when the init method calls anyway?

    It is difficult to create a small test application for this problem, but maybe someone can help me already.

    Greetings,

    Hauke

    I misunderstood the question a bit, I think. It also works with the following changes:

    Buttons.fxml

    
    
    
    
    
    
     

    Controller.Java

    import javafx.event.*;
    import javafx.fxml.FXML;
    import javafx.scene.control.Button;
    
    public class Controller extends AbstractController {
      @FXML private Button button1;
      @FXML private Button button2;
      @FXML private Button button3;
    
      public void initialize() {
      this.addButtons(button1, button2, button3);
      }
    
      @FXML private void buttonPressed(ActionEvent event) {
      Button button = (Button)event.getSource();
      System.out.println(button.getText() + " fired");
      }
    }
    

    In this version, where managers of the action for the individual buttons are defined in the FXML, these action handlers will be actually installed earlier: before Controller.initialize () is called (and potentially before the controller is instantiated and the buttons are injected in the it).

  • "set the restart target action" does not work, why?

    There is an element of "set the restart target action" in the SDF file. I put it to "run a system definition.

    But it does not work. I don't know why. It seems that when the project is canceled, the SystemDefinitionData.nivscfg file is deleted.

    Cancel the deployment of will stop the configuration and mark idle.

    If you restart the RT target by HW button or through the channel "System of command channels", while the configuration is active, it will start the Setup again after the reboot.

    Jiri K.

  • Why the camera StatusEvent method does not work in Flex 4.6 Desktop Application?

    Hello

    I have a simple Desktop Application (in collaboration with adobe AIR) that retrieves the web camera, adds two EventListener (activity and event status) and starts the preview.

    The event activity method works correctly while the status event method to notify that the correct connection is never thrown.

    Here is the method to initialize and start the webcam.

    private function videoDisplay_creationComplete():void 
    {
              camera = Camera.getCamera();
              camera.setMode(320,240,15,false);
              camera.setKeyFrameInterval (4);
              camera.setQuality (0,100);
    
    
              videoDisplay.attachCamera(camera);
    
    
              if (camera) 
              {
                        camera.addEventListener(ActivityEvent.ACTIVITY, camera_activity);
                        camera.addEventListener(StatusEvent.STATUS, camera_status);
              } 
              else 
                        textArea.text += "Nessuna camera disponibile.";
    }
    
    //Listener chiamato quando il video o il microfono vengono attivati/disattivati
    private function camera_activity(evt:ActivityEvent):void 
    {
              var str:String = "[{0}] activating:{1}\n";
    
              textArea.text += StringUtil.substitute(str,
                        evt.type,
                        evt.activating);
    }
    
    
    //Listener chiamato quando lo stato della webcam cambia
    private function camera_status(evt:StatusEvent):void 
    {
              var str:String = "[{0}] code:'{1}', level:'{2}'\n";
    
              textArea.text += StringUtil.substitute(str,
                        evt.type,
                        evt.code,
                        evt.level);
    
              switch (evt.code) 
              {
                        case "Camera.Muted":
                                  Alert.show("User denied access to camera.");
                                  break;
                        case "Camera.Unmuted":
                                  Alert.show("User allowed access to camera.");
                                  break;
              }
    }
    
    
    

    Thanks in advance.

    Greetings

    I think that if you already allowed access to the camera (for example the Flah Player asks you anymomre to allow) you wil get event direct activity instead of the status event.

    The status event is absolutely necessary if you get the triggering event. You can check current FPS the camera and if is > 0 for an interval of shor your camera works very well.

    C

  • The virtual DHCP server does not work why?

    Hello

    I used the workstation to create a virtual machine with NAT connection. The virtual machine works well in my computer with WiFi, and it can get an IP address from the virtual DHCP server successfully. Then I copied it on another computer with no network connection (no wifi, no cable connection). After startup, the virtual machine cannot obtain an IP address from the DHCP server. In my opinion, if she has a physical or network connection, the DHCP server should work anywhere. I wonder why the server may not work.

    Also, is there any document to introduce inside the vmware network. Thank you!

    Yes, NAT is the network setting that allow you to generate ip which is pre defined in the virtual network Editor. and your virtual machine will also communicate to the outside network.

    On the contrary if you change host Only.The vm will get the ip address range but they will communicate within your host not the outside world. If no internet connection then. (No network connectivity don't require in this case)

  • Drag and drop the game. splice method does not work on the table

    Hello

    I have a drag and drop game. You listen a sound for 'bread' peculiarities, you switch to slide that mc in a box. If it's the right object I want to delete as mc and splice table so it isn't select this object more.

    However I notice two things.

    When I splice (0) a specific item - so nothing works.

    When I connect the indexed element cuurent IE: the last element to get right - it is not actually delete it table.

    I highlighted the parts of key code.

    private function placeBubbles (): void
    {
    var nextX:int = 0;
    for each (var: bubble in bubbles)
    {
    bubble.buttonMode = bubble.useHandCursor = true;
    bubble.addEventListener (MouseEvent.MOUSE_DOWN, dragHandler);
    bubble.addEventListener (MouseEvent.MOUSE_UP, checkDrag);
    Bubble.x = 0 + nextX;
    Bubble.y = 300;
    nextX += 100;

    addChild (bubble);
    }
    nextGameRound();
    }

    private function nextGameRound (): void
    {
    currentIndexArray = int (Math.random () * bubbles.length);
    currentBubble bubbles = [currentIndexArray];

    currentBubble.playSound ();
    }

    private void checkDrag(e:MouseEvent)
    {
    e.currentTarget.stopDrag ();
    If (this.currentBubble.hitTestObject (this.box))
    {
    If (currentBubble & & currentBubble == e.currentTarget)
    {
    currentBubble.visible = false;
    trace ("Right");
    Bubbles.splice (currentIndexArray);
    Bubbles.splice (0);

    trace (Bubbles);
    nextGameRound();
    soundCorrect.play)
    }
    }
    on the other
    {

    TweenLite.to (e.currentTarget, 1, {x: xIni, y: yIni, ease:Strong.easeOut, onComplete:onFinishTween}) ;// - If you want something happens on the ending of tween - good idea while children must wait})

    }
    nextGameRound();
    }

    the splice() method accepts two arguments.  the first is the index of the item to delete (start) and the 2nd argument is the number of elements to remove.  in your situation, you should use:

    Bubbles.splice(currentIndexArray,1);

  • The new flash player does not work why? IM with internet explore

    IM with internet explore and I downloaded the new installation of the flash player, I try to watch the video on youtube, of the game and other things.

    He told me just to get the new flash player, I don't know why this is, can you please help me?

    What version of Windows do you have? XP, Vista or 7? And it is 32-bit or 64-bit?

    If you have Vista or 7, you use IE8 or IE9? If IE9, please see this doc: http://forums.adobe.com/thread/885448

  • Why the Polish support page does not work?

    Why the Polish support page does not work?

    http://PL.consumer.Toshiba.EU/PL/support/home/support_home?

    I think the error message is pretty clear:

    + Service temporarily unavailable +.
    + The server is temporarily unable to process your request due to downtime or maintenance capacity problems. Please try again later. +

  • Why the button "Save as" does not work in new Acrobat Reader? Very annoying...

    Why the button "Save as" does not work in new Acrobat Reader? Very annoying...

    I have already updated to the last DC v15.009.20077...

    So I found a way, if I do it just right, it works (with the file, click the "tiny" file and then save as. I made the mistake of first pressing the home much more first. Really not intuitive or easy to use even if... Looks like you have replaced the button "save under" with the "save in the cloud." We use mettle at work, and the cloud of Adobe is irrelevant for me...

  • Why the "vertical-align" argument does not work?

    Very often, I try to use the "vertical-align" argument to control the CSS formatting, but so far he has never worked, so I had to resolve the situation by specifying values for margin...

    Why the "vertical-align" argument does not work in CSS?

    Alternatives?

    For your reading pleasure.

    http://phrogz.NET/CSS/vertical-align/index.html

    Gary

  • The onDeactivate event handler does not work in InDesign CC. Why?

    Hi guys.

    I'm working on a script in Javascript for InDesign CC.

    The big problem is that the onDeactivate event handler does not work.

    Here is an example that works in InDesign CSx, but not in InDesign CC:

    #target indesign
    var w = new Window ("dialog", "Test onDeactivate");
    var et_1 = w.add("edittext", [undefined, undefined, 300, 30], "Lorem ipsum");
    var et_2 = w.add("edittext", [undefined, undefined, 300, 30], "Dolor sit amet");
    var st = w.add("statictext", [undefined, undefined, 300, 30], "CONSOLE:\r\r", {multiline: true});
    et_1.onDeactivate = et_2.onDeactivate = function(){
         st.text = "CONSOLE: I left the field with this text:\r\t«" + this.text +"»"; }
    var b_ok = w.add("button", undefined, "OK");
    w.show();
    

    The script displays a dialog with text edit fields window 2: when a field loses focus (by clicking on the other), the "CONSOLE" shows the text of the old domain.

    Adobe, please, solve this problem as soon as possible.

    Thank you.

    Giorgio

    This is a bug, and it has been reported. Please report it to yourself, more the better reports. It's no good Adobe invite you in this forum to fix something.

    Peter

  • Firefox does not (Cup) of the lower edge and the right edge of the graph. IE10 does not work.

    Firefox does not (Cup) of the lower edge and the right edge of the graph. IE10 does not work.
    Office Windows 7 2009 service pack 1 Firefox 26 Internet Explorer 10
    Flash player version 11.9.900.170 plugin 11.9.900.170 activex version used by Firefox

    Problem began late November when Miniclip.com forced updated flash player to version above
    -C' was when they started to play a video advertising in the game box before you could start.

    Have screen shots of IE10 and Firefox26 side-by-side clearly showing the problem - how these can be downloaded for see you? E-mail? Web site? This place seems to be text only?

    In the meanwhile the grandchildren and self have learned to use IE10 instead of Firefox that we prefer.
    Their House of Windows XP has same Flash Player in Firefox and it works fine.

    Downloaded two screenshots on Media Gallery.

    You can not attach a screenshot in the first row who starts a thread, but you can do it in subsequent responses.

    Try disabling hardware acceleration in Firefox (you will need to close and restart Firefox).

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    See also:

    Reset the zoom of page on pages that are causing problems.

    • View > Zoom > reset (Ctrl + 0 (zero); 0 + Command on Mac)
  • Ejection of the Replicator Express - II does not work

    The duplicator button eject does not work. I have laptop series TECRA M. downloaded the driver for duplicator of toshiba website support and reinstalled but of no use. I searched in all the forums, but did not find any thread for this problem.

    If anyone has any idea on this issue, please help. The button eject everything does and do not see an option in Windows 7 to eject the PC I did with IBM lenovo laptop with a docking station.

    Is - this top hat of Toshiba laptop what do you use?
    I want to say I put t knowledge how it works on other laptops but why you think it should work in the same way on laptop, you used before?

    You can remove your Tecra of docking station using gear hand placed on the upper side right?
    What happens after doing this?

    By the way: If you check the specs of this under system requirements port replicator s Win7 are not.

  • How can I get the airplay icon to appear? Changing the settings of firewall does not work

    How can I get the airplay icon to appear? Changing the settings of firewall does not work

    Hello Drjoe378,

    I understand that you do not see the AirPlay icon in iTunes on your Mac. If you have verified that your firewall is disabled or that the problem occurs regardless of the status of your firewall, there is a little more that can help return your ability to connect to AirPlay devices.

    1. Make sure you have the latest version of iTunes and Apple TV software.
    2. Connect your computer and other devices on the same network Wi - Fi. If you are using Ethernet, connect the two devices on the same router or hub. If you use the Wi - Fi and Ethernet, plug your device AirPlay the same router that your computer uses for Wi - Fi.
    3. Restart your computer, device AirPlay and network router.
    4. Because some Airplay devices include a power switch for AirPlay option, look for the option in the settings and make sure that the feature is enabled. Refer to the user guide of the device for more information.

    Use AirPlay to stream content from iTunes on your computer wireless
    https://support.Apple.com/en-us/HT202809

    All my best.

  • "Play" button does not work on Satellite L500

    Hello

    The title says it all... My 'play' button does not work. All the other buttons on the Panel works... Like power, next song, previous and silent song.
    I use the Satellite L500-12th, I had for 3 years now with no problems until today.
    Can I do to solve this problem?

    Which player do you use? Maybe Windows media player?

Maybe you are looking for