Start Buffering Without Autoplay
Hello, I'm trying to get my video player to start buffering without also auto-playing. Basically, I want the player to start buffering the video asap, so that, hopefully, by the time they hit the play button, it's buffered enough for them to start watching. I've seen some posts that mention a play-pause sequence, which I do, and that makes it start buffering. The only issue is that eventually causes the TimeEvent.COMPLETE event to fire, which is how I'm determining if the video has finished playing. I tried putting a seek(0) after the pause, but that throws an illegal operation exception; apparently the player can't yet seek. If I wrap the play-pause sequence in an if that checks canSeek, it never gets called. Is there a better way to be doing any part of this process? Is the TimeEvent.COMPLETE event not the right thing to be using to determine if the player has finished playing? Is there an autoBuffer flag that I'm just missing?
Shaun
So I discovered another issue I was having: it was calling the play-pause sequence multiple times, which seems like a bad idea. It's not just calling it once, but it never gets into the play state. This is the code I have for the play-pause sequence:
if (player.canPlay && player.canPause && !hasPlayPaused) {
hasPlayPaused = true;
trace(">>> play-pause start");
var v:Number = player.volume;
player.volume = 0;
player.play(); player.pause();
//player.seek(0); player.volume = v;
trace(">>> play-pause done");}
And this is the output:
>>> play-pause start
>>> 0: paused
>>> play-pause done
It's only changing its state once. If I then hit play, the state change event doesn't fire, but it does start to play. Same when I then hit pause. The next time I hit play it does fire, though. I have the play-pause sequence in a timer, because I couldn't find an event that allowed it to happen. The canPlay event never fired. Any insights given this information? I feel like I'm probably doing something terribly wrong.
Similar Messages
-
Java Web Start 1.6 fails to start application without Java Consol on Vista
Hi All,
I've faced with problem related to starting my application in IE 7 on Vista SP1 using Java Web Start (JRE 1.6.0_12 and 1.6.0_13). I suppose that issue appears after 11th update of JRE 1.6 since it works fine before.
There were set settings to indicate initial and maximal size of the Java heap in the JNLP file.
Application consist of 2 JAR files and they are signed with the same certificate.
When user tried to start application there is no any activity after accepting certificate. After starting application javaw.exe just disappeared from processes list without any message or error.
When I changed default setting in Java Control Panel to show Java Console, I noticed that the application began to start. But it's not a solution of the issue, since all customers cannot be required to turn on Java console.
I believe this is a bug in JRE as the application starts with Java console and doesn't without it.
When I browsed the web looking for the solution or an advice I found Release notes for 1.6.0_014 where it was said that 6u14 Java Web Start failed to launch and notifies that JARs were not signed, if an insecure Java system property was specified in a sandbox JNLP file. In spite of that 14th updated wasn't used and there was no notification I tried to start application without settings for the Java heap and it worked.
Could someone help me with advice, since the application cannot be started with default heap size settings.
Thanks in advance.
Edited by: vovanst on Jul 28, 2009 8:06 AMHi,
as the 6u15 just arrived and the above mentioned bug should've been fixed (though I was unable to verify through the release notes), the error is still in there.
We have no timestamped jars, neither ours nor the bouncy castle ones, all certs are valid, ours is self signed.
6u13 runs, 6u14/6u15 won't.
I followed the instructions here: http://bouncycastle.org/devmailarchive/msg10415.html to no avail.
The bcprov.jar is wrapped in its own jnlp and referred as extension from the "main" jnlp.
The interesting parts of the stack trace are these:
Caused by (via getCause): java.lang.SecurityException: JCE cannot authenticate the provider BC
at javax.crypto.Cipher.getInstance(DashoA13*..)
at javax.crypto.Cipher.getInstance(DashoA13*..)
Caused by (via getCause): java.util.jar.JarException: Cannot parse https://localhost:8443/deploy/bcprov.jar
at javax.crypto.SunJCE_c.a(DashoA13*..)
at javax.crypto.SunJCE_b.b(DashoA13*..)
at javax.crypto.SunJCE_b.a(DashoA13*..)
at javax.crypto.Cipher.getInstance(DashoA13*..)
at javax.crypto.Cipher.getInstance(DashoA13*..)
For me it seems there's a problem with resolving the url of the bcprov.jar, which would explain the lack of a delay which normally occurs when JCE verifies the signature of the bcprov provider classes. The error pops up almost instantly.
I'm clueless what to do now. Did Sun really achieve to completely destroy JCE provider functionality in Javaws, forcing us to use an alternative implementation?
Patric -
Updates were not configured correctly. reverting changes.
I get this in VISTA 64 bit vm and always auto restart prior start complete, without let me do anything... well?I pause vm --- what else can do?
I tried apply vista updates... initially -
when i turned on my i pod a white apple logo was shown which then turned to rainbow colours and the i pod started buffering, this is all it does, i cannot get it to stop and my computer will not talk to the i pod, help?
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar -
My I Mac does not start properly without pressing option and apple keys ,and it freezes
My I Mac does not start properly without pressing option and apple keys ,and it freezes
Try any of the following:
http://support.apple.com/kb/HT1379 Resetting your Mac's PRAM and NVRAM
Disconnect all devices from the computer then do the following:
Boot up from your Snow Leopard Install DVD while holding down the "c" key.
Select the language you wish to use, and then choose "Disk Utility" from the menu bar.
Your HD should appear in a panel on the left hand side of the window which opens. Select it and then click on the "repair disk" button in the right hand section of the window.
Once this process has been completed restart your computer and repair permissions directly from Disk Utility.
If Disk Utility is unable to complete the repair, you will need to use a stronger 3rd party utility like DiskWarrior, Techtool PRO (not Deluxe) or Drive Genius.
Troubleshoot the spinning beach ball/freezing & crashing -
How to chage Workspace Start Page without installing Reporting and Analysis
Hi:
any one know how to chage Workspace Start Page without installing Reporting and Analysis?
thanksNot totally sure what you are asking but if you want to change the start page for users/groups have a read of - http://download.oracle.com/docs/cd/E17236_01/epm.1112/bpmui_admin/frameset.htm?assigning_default_preferences.html
Cheers
John
http://john-goodwin.blogspot.com/ -
How to chage Workspace Start Page without installing Reporting and Analys?
Hi:
any one know how to chage Workspace Start Page without installing Reporting and Analysis?
thanksNot totally sure what you are asking but if you want to change the start page for users/groups have a read of - http://download.oracle.com/docs/cd/E17236_01/epm.1112/bpmui_admin/frameset.htm?assigning_default_preferences.html
Cheers
John
http://john-goodwin.blogspot.com/ -
How do you move a track region in Garage Band to a new starting point without altering the existing length of the track? Thanks.
What exactly are you trying to do? You can drag any region by grabbing it in the middle of the upper area with the highlighted name of the region. However, if you move it towards the end of the track, the length of the track will get longer, to accommodate the extra part of the region. DO you want to speed up the region, to shorten it or do you want to trim it? You can simply grab the right margin of the region and drag it, to make the region shorter.
-
How can i start aperture without retyping the serial number?
how can i start aperture without retyping the serial number?
Quit Aperture.
Go to your Macintosh HD and open the folder "Library", then "Application Support", then "ProApps".
Remove the File "ProAppsSystemID" to the Desktop, if it exist and restart Aperture.
Reenter your serial number, hopefully for the last time. -
Starting up without spaces flying around
I have 4 spaces. ichat and skype are automaticly started in 4th space, Mail in 2nd while logging in.
is there a way to start up leopard, so that the screen would be focused and stayed in first space, and it would not jump from space to space where the programs are being auto started?
it would be also very useful to know how to auto start dashboard without actually showing it on the screen at that time. checking the "hide" box in login items settings does not work.I don’t think there is a way to prevent Spaces from going to its assigned Space to start each application at startup.
I have 10 applications that open at startup and I’ll admit it was a somewhat dizzying effect the first few times. But it only takes about a minute to finish opening them. You could try looking away, starting your screensaver, or going to get a cup of coffee while it starts up.
As for Dashboard, it doesn’t have a hide function. Either it is active or it is not. Opening it at startup serves no purpose if you don’t want to use it immediately after startup. Press the F3 function key when you want it and click outside a widget when you don’t. -
Photo Booth start up without a videowindow
Does anybody know how it is possible that Photo Booth start up without a video window and cause of that i can't take pictures or video's. Videochat works normaly. I deleted com.apple.PhotoBooth.plist, but that didn't help. MB details: MB white (Nov 2006, May 2007), OS X 10.4.11. Kind Regards Nina.
Welcome to Discussions, Nina
If your 10.4.11 Mac's Mac OS X Maintenance is not up-to-date, do it now and see if your problem goes away.
(For other readers, my 10.5.x Mac runs the Chrons automatically whenever needed as soon as it wakes from sleep. However, I must force the chrons on my 10.3.x and 10.4.x Macs unless they are kept awake 24 hours a day.)
If Maintenance is not your problem, it seems to me that you need to reinstall Photo Booth. There are three ways to do this in order of how easy they are to accomplish:
(0) Copy from your backup disk (if you backup your system or have more than one 10.4.11 Mac)
(1) Reinstall all Bundled Software that came with your Mac. If you need help,
see page 51 of the User Guide that came with your MacBook.
(2) If you do not want to reinstall ALL bundled software, you can use Pacifist to install only the Photo Booth app.
EZ Jim
G5 DP 1.8GHz w/Mac OS X (10.5.6) PowerBook 1.67GHz (10.4.11) iBookSE 366MHz (10.3.9) External iSight -
My menu bar always starts up without transparency
My menu bar always starts up without transparency. It won't change unless I open an application then the bar will change to transparent. In the system preferences I checked to see if transparency is turned on. And sure enough it is. I already tried other solutions like repairing permissions with disk utility, I also tried some terminal command that someone suggested. This did not help. If anyone is having the same problem please post it. Any help would be great.
HI,
Please do not cross post for the same topic. http://discussions.apple.com/thread.jspa?threadID=1974647&tstart=0
I replied to that post.
Carolyn -
Just bought New battery charged it and the mac finds it but can't start it without charger and when i remove charger in os it dies right away what to do???
Here´s some info:
Macbook Pro 2008 (Early)
Lion
Some INFO from power in about mac
It´s Danish hope you can understand the info
Batterioplysninger:
Modeloplysninger:
Serienummer:
Producent: SMP
Enhedsnavn: ASMB012
Pack Lot Code: a0b0
PCB Lot Code: c0f1
Firmware-version: 8800
Hardwarerevision: 0
Cellerevision: 0
Oplysninger om batterispænding:
Resterende kapacitet (mAh): 5200
Fuldt opladt: Ja
Oplader: Nej
Fuld ladekapacitet (mAh): 5200
Oplysninger om batteritilstand:
Antal cykler: 1
Betingelse: Normal
Batteri installeret: Ja
Strømstyrke (mA): 0
Spænding (mV): 11796
Energiindstillinger til system:
AC-strømforsyning:
Interval for vågeblus for system (minutter): 30
Interval for vågeblus for disk (minutter): 10
Interval for vågeblus for skærm (minutter): 10
Genstart automatisk efter strømafbrydelse: Nej
Afbryd vågeblus ved ændret spændingskilde: Nej
Afbryd vågeblus, når skærmen slås op: Ja
Afbryd vågeblus via LAN: Ja
Aktuel strømkilde: Ja
Vågeblus dæmper lysstyrken: Ja
PrioritizeNetworkReachabilityOverSleep: 0
RestartAfterKernelPanic: 157680000
Batteri:
Interval for vågeblus for system (minutter): 10
Interval for vågeblus for disk (minutter): 10
Interval for vågeblus for skærm (minutter): 2
Afbryd vågeblus ved ændret spændingskilde: Nej
Afbryd vågeblus, når skærmen slås op: Ja
Vågeblus dæmper lysstyrken: Ja
Formindsk lysstyrke: Ja
RestartAfterKernelPanic: 157680000
Hardwarekonfiguration:
UPS installeret: Nej
Oplysninger om oplader:
Tilsluttet: Ja
Id: 0x0100
Watt (W): 85
Revision: 0x0000
Familie: 0x00ba
Serienummer: 0x004fe0c9
Oplader: NejTake it to an Apple Genius Bar to be checked out. It will either be the battery or the Logic board (not sure the charging circuit is a separate part. If it is then it mya be just that part).
If logic board just use it plugged in as for the cost of changing out the logic board you can buy a new system. -
On start up, Imovie states that it cannont play a movie because it is missing a particular file. This happenens every time on start up without selecting a clip to view. It even freezes imovie. Any suggestions?
You are very wrong about that mystified. What do YOU think made my computer work without beeping at all hu? (I bet you're gonna tell me). I figured it out.
RE-INSTALL WINDOWS 7 OS.
SOLVED.
DOESN'T BEEP ANY MORE.
THAT IS A PART OF microsoft ISN'T IT.
::: EGO KILLER 9000 ::: -
Stop / start buffering from tv to films
hi all im new and if this has been covered apologys .
i have a 1phone 4 ios 5.0.1 -- 04.11.08 on the three uk all you can eat data plan . data speed on avarage 3G 4.6mbs - 6.7 mbs
i try and belive me i really try to watch catch up tv / filmon / netflix / ..and face a constant issue of stop start / buffering .
all i get is the progress meter and volume level i press the screen it disapears and somtimes starts to play for a matter of seconds
and then stops yet again .
i have tested my conection time and time again and gone to great leanghths to be 100% sure three arnt throtteling me .(they are not )
i have tethered my iphone to my laptop and no problems at all it just plays and plays and plays maybe once in a blue moon it may buffer normally
at peak times .
three have been very helpfull and spent a large amount of time trying to sort this problem for me to no avail .
they have sent me so many new micro sims just incase thats the coaurse .
im on to my 3rd iphone 4 still the problem arrises its not a mast issue as i have this problem nation wide .
i have used differant phones for example htc desire hd and it plays none stop with my micro sim card + adapter cover .
i recently sent a email to saga regarding sonic all starts racing game for the iphone 4 as it has conection issues over 3g and keeps droping conection.
they sent me a responce back saying we are aware of a conection issue regarding the iphone 4 on the IOS 5.0.1 .
apple are investigateing this issue and as are we .
we intend to release an update that should help with this problem .
we have been informed by apple that a update is forthcoming in the next few months .
i hope this ansewrs your question .
this kind of ansewrs my next question but want to be sure is this a well know issue you guys are facing as well ?
any body have a solution or fix around .?
thanks very fed up mailroommanIf your loop continues, why not just do a time check in that data acquisition loop? If the time expires, stop and let the outter loop reset everything.
Another thing to be aware of, since you are using USB, make sure your power settings for the bus is for Windows to never shut down the USB hub power. By default, Windows has this "power saving" feature set to turn off the USB hub if it doesn't certain activity. That might be what is causing your DAQ to hang.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Maybe you are looking for
-
Master data in R/3 and automatic creation of CVC ?
Hi All, we have requirement that all the master data created in R/3 should come to APO.Now some of the master data are optionals in R/3 so we need to develop a custom program so that if any master data is missing in APO then Master Data Controller sh
-
Airplay no longer works with iTunes
Airplay no longer works with iTunes 10.6; try to stream to speakers connected to Airplay device--use to work fine. Now, in iTunes, the icon in the bottom corner actually says 2 speakers, as it should, but when I open it it only shows speakers connect
-
Have just down loaded Yosemite over Mountain Lion, Indesign CS5 does not work ( Am dependant on it) although Bridge , Light Room and Elements operate OK How do I solve this rapidly. Can any one help on this issue. Thanks
-
Crystal Reports Server XI Installation
We just purchased Crystal Reports Server XI for Crystal Reports Professional and I want to install it minimally as I think we may have "overbought"; that aside, the big question is where do I go from here to put this on our servers w/o impacting curr
-
10.5.6 setup on mini with USB nic, not receiving DHCP from WAN (cable modem
Hello, I'm probably in a little over my head thinking I could configure MacOS X Server without much IT knowledge. But I started, so I'm not giving up yet. Here's my setup: — cable modem ethernet connects to USB nic (the apple macbook air one) plugged