Commit Graph

707 Commits

Author SHA1 Message Date
Ray Greenwell 93a4814155 Just as clear without this const.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@713 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-17 16:24:49 +00:00
Ray Greenwell 5bc77aa0d0 Possible type 3 optimization, but well... it doesn't really make the code
weirder, but it does add a bit more code.
( http://smallwig.blogspot.com/2008/04/smallwig-theory-of-optimization.html
  mdb pointed this post out to me.)
It just bugged me that we use this player to play background music
in whirled, and in that circumstance 99% of the time nobody cares about
these events, so why have a timer to calculate and fire them off?


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@712 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-17 16:14:07 +00:00
Ray Greenwell 526db3bb05 This shouldn't happen, but it did once for me. Heisencope.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@711 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-17 06:17:09 +00:00
Ray Greenwell ee72820b54 Ouch, I changed that to 25 a while back while testing, but we want 250.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@710 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-17 05:59:03 +00:00
Ray Greenwell 5161e49bd4 Wow, when you tell a sound to loop, the position just continues
to increase, up past the duration. Seeking in those mode also
causes it to get wiggy and freak out. So don't have flash loop it,
but just loop it ourselves by autorewinding and playing again.
Also, just autorewind and pause if not looping, which I had
wanted to do anyway.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@709 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-17 05:51:20 +00:00
Ray Greenwell 8cd31c9564 Ah-ha. After testing id3 tags with 3 different mp3 files that all
should have had id3 tags, and trying everything, I tried one
more mp3 file: bingo.
Added MediaPlayer.getMetadata() and a METADATA event.
Contents of metadata vary by media being played and are open for
interpretation by users of the player.
FLV video returns their metadata object.
MP3 audio returns id3 tags.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@708 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-16 17:11:35 +00:00
Ray Greenwell 9da0886afc Dammit! Id3 tags are not working at all. I'm checking the crossdomain.xml. Grr!
Removed debugging.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@707 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-15 02:51:04 +00:00
Ray Greenwell 2b81e25445 - AudioPlayer interface extends MediaPlayer.
- Mp3AudioPlayer implements AudioPlayer.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@706 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-15 02:21:51 +00:00
Ray Greenwell 3ce7fc7f6a More prepatory renaming and refactoring. Nothing of interest.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@705 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-14 21:43:33 +00:00
Ray Greenwell decb92fc08 Repackaging in preparation for refactor.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@704 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-14 21:29:34 +00:00
Ray Greenwell 0fdf0da9d5 Nixed debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@703 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-13 02:10:16 +00:00
Ray Greenwell 853b318a2c Cleanup.
Since MediaContainer imports this, I've got half a mind
to just reduce this simple player back down to play/pause
and have MsoyVideoDisplay subclass this.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@702 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-13 00:40:38 +00:00
Ray Greenwell 6f82c8b7a9 As usual, flash sucks and the NetStream object notifies us when it has seeked,
but reading the position value off the object returns the old position.
If we wait 1 frame we get the updated value.
Fuckers.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@701 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-13 00:39:46 +00:00
Dave Hoover e92d57e315 Some warning cleanups, widening, and varargs logification.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@700 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-12 18:45:13 +00:00
Ray Greenwell 9931cae098 Comments.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@699 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-12 18:34:03 +00:00
Ray Greenwell 59536d47ad Bugfix: stop the positionTimer when we unload.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@698 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-12 05:32:43 +00:00
Ray Greenwell f5e900eedd - Broke out creating the video UI into a method.
- Bank on the video UI having sane width/height. 


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@697 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-12 05:26:58 +00:00
Ray Greenwell e4dd02746c Broke unloading the media out into its own method.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@696 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-12 02:48:19 +00:00
Ray Greenwell d7e607972d Out with the old.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@695 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-12 00:30:15 +00:00
Ray Greenwell b18ac89db9 Cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@694 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-12 00:29:59 +00:00
Dave Hoover c4af53338c Rejigger component rendering order a bit so that individual components can have their own
priority overrides, since unfortunately, not all male/familiars are created equal.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@693 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-10 23:02:00 +00:00
Ray Greenwell 6294232dce Roll this back. You don't even want to see the unchecked-in code I also trashed.
Too bad the bitchy comment about adobe goes too.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@692 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-10 20:54:56 +00:00
Ray Greenwell e14212f5b4 Add a way to set the HTML text.
Oh yeah, links don't work unless the field is selectable. WHY?
Carbomb adobe.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@691 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-10 20:16:44 +00:00
Michael Bayne dcfc762d1f Added isRunning().
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@690 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-08 00:11:00 +00:00
Michael Bayne ab024a3054 Added isRunning().
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@689 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-08 00:10:17 +00:00
Ray Greenwell b6f41f765e Autoplay FLVs, for now, like the old player did.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@688 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-06 20:09:32 +00:00
Ray Greenwell 361d5aeb61 Comment out the advanced controls, they're not ready for prime-time.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@687 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-06 20:09:17 +00:00
Ray Greenwell 6e7dbada64 Dragging the knob to seek.
Works not-so-well with youtube. I'll revisit later...


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@686 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-04 23:16:07 +00:00
Ray Greenwell 3ff4c5de51 Just redispatch Event.COMPLETE from our Loader.
This fixes the AVRG loading button...


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@685 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-04 23:15:10 +00:00
Ray Greenwell 1e33a90f14 Checkpoint: seeking, tweaking... no peeking!
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@684 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-04 03:52:34 +00:00
Ray Greenwell cda3d6f94e Headless building for happy Mac development.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@683 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-04 01:40:56 +00:00
Ray Greenwell 343b24728c Tidied logging, including commenting out super-annoying unload messages.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@682 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-01 03:15:04 +00:00
Ray Greenwell 666999284e Use the new video player.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@681 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-01 03:10:45 +00:00
Ray Greenwell 8ee553c3e3 New video stuffs.
- VideoPlayer is the interface to the video backend.
- Adapted my old VideoDisplayer into a FlvVideoPlayer
and the SimpleVideoDisplay frontend.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@680 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-11-01 03:10:21 +00:00
Ray Greenwell 7ac5d036de Dispatch a COMPLETE event when we finish loading media.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@679 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-31 00:10:46 +00:00
Charlie Groves df7fdc5e81 Add tileToFull
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@678 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-29 01:11:57 +00:00
Ray Greenwell df41e4e849 Added createText() for conveniently creating a multiline text widget.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@677 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-27 23:42:03 +00:00
Jamie Doornbos c420e540d6 New method to allow a command button to be activated, emulating a user click
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@676 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-27 22:13:45 +00:00
Dave Hoover 8d4c46f3c3 Some widening/varargs logging/javadoc fixes.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@675 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-27 21:54:28 +00:00
Michael Bayne fbe0b18bb3 Bye bye log spam, hello once again readable client logs.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@674 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-24 19:01:36 +00:00
Dave Hoover 4c9ac3ad6f Use RandomUtil.getChance()
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@673 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-22 17:26:51 +00:00
Charlie Groves e2e3243a29 Reinstate the mask cache. We were spending about half our scene time making masks
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@672 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-22 01:02:31 +00:00
Charlie Groves b13728ac5f Wait for the call to wasResolved to call back about being abandoned as the scene panel is expecting that to be on the AWT thread
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@671 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-22 00:13:58 +00:00
Ray Greenwell 7fdedc30a3 ooo-style formatting and importing.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@670 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-17 22:07:50 +00:00
Ray Greenwell 1df26e8813 Added LoaderUtil, which has unload.
Hmm, I'm not able to use unloadAndStop() yet.
Perhaps I need to grab an even newer version of the flex SDK,
so it's commented out for now.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@669 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-16 00:49:34 +00:00
Ray Greenwell a19690f205 Added countLayoutChildren(), which counts the children of a container that
have includeInLayout = true.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@668 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-15 20:45:27 +00:00
Ray Greenwell fcf091b5c1 Allow the up and down arrow keys to traverse the command history, like we do in Java.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@667 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-14 21:25:37 +00:00
Ray Greenwell c0a22fdabb Line wrappery.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@666 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-10-14 21:24:50 +00:00
Dave Hoover 1daf5c206b And of course, if I were thinking this morning, I would've rerun the organize imports
thing before committing instead of just going "oh yeah, I've been having this stuff
sitting around uncommitted for a while waiting on it to be blessed" and missing
out on things that'd changed in the meantime.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@665 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-09-26 17:35:27 +00:00
Dave Hoover b473318b12 More import cleanups to go with r662, along with a little bit of foreaching, widening, etc.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@664 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-09-26 17:29:23 +00:00