Detecting END or Stream turned off in OSMF  -- Live Stream

Hi all
i am using the OSMF player to stream live events.  When the stream ends or if the feed is turned off the player throws a BUFFER state change which my code catches and shows a loading spinner, but how do i detect if the stream has ended or turned off while the user is watching?  Also will be helpfull if I want to post roll some ad or something.   I could mickey mouse it i guess if it throws BUFFER EMPTY and set a timer but there has to be an easier way to do this.
anybody?
thanks
Corey

it appears Akamais test player counts the bytes loaded when the buffer empties and sets a timer (what I thought! hey, im smart!) and then checks again and if the bytes are different it dispatches an event which backs the feed back to the start (or stops completely if FORCE LIVE is set)
now, how to know if the feed is live or memorex (ie- archived)
anybody? beuhler? beuhler?

Similar Messages

  • NIO: Detection end-of-stream

    Hi group,
    I'm writing a simple HTTP client based on NIO. Setting up a connection and sending a request all goes well. Reading the response also works, but not as expected. I would expect to receive a -1 value on the SocketChannel.read(buffer) to indicate end of stream. However, if the last chunk of data is read this method returns the size of this chunk (and not -1) and the SocketChannel.read(buffer) is not called anymore until the server closes the connection. If the timeout is not set or is set with a large value my application waits for a long time to continue.
    How do I detect the end of the (HTTP Response) stream without waiting for the connection to be closed by the server?
    Regards,
    Erwin.

    ejfdebruijn wrote:
    I'm writing a simple HTTP client based on NIO. Setting up a connection and sending a request all goes well. Reading the response also works, but not as expected. I would expect to receive a -1 value on the SocketChannel.read(buffer) to indicate end of stream. However, if the last chunk of data is read this method returns the size of this chunk (and not -1) and the SocketChannel.read(buffer) is not called anymore until the server closes the connection. If the timeout is not set or is set with a large value my application waits for a long time to continue.
    How do I detect the end of the (HTTP Response) stream without waiting for the connection to be closed by the server?By interpreting the data.
    Read the HTTP header, get the Content-Size header field's value, and limit() your buffers accordingly.
    @see the HTTP specs.
    A client-server connection might be used for more than one exchange of messages, hence it is left open. You could try passing Connection: close in the request header, but it's not guaranteed to work across the field.
    You'd have the same problem with the old IO, btw.

  • Detecting end of stream in Inputstream

    I'm new to java, and there are several things I am not familiar with.
    I want to download a web page. I have looked at the sample code here:
    http://java.sun.com/docs/books/tutorial/networking/urls/readingURL.html
    and other code like it (using URLConnection, for example). I don't understand how to detect that the entire file has been downloaded. the code
    while ((inputLine = in.readLine()) != null)doesn't seem to differentiate between a true end and just a not-ready condition. What actually happens if the buffer is still filling? What if the server puts a gap in transmission, leaving the buffer empty for a moment?
    Would someone clarify this for me, please?
    Thanks,
    Jim

    lobo93065 wrote:
    What actually happens if the buffer is still filling? What if the server puts a gap in transmission, leaving the buffer empty for a moment?Then the call will wait until it has something to return.

  • 'Detect  Lists' Won't Turn-Off

    I unchecked 'Automatically detect lists', closed the document, reopened it, and yet could not get the feature to stop. How do I get a document to quit making those darn lists, as any space I add between lines, is generating a new listing addition? Thanks!

    The easiest first-step in troubleshooting Pages is to delete its preference file. Go to HD > Users > (your account) > Library > Preferences & delete the com.apple.iwork.pages.plist file & restart Pages.
    Other possible steps to localize the problem.
    Did you try quitting & restarting Pages? How about in another user account?

  • TURN OFF - BC site live view default

    All of my BC sites default the live view to the testing server.
    How to turn that off?  Without having to uncheck everytime I open the site files.
    Don't see it anywhere in DW - is it in the admin console?

    what is the exact error message?
    how long does it take before it prompts the error message? Initial hit may be taking longer and times out. Next refresh does the trick as information gets rendered from the cache.
    ensure the list has total number of items within the "Threshold Limit" set on the Web Application in Central Admin
    Naveed.DG MCITP, MCTS -SharePoint 2010 Administrator "Vote As Helpful" If it helps!!

  • Beryl and Turn Off, Log Out etc problem.

    When Beryl is enabled and I press the Log Out... button from the kmenu or with right click to the Desktop the screen goes Completely Black and I can turn off the pc. Pressing any key of the keyboard or of the mouse the black screen disappears and everything looks normal. Trying Log Out again the same thing happens.  Some time the screen doesn't goes black but it turns gray with the program End Session for "UserName" witch contains the buttons End Current Session, Turn Off Computer etc is also behind the gray screen and I cant use it. Pressing any key the Desktop is restored. Pressing Ctrl + Alt + F1 and shuting down as root initiates the shutdown procedure but the systems hugs in saving alsas levels.
    I am using:
    KDE: 3.5.6
    Beryl: 0.2.1-1
    Kernel26: kernel26beyond 2.6.20.beyond2-1 (from testing)
    Nvidia: nvidia 1.0.9755-1 (FX5200 gpu)

    Hello Reinold.
    What type of account is this (POP, IMAP, .Mac)?
    Does your wife have any third-party Mail plugins? Does she have either a /Library/Mail/Bundles or a ~/Library/Mail/Bundles folder in the Finder?
    Go to Apple Menu > System Preferences > Accounts > Login Items. What do you see there?
    In Mail, open Window > Activity Viewer. What do you see there when Mail refuses to quit? Actually, you may be able to avoid having to force quit Mail by canceling whatever it's doing (by clicking on the red stop icon of the activity).
    Note: For those not familiarized with the ~/ notation, it refers to the user's home folder. You can easily locate any of the folders referred to in this post by copying the file path here, doing Go > Go to Folder in the Finder, and pasting the file path there.

  • Turn off App Purchases extra lives

    Hi i cant find how to turn off buying extra lives for games such as candy crush, i can do it on my I Pad through restrictions but can't find it on my Macbook Pro x can someone please help x x x

    Settings > General > Restrictions > iTunes Store: OFF
    You need to enable restrictions using a passcode to change.

  • 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;

  • HT1551 Just got apple tv - I am having issues with the video similar to the jittery picture that I got with blu-rays before turning off "Auto motion plus".  Now the netflix streams have that same jittery aspect.  Ideas?

    I am having jittery video with shows I stream from netflix.  (I just set up my apple tv).  The problem is similar to what happened when I got my blu-ray player and was solved when I turned off the "Auto motion detect" setting on my television.  Ideas?

    72jen wrote:
    Just tried changing the hertz - i got an error message that my tv may not support 50 Hz.
    5o/60Hz settings may or may not help - the TV motion processing is often the main cause of glitches.
    If you still see them with motion processing off, then it's either the video encoding, poor stream quality (Netflix) or an AppleTV issue.
    There really aren't mny options to play with.
    On the internet using a browser you may be able to log in to Netflix and specify video quality.
    AC

  • My Outlook/iCloud calendar invites to others appear to work on my end and sync with my PC and mobile, but when other people "accept" the invite, it will not populate/add in to their calendar. How can i fix this without turning off iCloud?

    My Outlook/iCloud calendar invites to others appear to work on my end and sync with my PC and mobile, but when other people "accept" the invite, it will not populate/add in to their calendar. How can I fix this without turning off iCloud?
    I am at a new office that uses Outlook (not Outlook Exchange) which does not sync with my mobile... I just got iCloud set up on my PC to sync my contacts, calendar, reminders, etc... The sync worked (not without flaws, but the other issues seem solvable... I think), so that i can now see all my appointments on both my phone and on my PC. The problem I am having is that iCloud moved all of my calendar items from Outlook into iCloud calendar and now when I send out meeting/calendar invites the recipients may accept them, but the meeting does not get added to their calendar. This is a huge problem and may mean that i need to turn off iCloud.
    Does anyone know how to fix this?
    Thanks!

    I am replying to my own post here as I seem to have fixed the problem.
    I do have some calendars that are shared. Some of those are shared with users who have time zone support turned on. So i activated time zone support on my iphone, then deleted my icloud subscription. I then signed in to icloud again and voila... problem solved.
    It is a weird one as the other calendar views were always fine and when you opened an event that appeared in the wrong day (on list view), the correct date of the event was shown in the information...
    one more bug in a complicated system I guess

  • My Airport Time Capsule only works when I turn off and turn on, but I think this may end up with the unit. What can this happening and how to solve?

    Time Capsule Airport
    Hello to all, good day, sorry my english google, but it is the tool I have at the moment. I'm having trouble with my Time Capsule Airport, I made all the settings according to the manual, but there has been a connection problem with my iMac. When I finish my work I turn off the imac and then again when they return to work and care, it can not connect to Time Capsule Airport, making it impossible to remove the files and make back up by Time Machine only works when I turn off and turn on the Airport Time Capsule , but I think this may end up with the unit. What can this happening and how to solve? Thank you.
    Olá a todos, bom dia, desculpe meu inglês google, mas é a ferramenta que tenho no momento. Estou tendo dificuldades com a minha Airport Time Capsule, fiz todas as configurações de acordo com o manual, mas tem existido um problema de conexão com meu iMac. Quando termino meus trabalhos desligo o imac e depois quando retorno pra trabalhar novamente e ligo, ele não se conecta a Airport Time Capsule, impossibilitando retirar os arquivos e fazer o back-up pelo Time Machine, só funciona quando desligo e ligo a Airport Time Capsule, mas acho que isso pode acabar com o aparelho. O que pode esta acontecendo e como resolver? Obrigado.

    This is easier to do with pictures perhaps.. since we do not share a common language and machine translation leaves a lot to be desired.
    In the airport utility bring up your Time Capsule.
    Simply post the screenshots here.
    So here is mine.
    Click on the Edit button and give us the Internet and Wireless and Network tab..
    eg.
    Please also make sure you are set to ipv6 in your wireless or ethernet .. whichever is used.. and do tell which.
    This is wifi in your computer.
    The following are important..
    DO not use long names with spaces and non-alphanumeric names.
    Use short names, no spaces and pure alphanumeric.
    eg TC name. TCgen5
    Wireless name TCwifi
    Use WPA2 Personal security with 10-20 character pure alphanumeric password.
    read apple instructions to help with TM and TC.. they did finally admit it has issues in Mavericks.
    OS X Mavericks: Time Machine problems
    Mount the TC manually in finder.
    AFP://TCgen5.local
    When asked for the password .. that is the disk access password and save it in the keychain.
    Reset Time Machine
    See A4 here. http://pondini.org/TM/Troubleshooting.html

  • Will turning off My Photo Stream also turn off iCloud Photo Sharing?

    I don't like the new Photos app in iOS 8.  I was a frequent user of the iPhoto app and am sad to see it go.  It was the best app I found for quick white balance fixes (you could point to skin on a picture and it set the white balance appropriately).  It was also great for seeing EXIF data, location data, and for sending photos to other editing apps.  The Photos app has limited support for sending to other editing apps, actually it doesn't send photos to any of the editing apps.  It also does not readily display photo informations.  The edits in the Photo app leave something to be desired (since it meant the demise of iPhoto).  I am also not a fan of how camera roll and Photo Stream are meshed together.  My family uses the iPhoto desktop app which is tied to my Photo Steam.  In iOS 7 it was easy to just ignore the Photo Stream since it would include everyone's photos and work on my camera roll, but now it's a cluttered mess.
    Since I have a subscription to Adobe Lightroom there is no need for the Photo Stream backup, so I am tempted to turn My Photo Stream off.  As indicated in the title, I would like to know if turning off My Photo Stream will also delete photos I've shared in iCloud with other users.  I would like those photos to stay and the ability to share photos going forward.  Since My Photo Stream and sharing on iCloud are two different options in Setting, I assume that turning one off won't affect the other.  Can anyone verify?

    Save your photo stream photos to your camera roll by opening your my photo stream album, tapping Select, tapping the photos, tap the share icon (box with upward facing arrow), then tapping Save to Camera Roll.  Then you can delete them from photo stream and the copies in the camera roll will remain on your phone.  Note: deleting them from photo stream will delete them from iCloud and all your devices.

  • Why is my shared photo stream taking up space on my iPhone when I have turned off photo sharing?

    I have an iPhone 5c with iOS 8.3. It's only an 8GB iPhone, so I only have about 5.2GB of space to use. So I have to be very picky about what stays and what goes on my iPhone. Photos is one of those things that don't stay on my phone long. I have deleted all of my pictures out of my albums (both camera roll and recently deleted) and there can be no photos found in my library. In settings, I turned off all photo sharing capabilities, so I shouldn't be getting shared photos from family members on my phone and stuff. So why does my storage say that shared photo stream is taking up 54.6MB? I would like it to say 0MB. Am I missing something? I've included a couple screenshots to help clarify things. Thanks for your help!

    This is what I mean. I'm seeing the 3.9 KB usage for Photo Stream under General>UIsage>Photos and Camera, nothing to do with the storage on iCloud and I have Photo Stream and everything to do with iCloud and photo sharing off. However, I may have had Photo Stream on before for a few weeks before I turned it off long ago. Could that data/used space just be a few photos that were once in Photo Stream before I turned it off if I've had it on before?

  • How do I turn off IP Flood Detection?

    I've perused the forums and have concluded in my computer-technically-naive mind that this could lead me to internet bliss...... I have been experiencing excrutiatingly slow or never-loading web pages.    Often, after a couple of minutes of waiting I will get a [cannot connect] message, yet when I press the reload button in the message, it then loads immediately.   This has been occurring for several weeks now.  Occurs across all browsers that I am using - Safari, Chrome and Firefox.   Very frustrating.   So.... how do I turn off IP Flood Detection? 
    I found an assist on-line as follows:  enter http://192.168.0.1 in the address bar. 
    User name:  admin
    Password: admin
    On status page, click Firewall. 
    On the Firewall page, disable/uncheck IP Flood Detection.    
    Unfortunately, the admin/password given doesn't work.   Does anyone have updated ones?... or perhaps another solution?

    I have an Apple Airport Extreme 5.6.1.
    5.6.1 is the version of AirPort Utility, which is the software that is only used to configure an Apple AirPort router. 
    AirPort Utility 5.6.1 will only work with the Apple routers......not with a Bell modem.
    If you have an Apple wireless router, please look on the bottom of the device for the model number.  All AirPort routers have a model number that starts with an "A" followed by four numbers.
    If you only have a Bell modem, we would not be able to provide support for that product on an Apple support site. You will need to connect the Bell support folks for assistance in that regard.

  • My iphone 4S only start whit cable plug in and then show battery very low (with red line end) then try to turn on but show searching in operator name command and not connecting and no work properly and when I plug out it turn off!!! what should I do?

    My iphone 4S only start whit cable plug in and then show battery very low (with red line end) then try to turn on but show searching in operator name command and not connecting and no work properly and when I plug out it turn off!!! what should I do?

    I'm afraid you'll have to get the phone serviced, dropping the phone must have damaged additional parts inside the phone.
    But Apple will not service the phone anymore, opening the phone and replacing the battery should only be done by authorized personal, not by users.
    You'll have to look for a 3rd party repair shop and see if they can fix this, sorry.

Maybe you are looking for

  • Web Services in WDA.

    Hi Experts, How do i trigger a web service from a WebDynpro ABAP component. Any idea regarding it is invited. I intend to use a Web service belonging to a different server, in my system so that i can invoke trhe functions and rettrieve or update the

  • In-process inspection- operation wise result recording sequence

    Hello Everyone, I have just come across a requirement and would be grateful if someone can help me out in this regard. 1.     This is make to stock discrete manufacturing scenario. 2.     Inspection type 03 has been activated in material master. 3.  

  • Error message while synchronising

    Hi everyone, every time I connect my phone to my PC, I get the following error message: RESOURCE ERROR Unable to load resource: C:\PROGRAM FILES\NOKIA\NOKIA PC PHONE\Lang\PcSync2_dut.nlr What version of Windows is being used? > Vista What Service Pac

  • Where i can find line editor in smart forms?

    I AM WORKING ON SMARTFORMS IN  ECC6.0,WHERE I CAN FIND THE LINE EDITOR.

  • PhotoShop CS5 12.0.3 update failed

    Greetings, U have the CS CS5 Masters edition and an update for PhotoShop CS5 12.0.3 came down the pipe three days ago. When I tried to update the software, it downloaded but failed during the install. There was no error code or any form of additional