Stream.play & Stream.get

The streamnames both for these, am I not able to define them in a varible loaded from a file?
internalstreamname = "foo";
application.myStream = Stream.get(internalstreamname);
This does not work.

internalstreamname2 = String(internalstreamname);
application.myStream = Stream.get(internalstreamname2);
This works.

Similar Messages

  • Access Log- Stream Play & Stream Stop

    Hello, I am new to Flash. I have recently installed FMIS 3.5.3. In checking the access logs I find data in both logs that display the same stream stop and stream play time . I'm not sure why the time is the same (00:19:27 example below). Videos play fine when testing from work (T3 connection). However, occasionally a very slight hesitation when playing video from home (I have cable connection).
    session    connect    2010-05-24    00:19:25    4576        3073    3073    -    -    -    -    200    -
    stream    play    2010-05-24    00:19:25    4576        3261    3476    lets_drive/rules/Epilogue-Making_an_Appointment    0    15042753    85.681000    200    -
    stream    stop    2010-05-24    00:19:27    4576        3346    500157    lets_drive/rules/Epilogue-Making_an_Appointment    521770    15042753    85.681000    200    -
    stream    play    2010-05-24    00:19:27    4576        3346    500157    lets_drive/rules/Epilogue-Making_an_Appointment    0    15042753    85.681000    200    -
    stream    stop    2010-05-24    00:19:27    4576        3346    527594    lets_drive/rules/Epilogue-Making_an_Appointment    1512    15042753    85.681000    200    -
    stream    play    2010-05-24    00:19:27    4576        3431    527846    lets_drive/rules/Epilogue-Making_an_Appointment    0    15042753    85.681000    200    -
    stream    stop    2010-05-24    00:19:27    4576        3516    654052    lets_drive/rules/Epilogue-Making_an_Appointment    139832    15042753    85.681000    200    -
    stream    play    2010-05-24    00:19:27    4576        3516    654052    lets_drive/rules/Epilogue-Making_an_Appointment    0    15042753    85.681000    200
    Thanks for reviewing and assistance.

    Thanks for the reply Mamata,
    I am using the VOD service to stream videos. I found some code on the adobe site (http://www.adobe.com/devnet/flash/articles/video_playlist.html) to work with playlist. I also use this code for launching individual movies (no playlist displayed). This playlist application uses a custom-made player.
    I observed a video play without any problems (no hesitation) and then checked the access log:
    session     connect     2010-05-24     12:24:42     3052          3073     3073     -      -     -     -     200     -
    stream     play     2010-05-24     12:24:42     3052          3295     3476     media_even t/Sharing_the_Road_with_Motorcycles_Bicycles_500_2pass     0     38782649     343.248000      200     -
    stream     stop     2010-05-24     12:24:42     3052          3397     211301     media_ev ent/Sharing_the_Road_with_Motorcycles_Bicycles_500_2pass     206987     38782649     343.2 48000     200     -
    stream     play     2010-05-24     12:24:42     3052          3397     211301     media_ev ent/Sharing_the_Road_with_Motorcycles_Bicycles_500_2pass     0     38782649     343.248000      200     -
    stream     stop     2010-05-24     12:24:42     3052          3397     217913     media_ev ent/Sharing_the_Road_with_Motorcycles_Bicycles_500_2pass     6368     38782649     343.248 000     200     -
    stream     play     2010-05-24     12:24:42     3052          3499     218199     media_ev ent/Sharing_the_Road_with_Motorcycles_Bicycles_500_2pass     0     38782649     343.248000      200     -
    Thanks,
    Frank

  • Play Streaming Audio

    I'm busy designing an app to play audio from a link. The audio is being streamed by a Shoutcast server. The link I have been given is 'http://live.rmr.ru.ac.za'. I've got the following code so far:
        // Read sampled audio data from the specified URL and play it
        private void streamSampledAudio(URL url)
            throws IOException, UnsupportedAudioFileException,
                   LineUnavailableException
            ain = null;  // We read audio data from here
            SourceDataLine line = null;   // And write it here.
            try {
                // Get an audio input stream from the URL
                ain=AudioSystem.getAudioInputStream(url);
                // Get information about the format of the stream
                AudioFormat format = ain.getFormat( );
                DataLine.Info info=new DataLine.Info(SourceDataLine.class,format);
                // If the format is not supported directly (i.e. if it is not PCM
                // encoded), then try to transcode it to PCM.
                if (!AudioSystem.isLineSupported(info)) {
                    // This is the PCM format we want to transcode to.
                    // The parameters here are audio format details that you
                    // shouldn't need to understand for casual use.
                    AudioFormat pcm =
                        new AudioFormat(format.getSampleRate( ), 16,
                                        format.getChannels( ), true, false);
                    // Get a wrapper stream around the input stream that does the
                    // transcoding for us.
                    ain = AudioSystem.getAudioInputStream(pcm, ain);
                    // Update the format and info variables for the transcoded data
                    format = ain.getFormat( );
                    info = new DataLine.Info(SourceDataLine.class, format);
                // Open the line through which we'll play the streaming audio.
                line = (SourceDataLine) AudioSystem.getLine(info);
                line.open(format); 
                // Allocate a buffer for reading from the input stream and writing
                // to the line.  Make it large enough to hold 4k audio frames.
                // Note that the SourceDataLine also has its own internal buffer.
                int framesize = format.getFrameSize( );
                byte[] buffer = new byte[4 * 1024 * framesize]; // the buffer
                int numbytes = 0;                               // how many bytes
                // We haven't started the line yet.
                boolean started = false;
                for(;;) {  // We'll exit the loop when we reach the end of stream
                    // First, read some bytes from the input stream.
                    int bytesread=ain.read(buffer,numbytes,buffer.length-numbytes);
                    // If there were no more bytes to read, we're done.
                    if (bytesread == -1) break;
                    numbytes += bytesread;
                    // Now that we've got some audio data to write to the line,
                    // start the line, so it will play that data as we write it.
                    if (!started) {
                        line.start( );
                        started = true;
                    // We must write bytes to the line in an integer multiple of
                    // the framesize.  So figure out how many bytes we'll write.
                    int bytestowrite = (numbytes/framesize)*framesize;
                    // Now write the bytes. The line will buffer them and play
                    // them. This call will block until all bytes are written.
                    line.write(buffer, 0, bytestowrite);
                    // If we didn't have an integer multiple of the frame size,
                    // then copy the remaining bytes to the start of the buffer.
                    int remaining = numbytes - bytestowrite;
                    if (remaining == 0)
                        System.arraycopy(buffer,bytestowrite,buffer,0,remaining);
                    numbytes = remaining;
                // Now block until all buffered sound finishes playing.
                line.drain( );
            finally { // Always relinquish the resources we use
                if (line != null) line.close( );
                if (ain != null) ain.close( );
        }Although I get an UnsupportedAudioFileException when using the link above.
    Please can someone point me in the right direction on how to play streaming audio?

    Please can I refer you to this thread.
    I'm struggling like you can't believe to do something which I thought would be quite simple.

  • How to know the status of stream played using NetStream.Play method ?

    I am playing stream data published by third party server
    similar to FCS by creating NetStream object and calling Play method
    on it. Now the problem is, sometimes I am not able to view the
    published stream by playing it using Play method. Also it does not
    call OnStatus method of NetSteam. How can I know the status(or
    result) of Play method ?
    Note: NetConnection gets created successfully. I get status
    of NetStream.Play.Start / Stop when I put local flv as a first
    parameter to Play method

    Hi
    There are SQL reports in the following zip which has SQLDeveloper reports for runtime objects such as mappings and process flows;
    http://www.oracle.com/technology/products/warehouse/htdocs/Experts/owb_sqldeveloper.zip
    Cheers
    David

  • Failed to play (stream ID: 1).

    Hi all, I'm trying to simply stream audio from a FCS using
    akamai, I can give you the stream if necessary, but for now I'd
    prefer to keep it private. I can connect
    (NetConnection.Connect.Success), but the net stream then fails.
    // CODE
    nc = new NetConnection();
    nc.onStatus = function(oInfo:Object):Void {
    trace("> nc status > " + oInfo.code);
    trace("The connection code is: " + oInfo.code);
    nc.connect("rtmp-stream-here");
    ns = new NetStream(nc);
    ns.onStatus = function(oInfo:Object):Void {
    trace("> ns status > " + oInfo.code);
    trace(">> " + oInfo.description);
    ns.setBufferTime(1)
    ns.play("test");
    // OUTPUT
    > nc status > NetConnection.Connect.Success
    The connection code is: NetConnection.Connect.Success
    > ns status > NetStream.Failed
    >> Failed to play (stream ID: 1).
    Does anyone know why I'm getting the: Failed to Play (Stream:
    1).

    Hi John,
    Form the description of your issue (and from a short investigation) I can deduce that your assets do not have synchronized keyframes. Please try to re-encode them and force a fixed keyframe interval.
    Since the switch can be done on keyframe only, and if you do not have a keyframe in the second stream at that position, the playback will stop with an error.
    S.

  • Playing streaming video

    Can you play streaming video or is there the possibilty of an update that will allow you to play streaming video from a web site?

    Sorry for not posting the solution guys. Here it is.
    Follow the link in the error message we get when we try to watch the sportsline video without the necessary plug-in.
    http://kb.mozillazine.org/WindowsMedia_Player#Missingplugin
    Then scroll to the bottom of the page and you'll see a bunch of links to plug-ins for Mac users. I don't remember which one I clicked on, but I know it was pretty easy to figure out, given the fact that I did. Good luck. I hope this helps.

  • Playing streaming content

    Hello, from Holland,
    Since I updated iMac system to MacOS X 10.6.2 (Snow Leopard) I am not be able to play streaming content anymore. When I double-click the "Keynote from Steve Jobs" on the Apple-site, all I get is a black screen with in the middle some buttons to press and the message "Loading"' or "Looking for connection". That all I get.
    Apperently the Quicktime player can't find the "streaming content.
    Please tell me what's wrong and how to fix it.
    Thank you for the assistance.
    daans

    got to adobes web site and get the latest flash player update.
    If you did an easy install of SL (as opposed to a custom), you may not have QT7 installed.
    Go back and install that, too.
    Then go get Perian, and install it.
    That should cover most every type of streaming media you will run across.

  • Is there a way to play streaming wmv on iPad through safari?

    Is there a way to play streaming wmv on iPad through safari?

    No. WMV is a proprietary Microsoft video container and there is no native support for it in iOS.
    There are third-party apps on the AppStore that claim to be able to do this, but not through Safari.

  • I can no longer edit information for streaming files in Get Info.

    I can no longer edit information for streaming files in Get Info.

    Similar problem here. My Ical refuses to edit or delete events. Viewing is possible, though sometimes the whole screen turns grey. Adding new events from mail is still possible. The task-pane completely disappeared. My local apple technic-centre messed about with disk utility for a bit and than told me to reinstall leopard. I could of course do that, but it seems to me that reinstalling Leopard just to fix iCal events is a bit invasive.
    I tried also tried removing everything, installing a new copy of iCal from the leopard-cd, software updates, all to no avail.
    At the moment I'm open to all suggestions that do not include a complete leopard reinstall.

  • TS2988 Iphone 3gs will no longer play streaming music though usb after i0s 5.0 update. Aux still works normally.

    i phone will not play streaming music through usb after ios 5.0 update. updated to 5.1.1 did not not correct problem.

    i phone will not play streaming music through usb after ios 5.0 update. updated to 5.1.1 did not not correct problem.

  • Safari not playing streaming video

    Hi,
    For some reason safari 4.3 is not playing streaming video such as that shown on CNN. Also, my Macbook is not playing streaming audio. If any of you folks can help with an answer I'd appreciate the help. I am using 10.61 on both machines.
    Thanks
    Jack

    http://flip4mac.com
    Look for the "beta" version for Snow Leopard.

  • Safari 5 not playing streaming video

    I updated to Safari 5 a couple days after it was released. Just today, it has stopped playing streaming content, such as videos from hulu. The only suggestion I found was to change the User Agent to Safari 4.1, but this didn't help. Any suggestions?

    Have you tried resetting Safari? If that does not work try creating a new user account and test Safari with the new account. If the new account works it is possible that one of Safari's plist files is corrupt in your main user account.

  • Need help - chronic freezeups when playing streaming flashplayer videos.:

    I am having a chronic problem with repeated freezeups of flashplayer videos that are being streamed online where the video repeatedly and randomly locks up for a moment, and then jumps forward to catch up to where it's supposed to be again and again, with no regularity or pattern to it at all.  It doesn't matter which video it is; it doesn't matter where along a video's playback it is; it doesn't matter which website it is.  This problem happens at any time of day, and every single day, at random, regardless.  I've tried everything including reinstalling my Windows 8.1 64-bit operating system from scratch, and then trying streaming flashplayer videos before reinstalling any other software again first - no help.  I tried streaming in Safe Mode; disabling all browser addons; disabling all startup executables; disabling my internet protection software entirely, each in turn - no help.  I always keep Flashplayer, Shockwave player, and Adobe Reader up to date, along with the rest of my PC via Microsoft Windows Update, and any other updates that apply, but I even tried older versions of drivers as well as the very newest ones - no help.  I tried streaming using different video cards - no help.  I tried using an ethernet connection and then a wireless one, separately in turn, as well as connecting to a different network - no help.  I also have Mozilla's Firefox browser installed and fully up to date - the exact same random, constant freezeup problem streaming flashplayer videos happens when using it as when using Internet Explorer.  These freezeups act like the incoming internet stream's feed runs ahead of flashplayer's memory management (rendering?) of it, causing these momentary freezeups while flashplayer buffers, and then jumps forward to catch up again each time.  Please contact me back and provide a corrected update(s) of flashplayer to download so as to play streaming flashplayer videos without this ongoing conflict.  Please note that video files that are downloaded/installed on my hard drive do NOT have playback problems of any kind.  This is only an online streaming problem with flashplayer.  Thank you.

    I am having a chronic problem with repeated freezeups of flashplayer videos that are being streamed online where the video repeatedly and randomly locks up for a moment, and then jumps forward to catch up to where it's supposed to be again and again, with no regularity or pattern to it at all.  It doesn't matter which video it is; it doesn't matter where along a video's playback it is; it doesn't matter which website it is.  This problem happens at any time of day, and every single day, at random, regardless.  I've tried everything including reinstalling my Windows 8.1 64-bit operating system from scratch, and then trying streaming flashplayer videos before reinstalling any other software again first - no help.  I tried streaming in Safe Mode; disabling all browser addons; disabling all startup executables; disabling my internet protection software entirely, each in turn - no help.  I always keep Flashplayer, Shockwave player, and Adobe Reader up to date, along with the rest of my PC via Microsoft Windows Update, and any other updates that apply, but I even tried older versions of drivers as well as the very newest ones - no help.  I tried streaming using different video cards - no help.  I tried using an ethernet connection and then a wireless one, separately in turn, as well as connecting to a different network - no help.  I also have Mozilla's Firefox browser installed and fully up to date - the exact same random, constant freezeup problem streaming flashplayer videos happens when using it as when using Internet Explorer.  These freezeups act like the incoming internet stream's feed runs ahead of flashplayer's memory management (rendering?) of it, causing these momentary freezeups while flashplayer buffers, and then jumps forward to catch up again each time.  Please contact me back and provide a corrected update(s) of flashplayer to download so as to play streaming flashplayer videos without this ongoing conflict.  Please note that video files that are downloaded/installed on my hard drive do NOT have playback problems of any kind.  This is only an online streaming problem with flashplayer.  Thank you.

  • I have problem with playing stream  fullscreen. it goes black but with sound

    i have problem with playing stream fullscreen. it goes black but with sound. i have to wait 10-15 minutes then i can press fullscreen. what to do?
    s

    Thanks!! but i been fixing now for 10 minute ago by restart my macbook pro. My case is it show normal with Intenal-speakers and nothing mark with red light or mult so i tried to restart that it working again

  • Droid Razr Bug.  Won't play streaming audio from websites.

    My Droid Razr won't play streamed audio from a website and won't play .wav files attached to e-mails.  That's annoying.  
    Motorola tech support said problem will be fixed upon next upgrade of Android OS.  
    My phone is currently running Android OS 2.3.5.  
    Does anyone now of a quicker fix?
    Does anyone know when an OS upgrade will be available for the Droid Razr?
    Thx!

    i got the same issue on my ipod. i figured the whole idea of converting the format would solve the issue. never really found out how to solve it. i'll be watching this post to see if anyone has a solve for this issue.

Maybe you are looking for