Displaying 9 results from an estimated 9 matches for "swfdec_scriptable_set_vari".
2007 Feb 17
0
8 commits - configure.ac doc/swfdec-sections.txt libswfdec/swfdec_loader.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h
...delay == 0) {
g_printerr ("File \"%s\" is not a file Swfdec can play\n", argv[1]);
diff-tree b17cfe355c47b978935f2225917089e832253cef (from be155c9ea8089329611a96e8255dd128dbf37684)
Author: Benjamin Otte <otte@gnome.org>
Date: Sat Feb 17 12:44:53 2007 +0100
use swfdec_scriptable_set_variables if variables are set on the loader
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index cbdac1b..2255771 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -870,9 +870,11 @@ swfdec_player_add_level_from_loader (Swf
movie = swfdec_movie_new_for_p...
2007 Mar 01
0
7 commits - libswfdec/swfdec_connection.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_js_xml.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h
...c_scriptable.h
@@ -60,6 +60,9 @@ JSObject * swfdec_scriptable_get_object
gpointer swfdec_scriptable_from_jsval (JSContext * cx,
jsval val,
GType type);
+gpointer swfdec_scriptable_from_object (JSContext * cx,
+ JSObject * object,
+ GType type);
void swfdec_scriptable_set_variables (SwfdecScriptable * script,
const char * variables);
diff-tree c093bc3060a499d2f2552b614498ab20e3b22dc9 (from parents)
Merge: 3e757b2781984c01f99384dd12e729b2a4c9c2c8 c87585512fddb167171f7762b4a87598e0b0447d
Author: Benjamin Otte <otte@gnome.org>
Date: Thu Mar 1 13:20:29 2007...
2007 Jul 13
0
4 commits - configure.ac libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_object.h libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h NEWS
...JSContext *cx, jsval val, GType type)
-{
- JSObject *object;
-
- g_return_val_if_fail (g_type_is_a (type, SWFDEC_TYPE_SCRIPTABLE), NULL);
-
- if (!JSVAL_IS_OBJECT (val))
- return NULL;
- object = JSVAL_TO_OBJECT (val);
- return swfdec_scriptable_from_object (cx, object, type);
-}
-
-/**
- * swfdec_scriptable_set_variables:
- * @script: a #SwfdecScriptable
- * @variables: variables to set on @script in application-x-www-form-urlencoded
- * format
- *
- * Verifies @variables to be encoded correctly and sets them as string
- * properties on the JSObject of @script.
- **/
-void
-swfdec_scriptable_set...
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...e DefineFunction2 work
use this as parent in DefineFunction
add 2 tests for function scopes
Add swfdec_player_set_loader_with_variables stub
add missing print function for GetURL2
add -_. to nonescaped chars in x-www-form-urlencoded
test unescaped chars
add swfdec_scriptable_set_variables to set variables on the scriptable's JSObject
use swfdec_scriptable_set_variables if variables are set on the loader
implement --variables or -v flag to provide Flash variables
apparently / doesn't get escaped either
move SwfdecColor definition to swfdec_types.h...
2007 Mar 07
0
11 commits - libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h
...,6 +25,8 @@
#include "swfdec_debug.h"
#include "swfdec_loader_internal.h"
#include "js/jsapi.h"
+#include "js/jsfun.h"
+#include "js/jsinterp.h"
G_DEFINE_ABSTRACT_TYPE (SwfdecScriptable, swfdec_scriptable, G_TYPE_OBJECT)
@@ -234,3 +236,69 @@ swfdec_scriptable_set_variables (SwfdecS
}
}
+/**
+ * swfdec_scriptable_execute:
+ * @script: a #SwfdecScriptable
+ * @name: property name that contains the handler
+ * @n_args: number of arguments to pass to handler
+ * @args: @n_args arguments that will be passed to handler
+ *
+ * Executes a callback function (like...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...e DefineFunction2 work
use this as parent in DefineFunction
add 2 tests for function scopes
Add swfdec_player_set_loader_with_variables stub
add missing print function for GetURL2
add -_. to nonescaped chars in x-www-form-urlencoded
test unescaped chars
add swfdec_scriptable_set_variables to set variables on the scriptable's JSObject
use swfdec_scriptable_set_variables if variables are set on the loader
implement --variables or -v flag to provide Flash variables
apparently / doesn't get escaped either
move SwfdecColor definition to swfdec_types.h...
2007 Mar 01
0
11 commits - libswfdec/Makefile.am libswfdec/swfdec_connection.c libswfdec/swfdec_connection.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js.h libswfdec/swfdec_js_net_stream.c
...>
Date: Thu Mar 1 11:33:13 2007 +0100
Fix read-out-of-bounds when processing valid strings
diff --git a/libswfdec/swfdec_scriptable.c b/libswfdec/swfdec_scriptable.c
index f48c9be..772a7de 100644
--- a/libswfdec/swfdec_scriptable.c
+++ b/libswfdec/swfdec_scriptable.c
@@ -173,8 +173,11 @@ swfdec_scriptable_set_variables (SwfdecS
g_return_if_fail (SWFDEC_IS_SCRIPTABLE (script));
g_return_if_fail (variables != NULL);
+ SWFDEC_DEBUG ("setting variables on %p: %s", script, variables);
+ if (*variables == '\0')
+ return;
object = swfdec_scriptable_get_object (script);
- while (*v...
2007 Mar 15
0
11 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_debugger.h libswfdec/swfdec_event.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...SwfdecRootMovie *root;
- GList *found;
+ swfdec_player_remove_level (player, depth);
movie = swfdec_movie_new_for_player (player, depth);
root = SWFDEC_ROOT_MOVIE (movie);
root->player = player;
@@ -954,13 +954,6 @@ swfdec_player_add_level_from_loader (Swf
if (variables)
swfdec_scriptable_set_variables (SWFDEC_SCRIPTABLE (movie), variables);
swfdec_loader_set_target (root->loader, SWFDEC_LOADER_TARGET (root));
- found = g_list_find_custom (player->roots, movie, swfdec_movie_compare_depths);
- if (found) {
- SWFDEC_DEBUG ("remove existing movie _level%u", depth);
-...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...;
player->actions = swfdec_ring_buffer_new_for_type (SwfdecPlayerAction, 16);
player->cache = swfdec_cache_new (50 * 1024 * 1024); /* 100 MB */
@@ -960,7 +972,7 @@ swfdec_player_add_level_from_loader (Swf
root->player = player;
root->loader = loader;
if (variables)
- swfdec_scriptable_set_variables (SWFDEC_SCRIPTABLE (movie), variables);
+ swfdec_movie_set_variables (movie, variables);
swfdec_loader_set_target (root->loader, SWFDEC_LOADER_TARGET (root));
return root;
}
@@ -1042,42 +1054,41 @@ swfdec_player_initialize (SwfdecPlayer *
g_object_notify (G_OBJECT (player), &qu...