network problem with regard to streaming

Could someone tell me what I am doing wrong? When I click on stop, the upload stream does not stop downloading. This occurs on the device and not the Simulator.

public class MusicPlayer extends MainScreen implements FieldChangeListener {

    HttpConnection http;
    SharedInputStream readAhead1;
    Player _player;
    ButtonField stop;

    MusicPlayer(){
        stop = new ButtonField("Stop", ButtonField.CONSUME_CLICK);
        stop.setChangeListener(this);
        add(stop);
        try {

            http = (HttpConnection) Connector.open
            ( "http://www.dg.deathcompany.org/blackberrytest/ATB-DontStop.mp3"+";interface=wifi",Connector.READ_WRITE, true);
            http.setRequestProperty("Connection", "KeepAlive");

            if (http.getResponseCode() != HttpConnection.HTTP_OK && http.getResponseCode() != 206)
            {
                int responseCode = http.getResponseCode();
                System.out.println("Http not ok:" + responseCode );
            }
            readAhead1 = SharedInputStream.getSharedInputStream(http.openInputStream());

            try {
                _player = Manager.createPlayer(readAhead1, "audio/mpeg");
            } catch (MediaException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            try {
                _player.prefetch();
                _player.realize();
                _player.start();                

            } catch (MediaException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }               

        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

  public void fieldChanged(Field field, int context) {
        try{
            if(_player != null){
                _player.stop();
                _player.deallocate();
                _player.close();
            }
            if(readAhead1 !=null){
                readAhead1.close();
                readAhead1 = null;
            }
            if(http != null){
                http.close();
            }

        }catch(Exception e){

        }
    }
}

https://www.blackberry.com/jira/browse/JAVAAPI-125 - you must login using your Dev area e-mail address and the password.

Tags: BlackBerry Developers

Similar Questions

  • After reinstalling Windows Vista, have problems with buffering of streaming video

    I have a problem with streaming video in buffer where it was not before. I recently did a clean reinstall of my OS and since then I had problems with the streaming videos buffering during their race, where he has not before. I tried to disable my firewall and had the same results, is there some download/driver I need to install/reinstall that will fix this. I have a connection high speed that shouldn't be a problem... .without me know what you think, thanks, Stan

    Hello
     
    Thanks for posting on Microsoft Answers.
     
    Try to update the network map and display card drivers and check.
     
    It will be useful.
     
    Best regards, Niranjan | Microsoft Answers Support Engineer

  • Problems with Flash video streaming in any browser (Windows 8.1)

    Hello.

    Since perhaps the last Chrome update (version 42.0.2311.90 m - I tried versions of 32 and 64-bit) or some 8.1 Windows updates (I don't know for sure), flash videos don't even start to buffer - they play only once the entire content is downloaded (or loaded into the reader of the site). Then, if I try to watch a video from a Flash Player based (like Dailymotion or Vimeo) interface, I have no streaming, and I have to wait a long time, watch a '1% ' or a wheel loading until the full content is available to watch.

    This is the case with all browsers, not just the Chrome (IE and Firefox too). I tried to update flash player (first version, 17,0,0,169 and then tried the beta version, a published April 14, 2015). No difference at all. So, I think that this could be a problem with the drive itself, or with some settings in Windows.


    So, lets go to the facts:

    -Happened all of a sudden no reason apparent - a day he worked, and he was not on the other day.

    -J' have the last version of every browser I use (Chrome, IE and Firefox).

    -My version of Flash Player is, currently, the latest version;
    -J' tried older versions of Flash Player. did not work;
    -This is not the case with HTML5, like Youtube video players, so I think that it is not a codec problem;

    -J' have the latest graphics driver nVidia. And it was happening even before I update the driver (I have a GeForce GTX 770);

    -J' tried to disable hardware acceleration on the Flash settings, nothing happened.

    -J' by default uses the Windows Firewall and defender. Tried to disable the firewall, nothing happened;

    -J' had looked all over the internet for the answer, but I can not find it. I already have all that Adobe troubleshooting pages told to do;

    -My internet connection is fine. It's a fast connection, and it's the wireless. I have several PCs connected to this network and video flash work well with them, that in this specific machine is not;

    -J' tried to uninstall flash player and install it several times with several different versions. Did not work;

    -Tried to disable as different versions of flash player on Chrome, nothing happened.


    The thing is, I can imagine that this might not be only a problem of flash player, but since this is the only problem with plugin, I, I thought you might have the answer.

    Thank you.

    Hello! It has been a while. If I could do the necessary research.
    First of all, thank you Jean-Luc for the answer.

    After the discussion, I discovered that it was not only not set buffer, but sometimes common downloads Flash videos too. Sometimes, I could see the download file only after being completely downloaded. So, at this point, I knew that was no more Flash video problems. Something must have been messing around with my proxy settings.

    I have fresh installed Windows 8.1 again. And I discovered that I had an app running in the background called "hora Buscapé na", which was a program automatically detect the best deals for products to buy here in the Brazil. I finished his task, and thing go back to normal, I guess. I tried to contact their support, but it's a maze to rethink the role of the contact.

    So, I'm sorry for the inconvenience and thank you for the help.
    I see many people with the same problem on the internet without answers, so for these people, there could be another application or process of screwing with your proxy servers.

  • Unable to connect to Wi - Fi network - 'problem with wireless adapter or access point '.

    When I try to connect to the network Wi - Fi Home I get error like:- Windows cannot connect.

    When I click on solve problems I see error below :-'problem with wireless adapter or access point '.

    We reinstalled OS

    We rested the router

    We are able to connect to Wi - Fi in other laptops, notebook and mobile

    We have updated all the drivers of network also.

    Please help me solve the problem.

    Hi Niranjan,

    Thank you for your support. In fact, the problem is with the Router Configuration, because with any other router device, we are able to connect to Wi - Fi in the laptop.

    Thank you

  • Problems with audio/video streaming with USB devices on zero clients

    Hello:
    We are using view 6.1.1 in our environment and problems getting audio/video streaming to work well with the USB headsets, with zero customers.  Helmets are Jabra Link 360 and customers zero Samsung NC241.  Helmets are used as well for the phones to Jabber and also as audio device by default.   We started with the audio driver Teradici and everything seemed to work well, except that users could not answer calls on the headset itself with the button on the headset.  They were able to answer the calls of Windows though and the part worked fine.  In order to get the physical button to work, we had to first fill the USB receiver they use on the zero clients so that Windows will see as the device Jabra 360 and not the audio device Teradici.  Then we had the EHCI USB mode on them as well, and after that he started to work very well.  However, the helmets also serve as the audio device main as well as the communication (phone) device, with audio streaming continuously throughout the day.  With the current configuration, audio streaming will cut in and out during the day, and audio/video is not always to stay in either phase.

    I also applied the registry in this KB hack, VMware KB: improvement in audio quality when you use speakers or USB headsets with a desktop VMware view Horizon 5.2 , which helped clear up Crackle that we originally with the part phone headsets.  But there is still the issue of streaming audio.

    I wonder if the effectiveness of the bridging USB is not as effective and also is there a way to make this work better?  I read that the use of the pilot Teradici is supposed to help with audio/video problems, but do not know how that can be applied to USB devices as we use.  I've been reading upward on Teradici audio/video settings, but do not know where to go from there.  I was hoping that there are some best practices to use USB headsets with a view, but so far I'm not finding anything useful.

    For any help or suggestion would be greatly appreciated.  Thanks in advance.

    We were finally getting help by the people of Cisco after validation in the here and even open a support ticket with VMware, which was open for more than a month without will.  Where others try to implement similar, here are our findings:

    • Zero clients combine traffic USB and PCoIP.  It is not good when there is a lot of audio/video/USB traffic, especially the USB headsets that also carry audio softphone.  In our case, the USB traffic was so dense that it was causing audio and video become troubled and freeze and eventually cause the pcoip_server service to break in the virtual machine itself and cause the client disconnect.  The fix?  Don't use customers zero with USB phones software, they are not just designed for this type of solution.
    • Thin clients are much better designed for USB softphones.  In our case, we used the Cisco VXME client, which is the method of support for the use of Windows thin clients with the client of the Horizon.  There is integration between the two products that isolates the VOIP traffic out of the virtual machine and keeps it local on the client itself.  Regular audio and video traffic still go through the virtual machine using Teradici or VMware RTAV driver.

    Hope this helps others who may run this question.  One thing we did not try was a wired headset using the AV sockets on the zero client and Teradici audio driver.  This can work, but our needs here were the headphones must be bluetooth, so we were forced to stick with USB.

  • Network problem with HP DL 380 running ESX

    Hi @ all,

    I m having a BIG problem with a HP DL 380 and ESX 4.0. The setting is as follows:

    1. physical NIC is on the DMZ Port of the firewall, the 2. one is on the switch (simple gigabit switch).

    one of the virtual machines on this server should communicate ONLY on the NETWORK card on the demilitarized zone, but somehow he doesn´t work.

    help the plt

    Bone

    OS (if it's still bone),

    Setup in your jpg looks ok.

    To dig deeper, I need to understand the issue see you "if I turn on the server 'DMZ' is as if it is on the first vSwitch '

    Can you explain the issue you are facing. Is this a connectivity problem. Maybe it is related to the configuration of the physical switch.

    André

    If you are having trouble to explain in English, feel free to send me a private message and describe the problem in German.

  • Problem with ViewStack and stream hobbies

    Hi all

    I have a problem with the use of flex ViewStack and re-creation of the view components. I included my code below. Forums, I understand that view stack only changes the visibility and see components once created are not re-created and then initialize and creationComplete events are not triggered when sight change. I used the hide to destroy the view components when ViewStack visibility changes. The hide event method event handler methods are called during component hide. But still the methods initialize or creationComplete see components are not executed. Please can someone tell what is wrong with my code here?

    MainAppl.mxml

    //Firing some events here

    }

    []] >

    < / mx:Script >

    < mx:VBox " width = ' 100 % "height =" " 100% " >

               < mx:HBox width = " " 100% "height =" 5% " >

    < see: MainControlHeaderView / >

               < / mx:HBox >

    < mx:HBox " width = ' 100% "height =" " 95 % " >

    < see: UserListView / >

               < / mx:HBox >

    < / mx:VBox >

    < / mx:Canvas >

    Thank you.

    Roshni

    The view stack takes care to hide and show your child components.  So all you need to do is to listen to the show in your custom comp or its label in the stack and act on it.  Do not destroy or re instansiate anything just act on these methods.

    It seems that your feature is going to be pretty basic on this so I think it will work very well.

    Andrew

  • Virtualized ESXi5 - network problems with nested VMS

    Happy new year!

    I am facing some issues on my test environment, which is as follows:

    • -my host system is a step of laptop Linux Mint 11 (2.6.38 - 8-generic #42 - Ubuntu SMP)
    • -I'm using VMWare Workstation 8.0.1 build-528992
    • -J' I install bridged networking on a virtual interface (made with brctl) for all virtual machines and the host provides dhcp, dns, tftp, etc... facilities
    • -All virtual machines are on the network briged and all see each other, the host and the internet perfectly well

    Now the part ESXi:

    • -the server ESXi 5 (free basic license) is vitualized with a single vnic and bridged networks (same as all other virtual machines) and as a virtual machine of ESXi 5 (was a nice surprise to see that the 8 WS knows out-of-the-box)
    • -J' I install that some virtual machines nested in this virtual ESXi
    • -the VM ESXi can talk to other systems, that is, the host, the other virtual machines and its own virtual machines

    The problem is that nested virtual computers can talk to each other or the console, but not to the computer host or other virtual machines, except the ESXi itself.

    I have tried the following with no chance:

    • -Add an another vnic to the ESXi and devote a vswitch for virtual machines
    • -use NAT or network invited only for the VM ESXi
    • disable/unload the ESXi firewall

    The only thing that works are a little DHCP, although it seems the acknowledgement never reach nested VMs. However, they still get a correct, but after that IP address are not able to receive any ARP traffic. If you manually add arp entries and can see CIMP inquiry vnet0 (bridge) of VMs nested to other machines as well as the corresponding answers. If ping on the other hand, I see only the applications, which means that the traffic is not sent to the nested virtual machines.

    The vswitch ESXi is configured to accept the promiscuous mode, change MAC address and forged passes.

    Thanks in advance if anyone has an idea

    "Promiscuous" mode is enabled for/dev/vmnet0 on the physical host?  See http://kb.vmware.com/kb/287 for more details.

  • A problem with the data stream reader online

    actually, I had any reader works fine but all my problem is when the workflow is loaded at the first moment where swf is loaded by the browser the stream starts to play and everything is fine with it, but main problem is that when I press STOP then play key again the gift of flow starts from current time of flow (as it don play of the current point now) , but he plays since the beginning of time the swf file was loaded early (when swf was loaded and jet was autoplayed) and this is my main problem tried challenging problem for lonnng time but no use. any idea?

    main part here of the code:

    var snd:Sound = new Sound();
    
    var volnum:Number = 1;
    
    var context:SoundLoaderContext = new SoundLoaderContext(8000, true);
    
    
    snd.load(songURL, context);
    
    
    
    var channel:SoundChannel;
    
    channel = snd.play();
    
    isPlaying = true; 
    
    
    
    addEventListener(Event.ENTER_FRAME, onEnterFrame);
    
    
    
    var bytes:ByteArray = new ByteArray();
    
    
    
    function playSound(event:MouseEvent):void {
    
              if (isPlaying == false) {
    
                        channel = snd.play();
    
                        isPlaying = true;
    
    
              } else {
    
    
              }
    
    
    }
    function stopSound(event:MouseEvent):void {
    
              channel.stop();
              isPlaying = false;
    
    }
    
    playBtn.addEventListener(MouseEvent.CLICK, playSound);
    stopBtn.addEventListener(MouseEvent.CLICK, stopSound);
    volDownBtn.addEventListener(MouseEvent.CLICK, volumeDown);
    volUpBtn.addEventListener(MouseEvent.CLICK, volumeUp);
    

    wish someone can help with this problem that took me so that without a solution

    Thank you very much

    Yes, that is using the url of your feed.

    If this does not work the way you want, the key is close the stream (if it is still open - using the close() method class' are sound) before attempting to open another stream.  This server do not simultaneously multiple open streams.

    Here is the code:

    //////////////////////////////////////////////////////////////////////

    import flash.media.Sound;

    import flash.media.SoundChannel;

    import flash.net.URLRequest;

    import flash.events.IOErrorEvent;

    import flash.events.Event;

    var snd:Sound;

    var channel: SoundChannel;

    var isPlaying:Boolean;

    var isStreaming:Boolean;

    var songURL:URLRequest = new URLRequest ("http://radio.virtualdj.com:8000/;stream.nsv"); ")

    var context: SoundLoaderContext = new SoundLoaderContext (8000, true);

    b.addEventListener (MouseEvent.CLICK, playSound);

    c.addEventListener (MouseEvent.CLICK, stopSound);

    function playSound(event:MouseEvent):void {}

    If (isPlaying == false) {}

    If {(snd)

    snd.removeEventListener (Event.OPEN, openF);

    snd.removeEventListener (Event.COMPLETE, completeF);

    snd.removeEventListener (IOErrorEvent.IO_ERROR, errorF);

    }

    SND = new Sound();

    snd.addEventListener (Event.OPEN, openF);

    snd.addEventListener (Event.COMPLETE, completeF);

    snd.addEventListener (IOErrorEvent.IO_ERROR, errorF);

    SND. Load (songURL, context);

    Channel = SND. Play();

    isPlaying = true;

    }

    }

    function stopSound(event:MouseEvent):void {}

    Channel.Stop ();

    {if (isStreaming)}

    SND. Close()

    }

    isPlaying = false;

    }

