gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r10776: Drop initVM call, as it does


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r10776: Drop initVM call, as it doesn't exist anymore. Accept filename of movie to load as argument.
Date: Mon, 06 Apr 2009 11:53:00 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 10776
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Mon 2009-04-06 11:53:00 +0200
message:
  Drop initVM call, as it doesn't exist anymore. Accept filename of movie to 
load as argument.
modified:
  pythonmodule/gnashPythonExample.py
=== modified file 'pythonmodule/gnashPythonExample.py'
--- a/pythonmodule/gnashPythonExample.py        2009-04-06 09:39:28 +0000
+++ b/pythonmodule/gnashPythonExample.py        2009-04-06 09:53:00 +0000
@@ -41,7 +41,12 @@
 # Functions are accessed through the Player() class
 player = gnash.Player()
 
-input = open("../../testsuite/movies.all/gravity.swf")
+uri = "../../testsuite/movies.all/gravity.swf"
+
+if len(sys.argv) > 1:
+       uri = sys.argv[1]
+
+input = open(uri)
 
 # The initialization of the player is split into two stages.
 # First, load the movie from the URL (currently only local files):
@@ -60,14 +65,6 @@
 print "URL: " + player.swfURL() + "."
 
 
-# The second stage completes loading and initialization.
-if player.initVM():
-    print "VM initialized."
-else:
-    print "VM initialization failed."
-    sys.exit()
-
-
 print "Loaded " +  str(player.swfBytesLoaded()) + " of " + 
str(player.swfBytesTotal()) + " bytes reported."
 
 # This initializes the named renderer. "Cairo", "OpenGL" and various


reply via email to

[Prev in Thread] Current Thread [Next in Thread]