Have 5 hd tvs, need to stream audio/video to tvs.  Thinking of using AppleTV..

My wife is opening a pediatric dental office.  We are placing LCD TVs above each chair for kids to watch TV during their visit.
I will have 5 TVs over 5 chairs.  Nothing more than power to the TV is hardwired.
Questions:
Using AppleTV can I use the same Apple Username/ID for all AppleTV units?
Can I use the same Netflix ID on multiple AppleTV units?
Can multiple AppleTV units stream from one Airport?
Is there any other questions I should be asking?
Thanks!!

gp2 wrote:
My thought is to have a wireless N network dedicated to the ATVs.  Basically there would be 5 ATVs and one beefy machine with ITunes and Movies purchased to support them.  I cant imagine 5 ATVs streaming would put a dent in a dedicated N wireless network.
Should be ok in theory but in practice you''l only know when you try.
I was curious about the need for Internet connectivity, seems that is a must.
If it's copy protected material, then yes.
My thought with the external drive was to download the movie files to 5 drives and connect each to an ATV.  This would eliminate the machine and wireless network cost.  BUT it seems that this is not supported...
Correct, not supported.

Similar Messages

  • Streaming audio-video on the mobile device

    Please, I must do the streaming audio-video on the mobile device using a server standard.
    I must to program the application for the server using j2se:in this case how i can send the file audio/video?This file have specifies classes?
    For the client i must using the j2me:in this case how can receive the file audio and creating the player?
    Thanks.

    Hi, please help,
    I have problem in this area also,
    am intending to stream audio and video data to mobile phone using j2me for my bs project.,
    is that true, midlets can only 'plays back' one file at time specified by url?
    I want to store many files in database( e.g ms access), and call them to midlets, to make some how interactive and real,because i have tomcat server installed in my pc.
    is this possible?
    How can i call file stored beyond path of WTK ?
    can i store audio/ video file in ms- access?
    Please, please help !
    thanks in advance.
    Message was edited by:
    nbkamani

  • How to stream audio / video in java?

    Hello.
    I would live to develop a java application (JavaEE, with tomcat or JBoss) that could stream audio / video over the Internet, on a controlled matter.
    First, I would have to embed a flash player, correct? Need suggestions on one, paied or free.
    My questions are: How can I have the flash player stream audio to users by downloading it from a java app server, if the user has a session and is logged in, etc? (picture myspace here)
    Also, how do I measure network traffic in Java? (The flash player of each user will stream the songs, I'd like to know how much bandwith is going around).
    The reason that I'm asking this here is because I have no idea of which forum to ask this.
    I have been a Java app developper for the past five years, so coding won't be a problem, I just don't know which API / Frameworks to turn to.
    Thanks for all your help.
    Regard,
    Carlos.

    ragedd wrote:
    First, I would have to embed a flash player, correct?No. You're just taking ideas from other popular streaming sites. It's certainly not a requirement.
    My questions are: How can I have the flash player stream audio to users by downloading it from a java app server, if the user has a session and is logged in, etc? (picture myspace here)The same way you would authenticate any website. Usually a database and a challenge/response. If they're not logged in, then instead of writing out the content, write out a 403 status code (or do something more graceful, such as redirect them to the login page).
    Also, how do I measure network traffic in Java? (The flash player of each user will stream the songs, I'd like to know how much bandwith is going around).Just keep track of how much data you send to the OutputStream.

  • Use FMS & Actionscript to Stream Audio/Video and control (powerpoint) slides

    Hi there,
    My compnay provides webcasting services to numerous clients, and we currently use Windows Media Encoder as our base software for these projects.
    However, I'm interested in switching to Flash Media Server, but need to figure out one issue and how to implement it in such a way like how we are currently using Windows Media Encoder.
    We need a way to stream out a live audio/video feed AND have a way to control a presenter's POWERPOINT slides and have them advance by our command when streaming live.
    Basically, the way we do it is we will stream out audio/video from WME and also use the encoder's SCRIPTING functions to send out a "url"  from the encoder to the actual page in which the viewer is watching the live embedded stream.  On that page is an embeded/internal frame which we can specify (using the id/name) that the url gets loaded, and this actually advances the slides (or more so pulls up a pre-created html page of the next slide in the person's powerpoint, which is actually a screenshot or exported image of that slide and embedded within a specific HTML file and hosted on the same server as the embedded player/html file)
    Would there be a way to send out this same type of script using FMS?   I've been playing around with it and notice the interface itself does not have a built in scripting function like Windows Media Encoder does. However, I did read somewhere that it supports ActionScript... but I have no clue how to implement this feature.
    I am just curious how it might be able to go about doing this?  Is there a way to use an [action]script with FMS and have it send out a URL to a specific frameset embedded on the same page as the Flash Media Encoder Playback?
    Hopefully this make sense and that someone can point me in the right direction.  Switching to FMS over Windows Media Encoder is the way I would love to go, just need to figure out how this could be done.
    Would a better method be converting the powerpoint slides to a swf or flv file, embedding that file within the same page as the FMS playback, and somehow using a script to "advance" the frames/slides/scenes within that file?
    I also heard something about Flash "Shared Objects" and how this could be a way of controlling a swf file remotely.....
    Could anyone give me some advice and know a method that I could use to achieve this type of implementation?
    Any help is GREATLY appreciated!   Thanks!

    FMS (the interactive version, FMIS) has complete scripting support.
    What you want to do can be done with FMS, and there are a lot of ways you can approach it. Converting to .swf can be helpful, as it means you have a single resource to load rather than a bunch of individual slide images (the flashplayer can load .swf, jpg, gif, png). Rather than embedding, I'd opt to make it an external resource and load it at runtime... that would keep the player application reusable.
    To get an idea of how to use server side actionscript, see the getting started portion of the FMS 3.5 dev docs
    http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/
    Then, see the SSAS docs for the following classes in particular:
    The Client class for Client.call()
    The Stream class for Stream.send()
    The Shared object class
    The Application class for BroadcastMsg()
    The docs give some general overview for the usage of each. The best choice really depends on your deployment architecture and scalability requirements.

  • How to  stream audio/video to real Audio Player

    Hello
    I am planning on doing a project on streaming audio/video onto Real Audio Player . I am very new to JMF . I would appreciate some pointers on how to start off. I ahve read the documents but am not able to get started right .
    I wanted to know the following :
    1. Isnt the RTP streaming streaming for live audio or video ? If I want to stream something which I have stored in my local machine then how do i do it - do i need to use RTP ?
    2. I undertsand that if i need to stream the audio/video file I need to convert it to a format the Real Audio Player supports. How do i go about that ?
    Any help would be greatly appreciated!!!
    Thanks in advance
    Shailaja

    JMF doesn't have any support for Real media. Real has gone open source with their Helix Community, so maybe you could find some useful information there: http://www.helixcommunity.org

  • Streaming Audio/Video/Pictures to Apple TV2

    I just updated my iPhone 4 to iOS 4.2.1 and have ordered an Apple TV2. Can or will the phone stream audio/video and pictures directly to the ATV2 or do I have to set the ATV2 up with my wifi router? I just downloaded the ATV2 manual, it doesn't say that the phone will stream directly to the ATV2. It does show how to connect with a wifi router though.
    Thanks,

    The 5er Driver wrote:
    Thanks for the info guys. If video and/or pictures are moved from the Camera Roll to the Photo app they should stream with AirPlay then, correct?
    photos can be streamed whilst in the camera roll.
    videos would need to be in the ipod section (ie like a movie or tv show).

  • Can I stream live video from mobile to fms using flashlite?

    Can I stream live video from mobile to fms using flashlite?
    I Know flash lite 4 also not access the mobile camera.  But, I need to develop a application it captures the mobile camera and stream the vedio to fms server and display the live event to other mobile users.
    Is it possible? 
    If possible what are the technologies i can use?
    Thanks for the help in adavance
    Prasad

    i have made a few test with Flash Lite 3.0 and Flash Media Server 3  and I have to say that it is pretty easy to stream FLV Video files and  Live Video from local web camera to mobile phone. Here are a quick  instructions how to do it in Windows (I will publish Linux version  later).
    Play FLV-video from Flash Media Server 3:
    Install Flash Media Server 3 (download developer version)
    There are a few sample FLV files in applications/vod/media folder, so you can use one of them for testing
    Create a new Flash Lite 3.0 file in Flash
    Add a new Video symbol to library
    Drag this Video symbol to Stage and give instance name to it: video
    Type following programming to timeline:
    // make a new video-object
    var video:Video;
    // make a new NetConnection-object
    var nc:NetConnection = new NetConnection();
    // check connection status from server
    nc.onStatus = function(info:Object):Void {
      status_txt.text=info.code;
      if (info.code == "NetConnection.Connect.Success") {
        startStreaming();
    // start streaming video to phone
    function startStreaming() {
      ns = new NetStream(nc);
      ns.setBufferTime(5);
      video.attachVideo(ns);
      // play sample.flv from server
      ns.play("sample",0);
    // show info to user
    status_txt.text = "Connecting server...";
    // connect FMS 3 video on demand service (default port 1935)
    nc.connect("rtmp://your.server.ip.here:1935/vod");
    Go to Publish Settings...
    Set Local playback security: Access network only
    Publish your SWF-file
    Send your SWF-file to your phone
    Test and you should see FLV-video playing in your phone
    Play live video from Flash Media Server 3:
    Install Flash Media Server 3 (download developer version)
    Install Flash Media Encoder 2 (Windows only)
    Start Flash Media Encoder 2
    You should see your live camera in Input screen
    Press Start-button to start sending live video to Flash Media Server 3
    Create a new Flash Lite 3.0 file in Flash
    Add Video symbol and programming as you did earlier
    Modify your programming:
    // in startStreaming()-function
    // Flash Media Encoder 2 publish stream name is "livestream"
    ns.play("livestream",-1,-1,true);
    // start connection to Flash Media Server 3
    // Flash Media Encoder 2 publishes Flash Media Server's default
    // live publishing point, so connect it
    nc.connect("rtmp://your.server.ip.here:1935/live");
    Publish, test and enjoy
    box office movies

  • Stream audio & video from my MacBook Pro to my HDTV

    What components do I need to stream video from my Mac Book Pro to HD TV.  I have wireless access throughout my home.

    One common way is to use a DNLA server and client. Some TVs are internet-capable and have the ability to receive media streamed on a local network. If not, you will need a device attached to your TV which acts as the DNLA client - such as a PlayStation 3 or Boxee.
    You still need server software running on your Mac, though - look into Twonkyserver and TVMobili. Some network drives will also act as a DNLA server, so you can store your media there and not have to keep your Mac open and running.
    Matt

  • Streaming audio/video issues

    When I attempt to play video (Hulu, YouTube, Netflix) or audio, my IPhone 5c goes into this continuous buffer mode. How can I get audio/ video to stream again?

    You are joking right? establish an ethernet connection?
    We try not to joke on the forums. If you are using 802.11n 5 GHz, that might do it if the Blu-Ray player and Time Capsule have close to a line-of-sight relationship. If 5 GHz won't do what you want, that tells you that the connection has insufficient bandwidth to provide the connection quality that you need.
    If you are using regular "n" wireless at 2.4 GHz, ethernet will have about 8 times the bandwidth capability than wireless. Using 5 GHz, ethernet will have 3 times the bandwidth of wireless.
    You may not want to consider ethernet, but it's hard to argue with physics. I've tried to stream high definition sources over a very good wireless network, but have not found a way to do this and obtain the performance that I want. But, perhaps another user has found the answer and will post to tell us about his workaround. I will be watching this thread.

  • Unwanted synchronization when streaming audio&video

    hi,
    i'm streaming audio and video, both of which are created with separate Processors. i'm playing them back on the client's side with separate players on separate ports. despite all this, when i pause the audio, the video pauses too!
    any suggestions?
    Thanks in advance :O)

    This is suposed to happen if the streams received have the same CName. I guess if you are able to send two different streams with 2 different CNames they won't synchronize. But I still don't know how to do that... :)
    Also, less useful but still a fact, if you receive the streams in two different VM's that won't happen either... :)
    Bira

  • Streaming Audio/Video Won't Play!

    Ok, I've had this dilemma for quite a while and I notice that it happens in every browser I use on my iBook. I want to listen to some streaming audio or watch streaming video and everytime it attempts to load I get a pop up saying "Cannot play back the file. The file format is invalid" This just happens usually when the streaming is Windows Media..is my Windows Media player not functioning correctly? What's going on? Any help would be appreciated. THANK YOU!

    From a Microsoft Bulletin:
    Cannot play back file. The file format is invalid.
    In some cases, you might be able to play the file in Microsoft Windows Media Player on a Microsoft Windows-based computer, but not on a Macintosh. This occurs because Windows Media Player for Mac is parses .asx files more strictly.
    This issue may occur if the .asx file contains an error, or if there is an error in the HTML coding of a Web page that contains an embedded Windows Media file.
    To resolve this issue, test to determine if Window Media Player can play other .asx files. If it can, contact the owner of the Web site to have the owner troubleshoot the .asx file.

  • Live streaming audio/video

    I'm looking for advice on how to stream live video, full
    screen at high quality 640x480 30 fps. I need to be able to carry
    on a teleconference between two instances of the program, but also
    support 640x480 at 30 fps. What programs might be needed (encoder?,
    server?)

    Hi tony45371,
    The replies from in2mobile are 100% correct.
    For live video, some server is required. Flash Media Server
    is the required server offered by Adobe (there are competitors
    including open source competitors to Flash Media Server). Also an
    alternative to putting up your own Flash Media Server, may CDNs
    offer Flash Media Server services. You can find a list of CDN
    partners here:
    http://www.adobe.com/products/flashmediaserver/fmsp/
    Are your live events webcasts (e.g. 1 presenter, w/ many
    attendees)? Or 2-way (e.g. multiple presenters)?
    I assume that you require 2-way since your post said "I need
    to be able to carry on a teleconference between two instances of
    the program".
    Following below are links into the browsable version of the
    product documentation (adobe.com/livedocs). Easier to read PDF
    versions can be downloaded here:
    Flash Media Server Developer Guide
    http://livedocs.adobe.com/flashmediaserver/3.0/hpdocs/flashmediaserver_dev_guide.pdf
    All Flash Media Server Documentation
    http://www.adobe.com/support/documentation/en/flashmediaserver/
    2-WAY VIDEO CONFERENCE
    For 2-way you can find a related sample application (with
    explanation and downloadable source code) here:
    Video Conference with Flex & FMS
    http://renaun.com/blog/2006/11/08/147/
    Video Conference with Flex & FMS, Live Demo and Source
    Code
    http://renaun.com/blog/2006/10/28/139/
    You can also find additional code examples in the Flash Media
    Server product documentation here:
    http://www.adobe.com/livedocs/flashmediaserver/3.0/hpdocs/00000082.html
    (Above link, in the PDF version, is in Chapter 4: Developing
    live video applications)
    1-WAY WEBCASTS
    For live webcast events, Flash Media Server includes a free
    companion program "Flash Media Live Encoder 2.5" (aka FMLE). FMLE
    offers higher quality video (H.264 & VP6), and audio (MP3 and
    with a 3rd party plug-in AAC). Details on FMLE here:
    http://www.adobe.com/products/flashmediaserver/flashmediaencoder/
    Following is a link into the product documentation on using
    FMLE 2.5 w/ FMS3:
    Using the live service
    http://www.adobe.com/livedocs/flashmediaserver/3.0/hpdocs/00000031.html
    (Above link, in the PDF version, is in Chapter 2: Streaming
    services)
    You can also find an article written against the older Flash
    Media Server 2 with an earlier version of FMLE here:
    http://www.adobe.com/devnet/flashmediaserver/articles/webcasting_fme.html
    Please post back regarding whether the above answers your
    question, and if you find it helpful :-)
    Best regards,
    g

  • I am new and need help --- Streaming live video

    Hello,
    I am attempting to stream live video from my Trendnet TV-IP 201 cameras through my web site. We have been able to embed the xplug.class applet into the page, but we can not remove the controls. If someone has any knowledge on this, please help us out. Thanks in advance for the help.
    Edited by: bill23stevens on Oct 15, 2007 11:28 AM

    I have the same problem, need to show and capture the video from Trendnet IP-camera and the same xplug.jar that sits in the camera is decompiled here:
    // Decompiled by DJ v3.9.9.91 Copyright 2005 Atanas Neshkov  Date: 17.12.2007 11:20:28
    // Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
    // Decompiler options: packimports(3)
    // Source File Name:   xplug.java
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.Properties;
    import javax.sound.sampled.*;
    import javax.swing.JFileChooser;
    import javax.swing.JOptionPane;
    public class xplug extends Applet
        implements ItemListener, ActionListener, Runnable
        class TStreaming
            public void seturl(String s, String s1)
                try
                    if(s.indexOf(":") > 0)
                        m_urlRemoteHost = new URL("http://" + s);
                    else
                        m_urlRemoteHost = new URL("http://" + s + ":" + s1);
                catch(MalformedURLException malformedurlexception)
                    System.err.println("MalformedURLException : " + malformedurlexception);
            public void init(xplug xplug1)
                m_urlRemoteHost = xplug1.getCodeBase();
                m_sRemoteHost = m_urlRemoteHost.getHost();
                if(m_urlRemoteHost.getPort() <= 0)
                    m_iRemotePort = new Integer(80);
                else
                    m_iRemotePort = new Integer(m_urlRemoteHost.getPort());
                m_iTimeout = Integer.valueOf(xplug1.getParameter("Timeout"));
            public void init(String s, String s1, int i)
                m_iRemotePort = new Integer(s1);
                m_sRemoteHost = s;
                m_iTimeout = new Integer(i);
            public boolean InitRequest(String s)
                if(s.equals("/goform/video2"))
                    m_stream_type = 1;
                else
                if(s.equals("/goform/audio2"))
                    m_stream_type = 2;
                else
                    return false;
                m_sRequest = "";
                m_sRequest = m_sRequest + "GET " + s + " HTTP/1.0\r\n";
                m_sRequest = m_sRequest + "User-Agent: java-mobile\r\n";
                m_sRequest = m_sRequest + "Authorization: Basic " + xplug.DeviceSerialNo + "\r\n";
                m_sRequest = m_sRequest + "\r\n";
                m_bIsConnect = false;
                return true;
            public boolean OpenSession()
                try
                    m_sktClient = new Socket(m_sRemoteHost, m_iRemotePort.intValue());
                    m_sktClient.setSoTimeout(m_iTimeout.intValue());
                    m_Input = new DataInputStream(m_sktClient.getInputStream());
                    m_Output = new DataOutputStream(m_sktClient.getOutputStream());
                    m_bIsConnect = true;
                catch(IOException ioexception)
                    m_bIsConnect = false;
                return m_bIsConnect;
            public void CloseSession()
                try
                    m_Input.close();
                    m_Output.close();
                    m_sktClient.close();
                    m_bIsConnect = false;
                catch(Exception exception) { }
            public boolean SendRequest()
                try
                    if(m_numsend < 3)
                        m_Output.write(m_sRequest.getBytes(m_charset));
                        m_numsend++;
                catch(Exception exception)
                    System.err.println("<err>:SendRequest =" + exception);
                    return false;
                return true;
            public int subParameter(String s)
                String s1 = s;
                int k1 = 0;
                String s8 = "\r\n\r\n";
                String s9 = "\r\n";
                String s10 = "";
                String s11 = "";
                String s13 = "";
                do
                    int j1 = s1.indexOf(s8);
                    int i1 = s1.indexOf(s9);
                    if(j1 == i1)
                        String s2 = s1.substring(0, i1);
                        int i = s2.indexOf(":");
                        if(i > 0)
                            String s4 = s2.substring(0, i).toLowerCase();
                            String s6;
                            if(s4.compareTo("content-type") == 0)
                                s6 = s2.substring(i + 1, i1).trim();
                            else
                            if(s4.compareTo("content-length") == 0)
                                String s15 = s2.substring(i + 1, i1).trim();
                                Integer integer2 = new Integer(Integer.parseInt(s15));
                                m_len = integer2.intValue();
                        } else
                        if(s2.indexOf("HTTP") >= 0)
                            int j = s2.indexOf(" ");
                            s2 = s2.substring(j + 1, i1);
                            j = s2.indexOf(" ");
                            s2 = s2.substring(0, j);
                            Integer integer = new Integer(Integer.parseInt(s2));
                            k1 = integer.intValue();
                        break;
                    String s3 = s1.substring(0, i1);
                    int k = s3.indexOf(":");
                    if(k > 0)
                        String s5 = s3.substring(0, k).toLowerCase();
                        String s7;
                        if(s5.compareTo("content-type") == 0)
                            s7 = s3.substring(k + 1, i1).trim();
                        else
                        if(s5.compareTo("content-length") == 0)
                            String s16 = s3.substring(k + 1, i1).trim();
                            Integer integer3 = new Integer(Integer.parseInt(s16));
                            m_len = integer3.intValue();
                        } else
                        if(s5.compareTo("time") == 0)
                            s10 = s3.substring(k + 1, i1).trim();
                        else
                        if(s5.compareTo("usec") == 0)
                            String s12 = s3.substring(k + 1, i1).trim();
                            if(s12.length() < 6)
                                s12 = "0" + s12;
                            Long long1 = new Long(Long.parseLong(s10 + s12));
                            Date date = new Date(long1.longValue() / 1000L);
                            m_sDate = df.format(date);
                        } else
                        if(s5.compareTo("userdata") == 0)
                            String s14 = s3.substring(k + 1, i1).trim();
                            try
                                m_sStatus = Long.decode(s14).longValue();
                            catch(NumberFormatException numberformatexception)
                                System.err.println("m_sStatus decode failed");
                    } else
                    if(s3.indexOf("HTTP") >= 0)
                        int l = s3.indexOf(" ");
                        s3 = s3.substring(l + 1, i1);
                        l = s3.indexOf(" ");
                        s3 = s3.substring(0, l);
                        Integer integer1 = new Integer(Integer.parseInt(s3));
                        k1 = integer1.intValue();
                    s1 = s1.substring(i1 + 2, s1.length());
                } while(true);
                return k1;
            public int ParseHttp()
                int j;
    label0:
                    j = 0;
                    int k = 0;
                    String s = "\r\n\r\n";
                    String s1 = "\r\n";
                    StringBuffer stringbuffer = new StringBuffer("");
                    try
                        do
                            int i;
                            if((i = m_Input.read()) != -1)
                                k = 0;
                                stringbuffer.append((char)i);
                                continue;
                            if(k > 10)
                                j = subParameter(stringbuffer.toString());
                                System.err.println("<err>: ParseHttp Retry j>10 ret=" + j);
                                break label0;
                            Thread.currentThread();
                            Thread.sleep(50L);
                            k++;
                        } while(stringbuffer.toString().indexOf(s) <= 0);
                        j = subParameter(stringbuffer.toString());
                    catch(Exception exception)
                        System.err.println("<err>: ParseHttp error " + exception);
                        m_numsend--;
                        return -1;
                m_numsend--;
                return j;
            public void GetAudioHead(byte abyte0[], TAUHeader tauheader)
                byte abyte1[] = new byte[4];
                byte abyte2[] = new byte[2];
                tauheader.depth = abyte0[0];
                tauheader.channel = abyte0[1];
                tauheader.adpcm = abyte0[2];
                for(int i = 0; i < 4; i++)
                    abyte1[i] = abyte0[4 + i];
                tauheader.speed = xplug.byte2int(abyte1);
                tauheader.ref1 = abyte0[8];
                abyte2[0] = abyte0[10];
                abyte2[1] = abyte0[11];
                tauheader.ref2 = xplug.byte2short(abyte2);
                for(int j = 0; j < 4; j++)
                    abyte1[j] = abyte0[12 + j];
                tauheader.size = xplug.byte2int(abyte1);
            public int ReadData(byte abyte0[])
                try
                    m_Input.readFully(abyte0, 0, m_len);
                catch(Exception exception)
                    return -1;
                return m_len;
            public int ReadData(byte abyte0[], TAUHeader tauheader)
                if(m_len < 16)
                    return -1;
                try
                    if(m_stream_type == 2)
                        m_Input.readFully(abyte0, 0, 16);
                        GetAudioHead(abyte0, tauheader);
                        m_Input.readFully(abyte0, 0, m_len - 16);
                catch(Exception exception)
                    return -1;
                return m_len;
            public int uuencode(String s)
                char ac[];
                int i;
                int i1;
                int j1;
                char ac1[];
                String s1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
                ac = new char[s1.length()];
                ac = s1.toCharArray();
                boolean flag = false;
                boolean flag2 = false;
                long l = 0L;
                boolean flag3 = false;
                i1 = 0;
                j1 = 0;
                buf.setLength(0);
                if(s.length() < 2)
                    return -1;
                i = s.length();
                ac1 = new char;
    ac1 = s.toCharArray();
    _L6:
    boolean flag1;
    int j;
    long l1;
    int k;
    flag1 = false;
    j = 0;
    l1 = 0L;
    k = 0;
    _L2:
    if(i <= 0 && j == 0)
    break MISSING_BLOCK_LABEL_256;
    long l4;
    if(i > 0 && !flag1)
    l4 = ac1[i1++];
    if(--i < 0)
    flag1 = true;
    j1 = j;
    l4 = 0L;
    } else
    flag1 = true;
    j1 = j;
    l4 = 0L;
    if(!flag1 || j != 0)
    long l2 = l4;
    l1 = l1 << 8 & 65535L;
    j += 8;
    l1 = (l1 | l2) & 65535L;
    _L4:
    if(j < 6) goto L2; else goto L1
    _L1:
    long l5;
    j -= 6;
    long l3 = l1 >> j & 63L;
    int k1 = (int)l3;
    l5 = ac[k1];
    if(k <= 1020) goto L3; else goto L2
    _L3:
    buf.append((char)(int)l5);
    if(flag1)
    j = 0;
    goto _L4
    if(j1 == 2)
    buf.append('=');
    buf.append('=');
    } else
    if(j1 == 4)
    buf.append('=');
    if(i <= 0)
    return 1;
    if(true) goto L6; else goto L5
    _L5:
    final int ST_VIDEO = 1;
    final int ST_AUDIO = 2;
    private String m_charset;
    private String m_sRequest;
    public String m_sRemoteHost;
    private URL m_urlRemoteHost;
    public Integer m_iRemotePort;
    private Integer m_iTimeout;
    private Socket m_sktClient;
    private DataInputStream m_Input;
    private DataOutputStream m_Output;
    public boolean m_bIsConnect;
    public int m_numsend;
    public int m_len;
    public String m_sDate;
    public long m_sStatus;
    private DateFormat df;
    private int m_stream_type;
    public StringBuffer buf;
    TStreaming()
    df = DateFormat.getDateTimeInstance(1, 1);
    buf = new StringBuffer("");
    m_stream_type = 0;
    m_numsend = 0;
    m_charset = "8859_1";
    m_sRemoteHost = "";
    class TAUHeader
    byte depth;
    byte channel;
    byte adpcm;
    int speed;
    byte ref1;
    short ref2;
    int size;
    TAUHeader()
    depth = 0;
    channel = 0;
    adpcm = 0;
    speed = 0;
    ref1 = 0;
    ref2 = 0;
    size = 0;
    public class Adpcm
    public class AdpcmState
    int valprev;
    int index;
    public AdpcmState()
    public String codecName()
    return "DVI ADPCM";
    public int getSampleRate()
    return 8000;
    public Object createState()
    return new AdpcmState();
    public void initState(Object obj)
    ((AdpcmState)obj).valprev = 0;
    ((AdpcmState)obj).index = 0;
    public int decode(Object obj, byte abyte0[], int i, short aword0[], int j, int k, byte byte0,
    short word0)
    byte byte1 = 0;
    boolean flag = false;
    int k1;
    int l1;
    if(byte0 < 0)
    l1 = ((AdpcmState)obj).valprev;
    k1 = ((AdpcmState)obj).index;
    } else
    l1 = word0;
    k1 = byte0;
    int i2 = stepsizeTable[k1];
    k *= 2;
    for(int j2 = k; j2-- > 0;)
    int i1;
    if(!flag)
    byte1 = abyte0[i++];
    i1 = byte1 >> 4 & 0xf;
    flag = true;
    } else
    i1 = byte1 & 0xf;
    flag = false;
    k1 += indexTable[i1];
    if(k1 < 0)
    k1 = 0;
    else
    if(k1 > 88)
    k1 = 88;
    int l = i1 & 8;
    i1 &= 7;
    int j1 = i2 >> 1;
    if((i1 & 4) == 4)
    j1 += i2 << 2;
    if((i1 & 2) == 2)
    j1 += i2 << 1;
    if((i1 & 1) == 1)
    j1 += i2;
    j1 >>= 2;
    if(0 != l)
    l1 -= j1;
    else
    l1 += j1;
    if(l1 > 32767)
    l1 = 32767;
    else
    if(l1 < -32768)
    l1 = -32768;
    i2 = stepsizeTable[k1];
    aword0[j++] = (short)l1;
    ((AdpcmState)obj).valprev = l1;
    ((AdpcmState)obj).index = k1;
    return k;
    private final int indexTable[] = {
    -1, -1, -1, -1, 2, 4, 6, 8, -1, -1,
    -1, -1, 2, 4, 6, 8
    private final int stepsizeTable[] = {
    7, 8, 9, 10, 11, 12, 13, 14, 16, 17,
    19, 21, 23, 25, 28, 31, 34, 37, 41, 45,
    50, 55, 60, 66, 73, 80, 88, 97, 107, 118,
    130, 143, 157, 173, 190, 209, 230, 253, 279, 307,
    337, 371, 408, 449, 494, 544, 598, 658, 724, 796,
    876, 963, 1060, 1166, 1282, 1411, 1552, 1707, 1878, 2066,
    2272, 2499, 2749, 3024, 3327, 3660, 4026, 4428, 4871, 5358,
    5894, 6484, 7132, 7845, 8630, 9493, 10442, 11487, 12635, 13899,
    15289, 16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767
    public Adpcm()
    public class CgiIO
    public boolean isConnect()
    return true;
    private int opensock(String s, String s1)
    try
    URL url = new URL(s + s1);
    int i = url.getPort() == -1 ? 80 : url.getPort();
    if(!s.equals(gurl) || inet == null)
    inet = InetAddress.getByName(url.getHost());
    fw_sktClient = new Socket(inet, i);
    catch(Exception exception)
    System.err.println("<err>: create socket error" + exception);
    return 0;
    return -1;
    public void CgiIO()
    public void CgiIO(String s, String s1)
    gurl = s;
    guri = s1;
    opensock(gurl, guri);
    public void seturl(String s, String s1)
    String s2;
    if(s.indexOf(":") > 0)
    s2 = "http://" + s;
    else
    s2 = "http://" + s + ":" + s1;
    if(!s2.equals(gurl))
    gurl = s2;
    opensock(gurl, guri);
    public void seturi(String s)
    guri = s;
    public String getContent()
    return ini.content;
    public int get()
    try
    URL url = new URL(gurl + guri);
    HttpURLConnection httpurlconnection = (HttpURLConnection)url.openConnection();
    httpurlconnection.setRequestProperty("Authorization", "Basic " + xplug.DeviceSerialNo);
    httpurlconnection.connect();
    if((conlen = httpurlconnection.getContentLength()) > 0)
    m_Input = new DataInputStream(httpurlconnection.getInputStream());
    m_Input.readFully(buf, 0, conlen);
    tStr = new String(buf, 0, conlen);
    ini.content = tStr;
    httpurlconnection.disconnect();
    catch(Exception exception)
    System.err.println(exception);
    return 0;
    return -1;
    public int post()
    boolean flag = false;
    String s = "";
    s = s + "POST " + guri + " HTTP/1.0\r\n";
    s = s + "User-Agent: java-mobile\r\n";
    s = s + "Authorization: Basic " + xplug.DeviceSerialNo + "\r\n";
    s = s + "Content-Length: " + ini.content.length() + "\r\n";
    s = s + "\r\n";
    if(fw_sktClient == null || fw_sktClient.isClosed())
    opensock(gurl, guri);
    fw_sktClient.setReuseAddress(true);
    fw_sktClient.setKeepAlive(true);
    fw_sktClient.setSoTimeout(5000);
    DataOutputStream dataoutputstream = new DataOutputStream(fw_sktClient.getOutputStream());
    BufferedReader bufferedreader = new BufferedReader(new InputStreamReader(fw_sktClient.getInputStream()));
    dataoutputstream.write(s.getBytes());
    dataoutputstream.write(ini.content.getBytes());
    String s1;
    if((s1 = bufferedreader.readLine()) != null)
    if(s1.indexOf("200") > 0)
    flag = true;
    else
    flag = false;
    dataoutputstream.close();
    bufferedreader.close();
    return !flag ? 0 : -1;
    Exception exception;
    exception;
    System.out.println("post exception:" + exception);
    return 0;
    public int postproblem()
    HttpURLConnection httpurlconnection;
    URL url = new URL(gurl + guri);
    System.err.println("1post: ini.content " + ini.content);
    httpurlconnection = (HttpURLConnection)url.openConnection();
    System.err.println("2post: ini.content " + ini.content);
    httpurlconnection.setRequestMethod("POST");
    System.err.println("3post: ini.content " + ini.content);
    httpurlconnection.setDoOutput(true);
    httpurlconnection.setDoInput(true);
    System.err.println("4post: ini.content " + ini.content);
    m_Output = new DataOutputStream(httpurlconnection.getOutputStream());
    System.err.println("5post: ini.content " + ini.content);
    try
    httpurlconnection.setRequestProperty("Authorization", "Basic " + xplug.DeviceSerialNo);
    catch(IllegalStateException illegalstateexception)
    System.err.println("<err><CgiIO>: ignore1 " + illegalstateexception);
    System.err.println("6post: ini.content " + ini.content);
    try
    httpurlconnection.connect();
    break MISSING_BLOCK_LABEL_348;
    catch(IOException ioexception)
    System.err.println("<err><CgiIO>: ignore1 " + ioexception);
    return 0;
    System.err.println("7post: ini.content " + ini.content);
    m_Output.write(ini.content.getBytes());
    httpurlconnection.getResponseCode();
    if(httpurlconnection.getResponseCode() != 200)
    break MISSING_BLOCK_LABEL_456;
    httpurlconnection.disconnect();
    System.err.println("8post: ini.content " + ini.content);
    System.err.println("-1");
    return -1;
    httpurlconnection.disconnect();
    System.err.println("0");
    System.err.println(String.valueOf(httpurlconnection.getResponseCode()) + httpurlconnection.getResponseMessage());
    return 0;
    Exception exception;
    exception;
    System.err.println("<err><CgiIO>: " + exception);
    return 0;
    public int postfile(byte abyte0[], int i)
    return 0;
    public void ClearParameter()
    ini.ClearParameter();
    public String GetConfigValue(String s)
    return ini.GetConfigValue(s);
    public int SetConfigValue(String s, String s1)
    return ini.SetConfigValue(s, s1);
    public String GetConfigValueEx(String s, String s1)
    return ini.GetConfigValueEx(s, s1);
    public int SetConfigValueEx(String s, String s1, String s2)
    return ini.SetConfigValueEx(s, s1, s2);
    public String gurl;
    public String guri;
    private byte buf[];
    private String m_charset;
    private Ini ini;
    private int conlen;
    private String tStr;
    InputStream in;
    OutputStream out;
    DataInputStream m_Input;
    DataOutputStream m_Output;
    private final int SUCCESS = -1;
    private final int FAIL = 0;
    Socket fw_sktClient;
    InetAddress inet;
    int err;
    int ic;
    public CgiIO()
    gurl = "";
    guri = "";
    buf = new byte[3072];
    m_charset = "8859_1";
    ini = new Ini();
    public class Ini
    public void ClearParameter()
    content = "";
    public String GetConfigValueEx(String s, String s1)
    if((i_hos = getSessionHead(s)) >= 0 && (i_tos = getSessionTail(s)) >= 0 && i_tos > i_hos)
    return getItemValue(s1, i_hos, i_tos);
    else
    return "";
    public int SetConfigValueEx(String s, String s1, String s2)
    if((i_hos = getSessionHead(s)) >= 0 && (i_tos = getSessionTail(s)) >= 0 && i_tos > i_hos)
    return setItemValue(s1, s2, i_hos, i_tos);
    } else
    insertString("[" + s + "]" + dlim + s1 + "=" + s2 + dlim, content.length());
    return 0;
    public String GetConfigValue(String s)
    return getItemValue(s, 0, content.length());
    public int SetConfigValue(String s, String s1)
    return setItemValue(s, s1, 0, content.length());
    private int getSessionHead(String s)
    for(int i = 0; (i = getNextLeadingBracket(i)) >= 0;)
    i_sepline = getNextClosingBracket(i);
    t_session = content.substring(i, i_sepline).trim();
    if(t_session.equals(s))
    return i;
    return -1;
    private int getSessionTail(String s)
    for(int i = 0; (i = getNextLeadingBracket(i)) >= 0;)
    if((i_sepline = getNextClosingBracket(i)) >= 0)
    t_session = content.substring(i, i_sepline).trim();
    if(t_session.equals(s))
    if((i = getNextLeadingBracket(i)) > 0)
    return i;
    else
    return content.length();
    return -1;
    private int getNextLeadingBracket(int i)
    i_hol = i;
    for(i_tol = content.indexOf(dlim, i); i_tol < content.length() && i_tol > i_hol; i_tol = content.indexOf(dlim, i_hol))
    t_str = content.substring(i_hol, i_tol).trim();
    if(t_str.charAt(0) == '[')
    return i_hol + 1;
    i_hol = i_tol + 2;
    return -1;
    private int getNextClosingBracket(int i)
    i_hol = i;
    i_tol = content.indexOf(dlim, i);
    i_sepline = content.indexOf("]", i);
    if(i_sepline > 0 && i_sepline < i_tol)
    return i_sepline;
    else
    return -1;
    private String getItemValue(String s, int i, int j)
    i_hol = i;
    for(i_tol = content.indexOf(dlim, i_hol); i_tol < j && i_tol > i_hol; i_tol = content.indexOf(dlim, i_hol))
    i_sepline = content.indexOf("=", i_hol);
    if(i_sepline > 0 && i_sepline < i_tol)
    t_item = content.substring(i_hol, i_sepline);
    if(t_item.trim().equals(s))
    return content.substring(i_sepline + 1, i_tol).trim();
    i_hol = i_tol + 2;
    return "";
    private int setItemValue(String s, String s1, int i, int j)
    i_hol = i;
    i_tol = content.indexOf(dlim, i_hol);
    isChanged = false;
    for(; i_tol < j && i_tol > i_hol; i_tol = content.indexOf(dlim, i_hol))
    i_sepline = content.indexOf("=", i_hol);
    if(i_sepline > 0 && i_sepline < i_tol)
    t_item = content.substring(i_hol, i_sepline);
    if(t_item.trim().equals(s))
    isChanged = true;
    return replaceString(s1, i_sepline + 1, i_tol);
    i_hol = i_tol + 2;
    if(!isChanged)
    insertString(s + "=" + s1 + dlim, j);
    return 0;
    private int insertString(String s, int i)
    StringBuffer stringbuffer = new StringBuffer(content);
    content = stringbuffer.insert(i, s).toString();
    return 0;
    private int replaceString(String s, int i, int j)
    StringBuffer stringbuffer = new StringBuffer(content);
    content = stringbuffer.replace(i, j, s).toString();
    return 0;
    public String content;
    private int i_hol;
    private int i_tol;
    private int i_ho

  • Can I use Apple TV (version 3 with IOS 5.1) Airplay to simultaneously to stream audio to another Apple TV without using itunes on my PC?

    I have 2 Apple TV's version 3 with IOS 5.1 and would like them both to play the same music through Match simultaneousy but without having to use iTunes on my PC.
    It seems I can only select one of them at a time for audio output, is there a way to make them both play at the same time?

    tammersalem wrote:) <-HDMI-> (HDTV)
    My main concerns are:
    -If I use iTunes on my main computer, will it then be available to Apple TV?
    -If I use Apple TV to download will it be available to my Main computer?
    -Can the Apple TV use a media server for storage over LAN (using NTFS Samab or otherwise)?
    Basically iTunes feeds AppleTv with media either syncing (copying to it) or streaming live.
    Media must be compatible with AppleTV.
    AppleTV requires a proper iTunes instance running - it cannot access a NAS directly.
    If you store media in a folder on a NAS and it's part of the computer iTunes library (just stored on the NAS vs internal/external drive), then when running iTunes makes this content available to AppleTV.
    Data will travel:
    NAS > network > iTunes > network to AppleTV
    As the path is potentially slower than internal/external attached drive > iTunes > network > AppleTV, it may or may not work robustly for streaming.
    If AppleTv is set to sync (it can also stream in this mode), when you purchase direct on AppleTV, the media should sync back to where the itunes library is stored (via iTunes) to keep things in sync and to allow you to backup the media.
    You cannot drag/drop media to/from AppleTv across the network, nor can it directly access storage itself - iTunes is an essential cog in the wheel.
    The majority of commercial 'in-built iTunes media servers' will not work directly with AppleTV as it has to be 'paired' with iTunes by entering a numerical code in iTunes and does not simply see 'shared libraries'.

  • Brand new imac - streaming audio/video skips

    Hey all,
    I just purchased a brand new imac with snow leopard 10.6.1 on it. When I use any sort of streaming media (pandora, hulu, youtube, etc.) it intermittently slows wayyyy down and skips. I have no problems with this on my other computers (2nd gen macbook, lenovo thinkpad.) This problem occurs in both Safari and Firefox. I have tried changing the frequency channel on my router, to no avail. As a whole, the browsers are slower than I would expect them to be.
    Any ideas? This is really aggravating, especially since it's so new.

    10.6.2 just dropped less than an hour ago, and includes a fix for this....
    http://support.apple.com/kb/HT3874
    +this update addresses video playback and performance issues for iMac (21.5-inch, Late 2009) and iMac (27-inch, Late 2009) computers that may occur in some situations while AirPort is turned on+

Maybe you are looking for

  • How to sent the data reading in labview to excel datasheet

    Hi, I have aquire the current input from Cb68LP connector block to the labview.Thank a lot But I not sure how to sent the data to the excel datasheet(with row and column). thank

  • Success with RaLink Chipset (PCI G)

    Hello there, I took a chance and bought a RoseWill PCI G card for my MDD. It uses the RaLink chipset and it works great! Downloading speeds have more than doubled (now > 9000 kbps) and the connection is rock solid. The best aspect was the cost, ... $

  • Cl scr in plsql procedure

    Hello frnd, I am writing a simple plsql procedure to generate supermarket bill, its taking some input from user like , item no, item name etc etc what I want is before generating final output the scree should get clear and then output shoud display f

  • Problems with the JTabbedPanel

    To the members of the discussion group, I have just downloaded the JDeveloper and am starting to develop an application for a trial, and then bumped into a problem: I've put a JTabbedPanel in a JFrame and the Panels I inserted into it do not alternat

  • When copying an image of a person onto a...

    beach, what layer style would you normally use? How about a soft edge drop shadow? I can't decide if it looks ok. I have feathered it before I pasted it, but it still looks like it's been 'stuck on'.