Number of seconds played when reproduction is interrupted

Hi.
Sorry if my english is not all right. I´m from Spain.
I have a Server-Side Script which appends some stored mp3
files to a stream. In some moment, client can invoke a function
which stops the reproduction and i need to store the number of
seconds the interrupted audio segment was played.
I tried to solve it by using the javascript Date object in
this way:
-just after NetStream.Play.Start event is launched, i store a
timestamp: application.initialInstant = new Date();
-just after NetStream.Play.Stop event is launched, i store a
timestamp: application.finalInstant = new Date();
-var milisecondsPlayed = application.finalInstant -
application.initialInstant;
This does not work all right. The result is that, in example,
if the complete segment dures 30 seconds, this way counts about
27-28 seconds.
Does anyone know how to improve this?
I think(but I don´t know) it could be related to the
Server-Side Stream out-buffer because of the NetStream.Play.Stop
event is launched when there is no more data to append from the
file in server´s filesystem to the Server-Side Stream
out-buffer, but before all data in Server-Side Stream out-buffer is
flushed.
Thanks a lot.
#Edited:
I have checked the bufferTime property in the Server-Side
Stream has 0 as value, so my idea is not right.
I hope anybody could guide me to get my purpose.

Could be many things, we should start with this...
"Try Disk Utility
1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
*Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
3. Click the First Aid tab.
4. Select your Mac OS X volume.
5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
http://docs.info.apple.com/article.html?artnum=106214
Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
(Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.

Similar Messages

  • I opened my iPhoto library today which was stored on an external hard drive and several of my videos now will not play. The weird thing is that each file shows a duration of 1 second and when I open them it just shows one frame. What the

    I opened my iPhoto library today which was stored on an external hard drive and several of my videos now will not play at all. The weird thing is that each file shows a duration of 1 second and when I open them it just shows one frame. What the !&%$#@ Where did my original video files go?

    Sounds like a good plan, you can never be to safe and having a second External HD is safer than one.
    The only thing that I would do different, is setup the 3T as my TimeMachine Backup and then erase and move my Photos, Videos and perhaps even iTunes Media to the 1T. That way you will have room to backup both the Internal Hard Drive and the 1T External Hard Drive to the 3T using TimeMachine.
    Take your time, study and use the > Time Machine - Frequently Asked Questions if you get stuck or aren't sure how to make the move.
    Also see > iPhoto: How to move the Library folder to a new location
    iMovie ’08: Storing or moving your video library to an external hard disk
    and >  iTunes for Mac: Moving your iTunes Media folder

  • How to stop iphone 4s from putting a space after the second digit, when entering a text number from the keypad

    How do I stop the iphone 4s from putting a space after the second digit, when entering a text number from the keypad. Entering a text number on the key pad like 61998 comes out on the screen as 61 998 and the sms fails to go.

    The space (or lack thereof) should have no effect on whether or not the SMS goes through. The spacing is intended to make it easier for the human eye to comprehend the number. I'd start by resetting the network settings in General>Reset>Reset Network Settings.

  • HT201272 I downloaded an album but one of the songs is corrupted, it only plays for about 4 seconds. When I try to re-download using the iTunes Store and "Purchased", it won't give me the option to download it again. How can I get the song I PAID for!!??

    I downloaded an album but one of the songs is corrupted, it only plays for about 4 seconds. When I try to re-download using the iTunes Store and "Purchased", it won't give me the option to download it again. How can I get the song I PAID for!!??

    Depending upon what country that you are in (music can't be re-downloaded in all countries) then try deleting that track from your iTunes library and redownload it via the Purchased link under Quicklinks on the right-hand side of the iTunes store home page on your computer's iTunes.
    If you aren't in a country where you can re-download music or if it re-downloads in the same state then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • ITunes 8 & 9 - Half-second glitch when playing music

    Recently, I have noticed a half-second glitch when I have iTunes on shuffle. The first song I play plays perfectly fine, but every song after the first has a half-second glitch about 1 second into playing the song. I don't remember exactly when I started because I often just play music as background noise at home. I did upgrade to 10.6 on my MacBook Pro last month when it came out. I have NEVER had any problems like this before on my Mac. I thought upgrading to iTunes 9 would help with the issue, but it hasn't. Can anyone give me some suggestions on what to do to resolve this issue? I'm somewhat new to a Mac and haven't learned the in's and out's yet. Thanks!

    I have a similar issue. Everything was fine with iTunes 8 but when I got 9 my songs just wont play. They play like one note then just stop for 5 minutes. Then they might play for a few more seconds then they just stop.
    I don't think its a problem with my internet because all my music is like this, not just the internet stream music.
    Any help would be great.

  • I bought a second 4s, when i try to make new ID, there is a message comes:cannot sign in the maximum number of free accounts have been activated on this iPhone, is there any way to solve this problem?

    i bought a second 4s, when i try to make new ID, there is a message comes:cannot sign in the maximum number of free accounts have been activated on this iPhone, is there any way to solve this problem?

    Sure. You can do it on a Mac at the following website: https://appleid.apple.com/account

  • Slides don't play for correct number of seconds

    I am having a problem getting iPhoto to play individual slides for the correct number of seconds I have selected in the settings window. Any ideas?

    Welcome to the Apple Discussions. Have you taken into account the transition you've chosen?

  • Slideshow settings: can't fit seconds played per slide to music

    In Snapshot Theme, iPhoto is not responding to reducing the number of seconds per photo in Slide Show Settings. iPhoto continues to show each slide for the same unaesthetic long period of time (too many seconds per bars/beats in music) regardless of how many seconds the setting is reduced to.
    (1) Why won't the slides play for 5 seconds when I set it for 5 seconds...(I know it says "minimum seconds:...")...or at least shorten the period of time that a slide plays when I reduce it from, say 12 seconds minimum per slide to 5 seconds minimum per slide?
    (2) How do set seconds per slide to fit the rhythm & bars of music?

    You may have to look at 3rd party apps for this. I don't know if iMovie 09 can set each slides individually but iMovie HD 6 could. It's the last version to let you add multiple audio tracks, crop the music, fade in and out, etc. So much easier to customize a slideshow with it.
    Click to view full size
    If you had iLife 06 you could reinstall it. LQ Graphics Photo to Movie is a 3rd party app that I think will let you customize each slides time.

  • How can I go back the same song that was playing when I switched and watched a movie?

    How can I go back to the same song and place in the song that was playing when I started watching a movie?  I have over 6k songs and now my ipod always goes back to #1 even though I may have been listening to # 321.  How do I ever get to listen to all my songs.  Yes I have it on random but if I look at the songs I have played lots of them have played 15-20 times amd many more 6-8 times.  At this point I don't feel I will ever hear the latest songs I added. 
    Any help will be greately appreciated.  Also is it possible to do the same on the new ipod classic 160?

    One area that this appears is on Facebook where it lists the number of Recognized Devices. There are six devices which include iPad and iPhone. These items are grayed and you are unable to change. Also on my iphone it lists the computer name. This name is different from name of my computer. It's what I signed in as when I installed the Mountain Lion upgrade. I know I'm not doing a good job of explaining this. I have searched everywhere on my computer that I can think of and cannot locate where this is used. Any suggestions are appreciated.

  • How to set the number of seconds (or time) a photo is displayed on a slideshow (ATV2)

    Can I set the number of seconds a photo stays on the TV screen when I  do a slideshow from my ATV2?   Can't seem to find a setting on the Apple TV to do that.   For the slideshow on the ATV2 I am choosing an Event from my iPhoto library and then choosing "slideshow" after adjusting the ATV2 settings for music and theme.

    You can only set the time of slides with certain types of slideshows (i.e. classic and ken burns)

  • How to set the number of seconds a servlet is allowed to run

    I use JSP to generate a report, but it will take about 10 minutes to search.
    IE Client screen displays an error message what is "Cannot find out your page" after 8 minutes. How to set the number of seconds a servlet is allowed to run.

    It's not a matter of how long the servlet is running... it's the browser timing out because the servlet hasn't responded to its request.
    You have several options:
    1) "Browser Pinging"
    Your servlet sends some small data which can be either seen or unseen (html comments, hidden chars, etc) by the user at short intervals while your report is running. When the report is finished, the browser will not have timed out because it has been "snacking" on those small bits of data which tell the browser its original request was both heard and being handled. I don't think there is any timeout in IE as long as it receives data continually (or at least before its own timeout mark over and over again...)
    2) Multithreaded processing
    This would probably be a better approach. Have the report run in a separate thread running on the server. You'd want to store a reference to this executing report in the user's session. Instead of making the browser wait for the report to be finished, have the servlet check the user's session to see if a report exists and is running. If one does not exist, create one and start its execution. If one does exist, and is still running, print a "please wait" type of message OR an animation, etc... along with some javascript which will reload the page every few seconds. If the page reloads and the servlet sees that the report is finished, it can then display it to the user.
    Hope this helps,
    -Scott

  • IPod no longer stops playing when a podcasts ends

    Starting with iPod software 2.1 and iTunes 8.0, my iPod Touch 1st Gen. no longer stops playing when the end of a Podcast is reached. It will start playing the next Podcast episode in the list although that is an older podcast that I have already listened to.
    Prior to these software updates, I would be listening to, let's say, the MacCast podcast number 100, when it finished, the iPod would stop. I could then go up the list and play a newer episode or switch to a different podcast. However, now, once episode 100 finishes, the next episode down the list is number 99 and it starts playing automatically (even though I have already listened to it).
    Is there some new setting I am missing? Is anyone else having this problem?
    Regards,

    It's a new "feature" of the latest firmware upgrade.
    I personally hate it.
    Send Apple feedback here:
    http://www.apple.com/feedback/

  • Media stop playing after 1 or 2 second play.

    Hi.
    I have a problem with my iphone 4.
    What ever media that I play from Ipod, fm radio apps, even alarm also got problem like this.
    It will stop after 1 or 2 second play.
    Can anyone help me in this problem?
    I can't wake by the alarm because it only rang for 2 second.

    Do all your songs have a checkmark in front of them?
    iTunes will stop when it gets to a song wtith no checkmark.

  • When I play my Ipod shuffle 3rd gen there's a moment when I start hearing interference until it stops playing, when I turn it off and on again it starts playing from the first song all over again, and once it sounded like the music was slowing down.

    My Ipod shuffle 3rd gen starts playing songs with some kind of interference until it stops playing, when I turn it off and on again it starts playing from the first song all over again, and once it sounded like the music was slowing down.  First I thought it was the earphones, but I exchanged them for newer ones and so far its the same

    You may want to do a Restore on the shuffle in iTunes.  The Restore button is on the shuffle's Summary screen in iTunes.  This will erase the shuffle, re-install its software, and set it to default settings.  If it's a software or data corruption glitch, the Restore should fix it.  After the Restore, reload or resync your songs, and try it again.  As a test, you may want to initially select a small number of songs to put back on the shuffle.

  • My file .mov won't load (or) play when put on the server ?

    My file .mov won't load (or) play when put on the server ? Yet it works fine in my local network.
    The source in DW is = vid.jpeg and the link = vid.mov
    I opened the movie in QuickTime player and save it for the web. I pasted what was required...
    Can someone help me with this one ?

    Could be any number of things. We would need a link to the actual on-line page to diagnose further.
    Best wishes,
    Adninjastrator

