gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r10774: loadMovie takes a FILE, not


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r10774: loadMovie takes a FILE, not an uri
Date: Mon, 06 Apr 2009 11:30:04 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 10774
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Mon 2009-04-06 11:30:04 +0200
message:
  loadMovie takes a FILE, not an uri
modified:
  pythonmodule/gnashPythonExample.py
=== modified file 'pythonmodule/gnashPythonExample.py'
--- a/pythonmodule/gnashPythonExample.py        2009-02-25 22:33:03 +0000
+++ b/pythonmodule/gnashPythonExample.py        2009-04-06 09:30:04 +0000
@@ -41,9 +41,11 @@
 # Functions are accessed through the Player() class
 player = gnash.Player()
 
+input = open("../../testsuite/movies.all/gravity.swf")
+
 # The initialization of the player is split into two stages.
 # First, load the movie from the URL (currently only local files):
-if player.loadMovie("../../testsuite/movies.all/gravity.swf"):
+if player.loadMovie(input):
     print "Movie successfully created."
 else:
     print "Load of movie failed."


reply via email to

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