Events on streams

How do I go about listening for events on streams? I want to be able to fire an event when the other person disconnects (connected over TCPIP), and when I receive a message. Do I have to constantly poll to do this or...??
Cheers
Paul

Check out java.util.Observable
I've written some <prorpietary> code to do something like this to monitor file systems. Make your socket an observable object. I don't know how you can get around the polling aspect. It would be more of
readfromstream
when timeout
Observable.setChanged()
Sorry it's so vauge.
-ken

Similar Messages

  • Event Wait Streams AQ

    Dear Sir,
    we have oracle database 10.2.0.5 with operation system linux OEL5,
    we are not using Advanced Queuing,
    so why we have the following wait ?!!
    SELECT event, state, COUNT(*) AS cnt, sum(seconds_in_wait) AS wait_in_seconds
    FROM v$session_wait
    WHERE event LIKE 'Streams AQ%'
    GROUP BY event, state;
    EVENT STATE CNT WAIT_IN_SECONDS
    1 Streams AQ: qmn slave idle wait WAITING 1 2190844
    2 Streams AQ: waiting for time management or cleanup tasks WAITING 1 2242447
    3 Streams AQ: qmn coordinator idle wait WAITING 1 857137
    P.S. aq_tm_processes = 0
    Regards,

    Read MOS :
    Streams Idle Wait Events in 10g [ID 461279.1]
    It should not affect performance as it is an idle wait event.

  • Most simple query on Event Hub stream (json) constantly gives Data Conversion Errors

    Hello all,
    Been playing with ASA in December and didn't have any issues, my queries kept working and outputted the data as needed.  However, since January, I created a new demo, where I now constantly get Data Conversion errors.  The scenario is described
    below, but I have the following questions:
    Where can I get detailed information on the data conversion errors?  I don't get any point now (not in the operation logs and not in the table storage of my diagnostic storage account)
    What could be wrong in my scenario and could be causing these issues
    The scenario I have implemented is the following:
    My local devices send EventData objects, serialized through Json.Net to an Event Hub with 32 partitions.
    I define my query input as Event Hub Stream and define the data as json/utf8.  I give it the name TelemetryReadings
    Then I write my query as SELECT * FROM TelemetryReadings
    In the output, I create an output on blob with CSV/UTF8 encoding
    After that, I start the job
    The result is an empty blob container (no output written) and tons of data conversion errors in the monitoring graph.  What should I do to get this solved?
    Thanks
    Sam Vanhoutte - CTO Codit - VTS-P BizTalk - Windows Azure Integration: www.integrationcloud.eu

    So, apparently the issue was related to the incoming objects, I had.  I was sending unsupported data types (boolean and Dictionary).  I changed my code to remove these from the json and that worked out well.  There was a change that got deployed
    that (instead of marking the unsupported fields as null, they were throwing an exception).  That's why things worked earlier.
    So, it had to do with the limitation that I mentioned in my earlier comment:
    https://github.com/Azure/azure-content/blob/master/articles/stream-analytics-limitations.md
    Unsupported type conversions result in NULL values
    Any event vales with type conversions not supported in the Data Types section of Azure Stream Analytics Query Language
    Reference will result in a NULL value. In this preview release no error logging is in place for these conversion exceptions.
    I am creating a blog post on this one
    Sam Vanhoutte - CTO Codit - VTS-P BizTalk - Windows Azure Integration: www.integrationcloud.eu

  • Multiple bitrate encoder creates 3 seperate events and streams instead of a single event.

    I'm using the Niagara 4100 streaming appliance to encode a live multiple bitrate streams for an event. The problem is the Niagara encoder doesn't allow me to attach an event name to the stream url like - 'streamevent%i?adbe-live-event=liveevent', instead it only allows 'streamevent%i'. So in the end I get three seperate events with a stream for each event.
    Like so:
    Example:
    /Events/streamevent1/MNMMNNMxxxxx.stream 
    /Events/streamevent2/MNMMNNMxxxxx.stream
    /Events/streamevent3/MNMMNNMxxxxx.stream
    AND
    /Streams/streamevent1/files…
    /Streams/streamevent2/files…
    /Streams/streamevent3/files…
    Is it possible to make it work this way without using the 'adbe-live-event' parameter using the .f4m manifest file?
    Thanks,
    Dave

    There is a workaroud available but you can try using Flash Media Live Encoder, which is a free tool for better results. Surf to - C:\FMSHOME\samples\applications\livepkgr directory and you will find a main.asc file in there. This is the server side scripting file that is attached to the livepkgr application.
    In this, edit the var liveEventName variable and set it to the event you want to attach your streams to eg - "liveevent".
    Now create a separate copy of your livepkgr application inside C:\FMSHOME\applications\ like livepkgr_mbr and replace the main.far file with the main.asc you just edited. Now while publishing, connect to this application livepkgr_mbr and just specify the stream name - livestream%i. Check your permissions before starting the recording.
    This should work for you. But please remember that doing this will cause all your streams to be associated with the same event - liveevent as you are hard coding that inside the main.asc file. So its best to keep a separate application just for this purpose.

  • Apple Special Event 2005 - Streaming

    I visit the apple site to stream the video through quicktime.
    And my internet just seems to stall ??.. tried this twice on mac and pc !! still manages to either my Airport/Zoom adsl mode?.... just by resetting at the wall let's me back on the net again.
    But i'm still not able to view the video!... In the very same step that i use.
    1. click "watch the special event"
    2. 'qucicktime' loads and begins to connect.
    3. 'error' bad name/request. - (Internet Crashes)
    ?? please help someone. just one of those things that should work.
    Thanks
    Ollie
    note. i'm using latest and updated quicktimes on both mac/pc

    "bad username/request" may mean that QT couldnt keep a good hook into the stream.
    Oh..and it was you(!) that crashed the internet this morning?
    I thought it was my cousin -- he's always bringing it down.
    (As in, "Rick, I crashed the internet this morning"...I always thought it was because he was on a PC).
    No wonder i couldn't get to cnn.com..
    (just kidding.)

  • Can't turn mp3 audio sync from event to stream on timeline

    I've imported an mp3 to Flash CC and put it on the timeline. The audio sync in the properties only allows 'event'. I need it to be stream so I can scrub sound. Any help greatly appreciated.

    html5/canvas only supports the event sync property.

  • Event when streaming sound is ready to play

    Hello,
    I'd like to know, when a streaming sound has preloaded enough
    and would
    start to play.
    Since I have also to preload some images and xml files, I
    load a
    streaming sound, stop it immediately and when everything has
    enough
    buffer, I want to start them all manually...
    How can I do this?
    josp

    Hi josp,
    I have the same question and I'm wondering--did you ever
    figure it out?
    Thanks,
    mew

  • AS3 - 1) Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place; 2) Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true - ActionScript 3 - flash cs3 cs4

    Hi folks,
    Ronny's here again on forums, having particularly 2 (two) questions/problems to resolve:
    1) Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place
    2) Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true
    attached is the .zip file (as3_Countdown Timer_ver 1.0.1_by Ronny Depp.zip) with all flash source files containing:
    a) The FLash Source (file: timer_module.fla) - (FLA flash source file - Flash CS3 Professional, Flash Player 9, actionscript 3.0)
    b) com.othenticmedia.utils.dateAndTimeManagement package including 2 .as actionscript 3.0 Class files.
           i) com.othenticmedia.utils.dateAndTimeManagement.DateAndTimeManager Class in the said package. (file: DateAndTimeManager.as)
           ii) com.othenticmedia.utils.dateAndTimeManagement.CountdownTimer Class in the package. (file: CountdownTimer.as)
    c) The compiled SWF file version of this Application's blueprint. (file: timer_module.swf).
    What i need to confirm is: ........................................................ see the next post of mine. (for Problems  need to be Resolved)

    Problems to Resolve:
    Problem#1) - Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place.
    Problem#2) - Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true;
    Problem#1 Description:
    I need to pinpoint the Logical TimeSync Exception, i am still unable to figure out. That is I'm using a webservice in my Application to Synchronize the Time with the actual ET (eastern time) with accomodation of auto-adjustment for EDT GMT-4 (eastern daylight time) & EST GMT-5 (eastern standard time), times. I am using the zipcode: "10012" to pass it to the Web Service in urlRequest object, to retrieve the Current ET eastern time according to EDT & EST time settings for Manhattan/Brooklyn areas or others within  New York, NY 10012.
    Currently the Web Service is returning accurate date/time based on local EDT GMT-4 daylight time.
    Is there some defined set of dates for EDT & EST times for New York region that I can check for to ensure the correct Dates/Times for Eastern Time in New York area ??? I am using NY zipcodes because i am sure to get correct ET values.
    The Major Problem Part: is I need to correct the time by 2 seconds or approx. 2 secs, some millisecs.
    When I retrieve the Time Value from WebService, it lags behind for 2 seconds as compared to DateObj i create using computer's local time, on my Windows XP Service Pack 2 with Automatic Updates turned-on. And I'm sure about my Windows will be having latest updates for Time Management already installed. I also added the 2 secs. to the TimeSync(ed) Date to make correction to this Date obj.
    I call my custom fucntion addSeconds(dateObj:Date, secs:int) to add 2 seconds to the Date by Converting Seconds to Milliseconds.
    Please comb through the as code in files attached and Help Me Out !!!
    Problem#2 Description:
    Secondly I need to Detect the End of Stream state while using FLVPlayback component, an rtmp:// live Stream from FLASH MEDIA SERVER.
    I need to Play a YuMe Post-Roll Ad when Steam Finishes/Ends.
    Live Broadcast Stream Event starts every night on Wednesdays & Saturdays exactly  at 10:59 PM EDT GMT-4.
    Live Events only Streams/Broadcasts the stream for 50secs. exactly. When [playback stopped] it plays a PostRoll Ad and after the CountdownTimer again comes back to life. The Next upcoming Event is calculated & the Countdown begins until Next Event's time/date is reached.
    Here is the  code on the frame 1 on the MainTimeline: (rest of the params like source, volume, skinAutoHide are Set using Property Inspector for FLVPlayback instance on Stage)
    //myStream instance of FLVPlayback is on the Stage
    myStream.isLive = true;// Frame 1 Actions in the FLA
    myStream.addEventListener(VideoEvent.COMPLETE, onEndOfStream);
    myStream.addEventListener(VideoEvent.STATE_CHANGE, onState);
    myStream.addEventListener(String(VideoError.NO_CONNECTION), onStreamError);
    myStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    /*if(myStream.stopped){
         trace("tracy: "+myStream.state);
    } else if(myStream.state == VideoState.STOPPED){
         trace("tracy: "+myStream.state);
    function onStreamError(event:VideoError) {
         trace(event.code + "\n\t" + event);
    function onState(event:VideoEvent) {
         trace(event.state + "\n\t" + event.toString());
    function onEndOfStream(event:VideoEvent) {
         trace(event.state + "\n\t" + event.toString());
    function netStatusHandler(event:NetStatusEvent):void {
         switch (event.info.code) {
              case "NetConnection.Connect.Success":
                   //connectStream();
                   break;
              case "NetStream.Play.StreamNotFound":
                   trace("Stream not found: "/* + myStream.source*/);
                   break;

  • Streams AQ wait event on Oracle 10g

    Hello,
    I have ECC 6.0 on W2k3 with Oracle. I have some wait event about Streams AQ :
    Streams AQ: waiting for messages in the queue
    Streams AQ: qmn slave idle wait
    Streams AQ: qmn coordinator waiting for slave to start
    What does it mean ? What can I do to fix that?
    From what I read, it's seems to have something to do with parameter : aq_tm_processes
    What this parameter whould be set to? It seems to be set to O now.
    Thank you for any help,
    Nicholas

    Hi,
    What is the Patch Level of Oracle 10g which is in use ?
    Please refer Oracle Meta link 428441.1 to get more information. It will tell you the reason and the possible alternatives to deal with it. You can refer SAP Note 758563 to get Oracle Meta link access.
    Unless you use Oracle Streams Advanced Queuing , there's no need to set this parameter.
    If AQ_TM_PROCESSES is not specified or is set to 0, then the queue monitor is not created.
    In 10gR2 parameter AQ_TM_PROCESSES shouldn't be set explicitly in pfile/spfile, because Oracle autotunes it.
    Also refer the [this link|SRM Alert Management does not determine recipient runtime?; to get more info.
    Regards,
    Bhavik G. Shroff

  • Can't Stream Apple Events in QuickTime?

    I'm having difficulty playing the Apple Events live stream in QuickTime. When I click the button to open it, the file opens, and then I get the white screen with the QuickTime logo and the moving dots below it. The movie never loads.
    This occurs on both my Intel Mac mini and my iBook. Any solutions?
    Mac mini Core Solo (1.5 GHz)   Mac OS X (10.4.7)  

    I have the same problem on my machine. Has always been this way, even after upgrading to QT 7.1 today and also after buying QT Pro. Other things, like movie trailers work OK, but I can never watch any of the Apple Events. I have to use my IBM Thinkpad from work to watch these videos. Ouch!
    iMac G5   Mac OS X (10.4.7)   17" 1.8GHZ

  • Microsoft Azure - The Rise of Event Stream-Oriented Systems

    With the rise in prominence of event data streams, managing and processing those streams becomes more essential. The new Azure Event Hubs helps you predict and parse data streams.
    Read the article

    Chris,
    Really sorry for the delay in response.
    I found lots of warning messages in the logs like below one:
    578    788    24-Apr    20:49.7    18    readeriterator.cpp(587)    [000000002435A140]    0BABF215-19DF-49F5-B8DF-7210CB336DD5    NORMAL  
     "CFileReaderIterator:GetNextFileReader -> Skipping Hardlink with Physical FilePath: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy34\Windows\WinSxS\amd64_microsoft-windows-i..l-keyboard-0001042b_31bf3856ad364e35_6.2.9200.16384_none_f8e4c1f6d2951dd3\KBDARMW.DLL,
    Logical FilePath: \\?\Volume{bd3973d0-2f82-11e4-93f6-806e6f6e6963}\Windows\WinSxS\amd64_microsoft-windows-i..l-keyboard-0001042b_31bf3856ad364e35_6.2.9200.16384_none_f8e4c1f6d2951dd3\KBDARMW.DLL"
    578    788    24-Apr    20:49.7    18    readeriterator.cpp(587)    [000000002435A140]    0BABF215-19DF-49F5-B8DF-7210CB336DD5    NORMAL  
     "CFileReaderIterator:GetNextFileReader -> Skipping Hardlink with Physical FilePath: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy34\Windows\WinSxS\amd64_microsoft-windows-i..l-keyboard-0001042e_31bf3856ad364e35_6.2.9200.16384_none_fa395780d1ba2b68\KBDSOREX.DLL,
    Logical FilePath: \\?\Volume{bd3973d0-2f82-11e4-93f6-806e6f6e6963}\Windows\WinSxS\amd64_microsoft-windows-i..l-keyboard-0001042e_31bf3856ad364e35_6.2.9200.16384_none_fa395780d1ba2b68\KBDSOREX.DLL"
    So, I'm checking with concerned guys in here about this. I'll get back to you once I receive any update from them.  However, if it very urgent and need immediate assistance, I suggest you to open up a support ticket with Azure technical Support team
    as they will be able to provide you very quick solution.
    Regards,
    Manu

  • Double clicking an event doesn't open it

    My mac mini has iphoto '11 version 9.4.3. and I can't seem to open an event. When I click on it the event is highlighted in yellow and I have a little drop down arrow on the lower right that gives me the option to trash or copy it, but that's it.
    On my other macs I can double click an event to see thumbnails, then double click a thumbnail to see the actual photo. I have tried to open photos in events, photo stream, last import, and I have even downloaded photos and can't open them either. I've been through just about every preference setting there is and I'm starting to think I have a broken Iphoto. Suggestions?

    Oh, ha, ok! I just tried to change the mouse settings but didn't get anywhere with that. I'm using a Dynex wireless mouse and it seems the only thing I can change is the tracking and double click speed.

  • ASP / PHP pages: How to get streaming info from a XML file?

    Hi all
    I am using Adobe Flash Media Streaming Server 3.5 but I can't find any output file (fx a xml file) that I can pull out info from and use on my website via a PHP or ASP script. It could be nice - in the website - to retrieve info like "online users attending", "running / streaming state" (online or offline) and other relevant info about the streaming, so I on the website can display how many that are online when a webtv event is streaming.
    I see the the info when I login at the web admin for FMS, but I need a solution that can work with ASP or PHP.
    I simply can't find any file / address to get this kind or output out of FMS - can you help?
    Thank you
    Kind regards,
    Jens

    hi,
    can you share php code for grabbing data. i make php code using "simplexml_load_file" but the problem is it takes 2-3 minutes before it show the result. i want to monitor the current video if stop feeding.
    http://server1:1111/admin/getLiveStreams?auser=admin&apswd=admin&appInst=appname
    xml
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <result> 
    <level>status</level> 
    <code>NetConnection.Call.Success</code>
    <timestamp>3/21/2015 7:47:17 AM</timestamp>
    <name>_defaultRoot_:_defaultVHost_:::_0</name>
    <data> 
    <_0>appname</_0> 
    </data>
    </result>
    here;s my php code:amsstats.php
    <?php
        $result = simplexml_load_file("http://server1:1111/admin/getLiveStreams?auser=admin&apswd=admin&appInst=appname");
        echo $result->data[0]->_0;
    ?>
    result:
    http://server2/stats/amsstats.php

  • IOS device streaming working perfect but f4m quit on PC's now.

    The first event I streamed tonight worked fine for an hour or so then it stopped being accessible from the web . I had no problem viewing the stream on mobile devices though. The log file shows these errors.
    2011-12-27 16:58:39 4172 (e)2611178 Error from libf4f.dll: Failed to swap in file 'C:\fmshome\livepkgr\streams\_definst_\bbc2011-BBC12\bbc2011-BBC12.bootstrap'. -
    2011-12-27 16:58:39 4172 (e)2611178 Error from libf4f.dll: Failed to swap in file 'C:\fmshome\livepkgr\streams\_definst_\bbc2011-BBC13\bbc2011-BBC13.bootstrap'. -
    2011-12-27 17:21:30 4172 (e)2611178 Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit. -
    2011-12-27 17:21:30 4172 (e)2611423 Failed to record bbc2011-BBC23 (Unknown Error). -
    I can see the three stream directories get created but only one of them has all the files- bootstrap,control,meta,f4f,f4x. The other two stream directories only contain a control file.
    The event is streaming perfectly on iOS devices but not on PC's. The stream starts for a second then stops and displays the message 'Unable to connect to the content you've requested'.
    Thanks,
    Dave

    Sir,
    Can you please elaborate about your set-up..
    1. How many streams you hosted.
    2. Number of stream per event.
    3. Number of subscribers were there...
    Did a reclick on play button solved the issue.. It is highly unlikely that if there are some serious publishing issues (like Error from libf4f.dll etc).. then playback will be ok on devices and not on PCs. Were device and PC at that time susbscribing to different rendentions (bit rate stream) of same stream. It may happen that, PCs might be attacking a rendetion of stream which has stopped because of some error, while device might be on a different multi-bit rate rendetion of same stream ( that might be fine).. More about this can be understood by looking at the Apache's access logs.

  • Apple Event question???

    Hello,
    I couldn't watch the Apple Event live stream because I don't have Snow Leopard.
    Is Snow Leopard also needed to watch it now that it is on the Apple Events page?
    Or is it just not online yet?
    Will it be on iTunes?
    Cheers
    Message was edited by: NeddySeagoon

    Hi,
    I must admit to looking quickly and not really checking that the others were from the same event.
    The one from the right which shows Steve jobs and is about the keynote looked current at first glance.
    I then presumed that it was a partial of the whole thing and had been put up.
    On checking I see it is the June one.
    Obviously it will be there and as I said I can watch the others with what I have here.
    I am sorry for any confusion.
    This Google Search has one says that some has put something up on YouTube
    11:08 PM Wednesday; September 1, 2010

Maybe you are looking for

  • Video out, NOT.

    We just got a KDL 40w600b 40 inch and are disappointed to find that it has no way to get video out to another room so that the better half can watch from the kitchen and not miss or have to pause the content.Does Sony make anything that we can buy th

  • Wrting data to a file in specific positions

    Hi, i have written a program that reads from one text file, grabs certain data and I will write that data out to a new fie. I am successfully doing the write, but how do I tell it to write the different data in specific positions in that new file. Ri

  • Withholding Tax Report  S_P00_07000134 not excluding vendor cash discount

    Hi Gurus I am running withholding tax report S_P00_07000134. The report output has gross endor payment. It is not excluding the cash discount amount in the output. Can someone please help me as to how can we change the report S_P00_07000134 so that i

  • Sales Order Item Shipping point (VBAP-VSTEL) value in APO table

    Hi, I am looking for Sales Order Item Shipping point (VBAP-VSTEL) value in APO.Can I  get this info in APO ? This information is not available in table /SAPAPO/SDORD or  /SAPAPO/SDFIELD. Basically table /SAPAPO/SDORD is completely blank. Table /SAPAP

  • Lines Appearing on Slide Background at Runtime

    I am using Captivate 3 and cannot get support from Adobe, so I am relegated to asking and waiting for a response here. There are lines appearing on the backgrounds at runtime only. They do not appear during editing mode so I cannot remove them. It se