    function completeF(e:Event):void {}

    isStreaming = false;

    }

    function openF(e:Event):void {}

    isStreaming = true;

    }

    function errorF(e:IOErrorEvent):void {}

    trace (e);

    }

  • WTVConverter problem with multiple audio streams...

    The WTVConverter MSFT includes Windows 7 does not correctly handle multiple audio streams. The WTVConverter in the conversion of the format ".wtv' to '.dvrms' instead of keep the main audio stream retains the other stream audio visually impaired. Usually, he keeps the other stream audio visually impaired. NCIS and NCIS Los Angeles, CBS programs have this problem because they include signals SAP (accessibility for blind and partially sighted options)
    How can I tell WTVConverter to include only the main audio instead of the stream audio visually impaired
    Thank you
    Chandra

    Hello, Chandra

    If you think that there should be an option to select a stream when converting, you can leave your comments on the following link:http://mymfe.microsoft.com/Windows%207/Feedback.aspx?formID=195

    In addition, you can try searching for a free replacement program convert WTV files.

    David
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • problem with directx on stream hp 8

    Hello, I have a 8 Hp flow Tablet and I wanted to play old games. I know that I would not be able to play resource intensive games like Skyrim on a Tablet, but I wanted to play games like heretic or wolfenstein 3d, which made for very old machines which had way fewer features than my tablet. These games require a BACK emulator called DOSBOX to emulate the old machine.

    When dosbox starts, it immediately closes and displays a message saying 'could not initialize DirectInput. I also have the message of the emulator zsnes super Nintendo Games.

    I checked the dxDiag program and I have Directx 11 is installed.

    Is there something that I am missing? Or the Tablet is not compatible with DirectX?

    Thanks for your help

    Eduardo Schnadower

    There is a patch for dosbox, which makes it suitable for tablets without having to connect a mouse:

    http://www.Gog.com/Forum/General/dosbox_and_windows_8_touchscreen_tablets/Page1

    I guess now that dosbox works, I should try to use the version of zsnes BACK instead of windows with Dosbox and see how that comes out (the patch is only for dosbox, I have not found one for zsnes).

    Eduardo Schnadower

  • Problem with scrolling of streaming images

    Okay, so I have a horizontal scrolling of the image which consists of several thumbnails.  When you move your mouse to the left it goes left, move to the right and he goes right.  You get the story.

    Here, the problem is somewhere by the continuous loop.  I have properly in loop.  There are masks on each thumbnail.

    I have two instances of the same movieclip that contains thumbnails right next to the other.  This allows the loop.

    When two instances of thumbnails are both on the screen at the same time, some of them lose their masks while they are on the scene.  Why is this?

    you use actionscript to assign masks?

  • Problem with SlingTV through Airport Extreme?

    I have a Motorola SB6141 cable modem, internet of Time Warner and an Apple Airport Extreme Base Station (later) for my setup. While SlingTV is not a great service, it was $ 20 a month and gave me what I need and has been much better than that Time Warner was in charge me for the same channels.

    Despite the problems of freezing SlingTVs or what not, for a while it worked. But one day a few months back it just stopped working. When you open the app, it either does not open or just turns and turns to be forgotten and never access the content. But if I try on my phone (Verizon LTE), or another network outside my apartment with the iPad or computer laptop, it works. So at home, I tried to go directly from the cable modem and right in the Apple TV (previously an Xbox) and when I do that it works. So really what it boils down to, is my Apple Airport Extreme Base Station router. If I'm either directly connected to the Airport Extreme Base Station (Apple TV ethernet to the router), it will not work, or if I use WiFi via the Apple Airport Extreme Base Station it will not work. But directly to the modem cable or on any network outside of my home, the service works.

    So in short, something about setting up Apple isn't allowing the Sling TV app to open or work on any device. I even did a rest of the plant and installing my Apple router once again, and the same problem persists.

    FYI - I use Netflix, Amazon Prime, Hulu and all the Apple TV, TV shows, rental movies and content without ever having a problem with opening or streaming. This only happens with SlingTV when you try to access content on any device (iPad, Apple TV, Xbox One, iPhone, Macbook Air) via WiFi or Ethernet via Apple Airport Extreme.

    I tried to provide all the little details that I could. If someone could please provide a solution I would really really appreciate it! Thank you.

    Well first of all try to port forwarding. Slingbox I guess would use a similar to SlingTV montage... Unfortunately when I google for it I see just people having so many questions like you... no rigging, no answer they give up.

    http://PortForward.com/English/routers/port_forwarding/Apple/AirPortExtreme/Slin gBox.htm

    It is the old airport of model, but the idea is correct.

    If you still have questions... There is a major problem... port 5001 is used by the airport for its installation...

    If I run a scan of port of network utility, that you will find that it is already used.

    Port scan started...

    Host port scan: 192.168.2.201

    Open TCP Port: 5001 commplex-link

    Open TCP Port: 5009 winfs

    Port scan has completed...

    My recommendation is to replace the airport as your main router... Something good market like the C5 TP-Link or the WR1043ND which is less than $50US. These routers use UPNP is missing on the airport. Continue to use the airport for your customers to apple as WAP and switch.

    BTW: this is no bad thing because you also have a known problematic modem... SB6121 and SB6141 have major problems... do a quick search and you can find a lot of posts about this.

    TWC has also now use IPv6... that can ruin.

    See the instructions for installation (same as comcast for TWC).

    http://mydeviceinfo.Xfinity.com/download.php?file_id=35

  • Problem with first decoding or preview files using Canon DSLR on PC

    Use: First CS5.5

    Problems on laptops and desktop

    Laptop: 12 GB RAM

    Intel: i7

    1.5 GB of Nvidia

    Office: 16 GB of RAM

    Intel: i7

    SSD: 256

    GTX 470

    Is not all clips, but probably 1/5th clips will have 3 or 4 frames of the clamp of the screen randomly corrupt pixels.  See this gif (ignore the interlaced effect), on the lower part. http://i.imgur.com/Kx5Yb.gif

    It is with DSLR no transcoding to 1080 p, 23.976

    If I go into the source file, it plays fine on VLC and Quicktime.  If I delete and re-import the clip, it does the same thing.  If I delete, rename, import the clip, it does the same thing.

    Need help please, it is a puzzle to me.  Transcoding is not an ideal solution.

    Your file is broken. Despite having said that it plays in QuickTime, it does not work:

    It's a little more difficult to notice in QT Player, but it is there; It is easier to notice if you move through levels, frame-by-frame in the clip with the arrow keys left and right.

    So, it's not a matter of Premiere Pro; There is something causing your clips corrupted. My first guess would be a bad CF card, but it could be something as Benin as a copy process borked (CF on hard disk) to something as serious a problem with your digital SLR. I don't think there is anyway to fix these files; My usual stuff did not work, which suggests that it is not a problem of container, but a problem with the video stream itself real.

    Bad luck.

  • Regarding the problem with network controllers

    Hello every1!

    I had a problem with the network controllers. I recently installed new windows in my laptop. Ultimate(64-bit) Windows 7 is. Everything was fine, except the LAN drivers. I got a drivers pack solution for drivers. We updated all the drivers except the network controller.

    When I bought my new hp Pavilion g6-1201tx a few years, I had a backup of my DVD players. But, due to virus attack, it has corrupted me n later when I tried to reinstall my windows, I had no option but to the install from the cd of windows 7.

    Now, my problem is that in the notification of networks, it shows that "network controller not installed driver. Even my bluetooth does not detect my wifi personal connection he used to before you reinstall windows. I am not able to find the appropriate driver from the hp site configuration too. His humble request to help me solve my problem regarding.

    Thank you.

    You are the very welcome.

    Here are links to the drivers you need.

    Wireless:

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-108905-1&cc=us&DLC=en&LC=en&OS=4063&product=5163244&sw_lang=

    Bluetooth:

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-101174-1&cc=us&DLC=en&LC=en&OS=4063&product=5163244&sw_lang=

Maybe you are looking for