Maybe you are looking for

  • AIO app on iPAD not finding my HP Photosmart C4750 printer

    The AIO app on my iPad can't find my HP Photosmart C4750 printer. However, the HP eprint app on my same iPad does find the printer. Printer is turned on, connected to the network. My HP laptop and my HP eprint app on my iPad both find the printer. On

  • Obtaining client certificate in servlet using apache + tomcat

    Hi, I'm porting a webapplication from Javawebserver to Apache/1.3.6 (Win32) mod_jk mod_ssl/2.2.6 OpenSSL/0.9.2b The application needs to get the client certificate hash code. Using Javawebserver I used request.getAttribute ("javax.net.ssl.cipher_suit

  • How public is mobileme gallery?

    Yesterday in trying to move a photo from iPhoto to iWeb, I agreed to have my photos in my gallery. I suddently realized afterwards that I had probably put photos of school children in the gallery. I do not have permission to do this. I can only publi

  • Teststand 4.0 log in password how to reset.

    Hello Teststand gurus, currently I'm using teststand version 4.0. I have set the administrator log in password for the past 2 weeks and I forgot the password. Is there any way to reset it? Thanks guys.  newbie here. Solved! Go to Solution.

  • BAPI to change customer contact detials

    Hi All I am trying to change the value of field ADR2-R3_user with a custom FM , this field is the mobile flag and updated internallly when there telphone number is mobile on the screen tcode VAP2.  FM should be able to change the flag . Thanks in adv