[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/NetStre...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/NetStre... |
Date: |
Wed, 04 Jun 2008 14:45:43 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/06/04 14:45:43
Modified files:
. : ChangeLog
testsuite/misc-ming.all: NetStream-SquareTest.c
Log message:
add progress bars for bytesLoaded/bytesTotal.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6810&r2=1.6811
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c?cvsroot=gnash&r1=1.31&r2=1.32
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6810
retrieving revision 1.6811
diff -u -b -r1.6810 -r1.6811
--- ChangeLog 4 Jun 2008 14:06:56 -0000 1.6810
+++ ChangeLog 4 Jun 2008 14:45:42 -0000 1.6811
@@ -1,5 +1,10 @@
2008-06-04 Sandro Santilli <address@hidden>
+ * testsuite/misc-ming.all/NetStream-SquareTest.c: add progress bars
+ for bytesLoaded/bytesTotal.
+
+2008-06-04 Sandro Santilli <address@hidden>
+
* libmedia/ffmpeg/MediaParserFfmpeg.{cpp,h}: implement frame parsing.
* server/asobj/NetStreamFfmpeg.cpp (refreshVideoFrame): don't do
anything if video decoder wasn't initialized.
Index: testsuite/misc-ming.all/NetStream-SquareTest.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- testsuite/misc-ming.all/NetStream-SquareTest.c 21 May 2008 11:21:55
-0000 1.31
+++ testsuite/misc-ming.all/NetStream-SquareTest.c 4 Jun 2008 14:45:43
-0000 1.32
@@ -81,7 +81,6 @@
sprintf(buffer_a,
"note(System.capabilities.version);"
"note('SWF version %d');"
-
"nc=new NetConnection();"
"check(!nc.isConnected, 'newly created NetConnection is not
connected');"
"nc.connect(null);"
@@ -100,6 +99,32 @@
sprintf(buffer_b,
// bytesTotal (read-only)
+ "MovieClip.prototype.addBytesLoadedProgress = function(v, s) {"
+ " var nam = 'blprogress_'+v;"
+ " var dep = this.getNextHighestDepth();"
+ " var pc = this.createEmptyMovieClip(nam, dep);"
+ " pc.stream = s;"
+ " pc.video = v;"
+ " var pcp = pc.createEmptyMovieClip('bar',
pc.getNextHighestDepth());"
+ " var x = v._x;"
+ " var y = v._y+v._height+10;"
+ " var w = v._width;"
+ " var h = 10;"
+ " with(pcp) {"
+ " _x = x;"
+ " _y = y;"
+ " moveTo(0,0);"
+ " beginFill(0xFF0000,50);"
+ " lineTo(0, h);"
+ " lineTo(w, h);"
+ " lineTo(w, 0);"
+ " lineTo(0, 0);"
+ " endFill();"
+ " };"
+ " pc.onEnterFrame = function() {"
+ " pcp._xscale =
100*(this.stream.bytesLoaded/this.stream.bytesTotal);"
+ " };"
+ "};"
"stream.play('%s');"
"stream2.play('%s');"
"stream.pause(true);"
@@ -240,7 +265,10 @@
"video._x = 100;"
"video._xscale = 120;"
"video._yscale = 120;"
- "video._rotation = 45;");
+ "video._rotation = 45;"
+ "_root.addBytesLoadedProgress(video, stream);"
+ "_root.addBytesLoadedProgress(video2, stream2);"
+ );
check_equals(mo, "video._x", "100") ;
check_equals(mo, "Math.round(video._xscale*100)/100", "120");
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/NetStre...,
Sandro Santilli <=