Displaying 14 results from an estimated 14 matches for "swfdec_gtk_player_set_play".
2007 Mar 26
0
6 commits - doc/swfdec-sections.txt libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec/swfdec_loader.c player/swfplay.c swfdec-gtk.pc.in
...en removing it
Fixes get_playing returning TRUE even though we're paused
diff --git a/libswfdec-gtk/swfdec_gtk_player.c b/libswfdec-gtk/swfdec_gtk_player.c
index b9d65eb..766f92d 100644
--- a/libswfdec-gtk/swfdec_gtk_player.c
+++ b/libswfdec-gtk/swfdec_gtk_player.c
@@ -241,6 +241,7 @@ swfdec_gtk_player_set_playing (SwfdecGtk
} else if (!playing && player->source != NULL) {
g_source_destroy (player->source);
g_source_unref (player->source);
+ player->source = NULL;
}
swfdec_gtk_player_update_audio (player);
g_object_notify (G_OBJECT (player), "playing"...
2007 Aug 16
0
Branch 'vivi' - 18 commits - configure.ac doc/swfdec-sections.txt libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_types.h libswfdec/swfdec_player.c vivified/core vivified/ui
...))
return;
- is_playing = swfdec_gtk_player_get_playing (SWFDEC_GTK_PLAYER (app->player));
is_breakpoint = app->loop != NULL;
swfdec_as_context_maybe_gc (SWFDEC_AS_CONTEXT (app));
switch (app->playback_state) {
case VIVI_APPLICATION_EXITING:
- if (is_playing)
- swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (app->player), FALSE);
- if (is_breakpoint)
- g_main_loop_quit (app->loop);
- break;
case VIVI_APPLICATION_STOPPED:
- if (is_playing)
- swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (app->player), FALSE);
- break;
case VIVI_APPLICATION...
2007 Aug 02
1
player/swfplay.c
player/swfplay.c | 36 +++++++++++++++++++++++++-----------
1 files changed, 25 insertions(+), 11 deletions(-)
New commits:
diff-tree ba4f1da69d0c74c45b0b4d92330f2203d258bb49 (from 3398ec3ae1d036d76054f7ddec170dc158e47079)
Author: Benjamin Otte <otte at gnome.org>
Date: Thu Aug 2 11:54:25 2007 +0200
make swfplay open normal files again and not require complete URLs
diff --git
2007 Aug 20
1
How to implement seek function with swfdecplayer
Hi
I have already written a flash player with swfdecplayer. I want to add new functionnalities like seek function and pause. Can I have a pointer about this.
Best regards
2007 Aug 24
0
2 commits - player/swfplay.c
...char *argv[])
g_object_unref (loader);
return 1;
}
+ loop = g_main_loop_new (NULL, TRUE);
player = swfdec_gtk_player_new (NULL);
if (trace)
g_signal_connect (player, "trace", G_CALLBACK (print_trace), NULL);
@@ -171,9 +171,11 @@ main (int argc, char *argv[])
swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (player), TRUE);
- gtk_main ();
+ g_main_loop_run (loop);
g_object_unref (player);
+ g_main_loop_unref (loop);
+ loop = NULL;
player = NULL;
return 0;
}
2007 Aug 22
0
5 commits - libswfdec/swfdec_as_object.c NEWS player/swfplay.c
...loader = swfdec_slow_loader_new (loader, delay);
swfdec_player_set_loader_with_variables (player, loader, variables);
- if (no_sound)
- swfdec_gtk_player_set_audio_enabled (SWFDEC_GTK_PLAYER (player), FALSE);
-
- swfdec_gtk_player_set_speed (SWFDEC_GTK_PLAYER (player), speed / 100.);
swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (player), TRUE);
- window = view_swf (player, use_image);
- set_title (GTK_WINDOW (window), argv[1]);
-
gtk_main ();
g_object_unref (player);
diff-tree 6f3db89d5b461a706c484b2e9da091b357d1fff0 (from d68ae26a9b84711a95c9f985b608f89e7dd2a231)
Author: Benjamin Otte &l...
2007 Apr 02
0
4 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
...c7 100644
--- a/doc/swfdec-sections.txt
+++ b/doc/swfdec-sections.txt
@@ -118,7 +118,7 @@ swfdec_mouse_cursor_get_type
<TITLE>SwfdecGtkPlayer</TITLE>
SwfdecGtkPlayer
swfdec_gtk_player_new
-swfdec_gtk_player_new_from_file
+swfdec_gtk_player_new_from_uri
swfdec_gtk_player_get_playing
swfdec_gtk_player_set_playing
swfdec_gtk_player_get_speed
@@ -162,3 +162,19 @@ SWFDEC_IS_GTK_WIDGET
SWFDEC_IS_GTK_WIDGET_CLASS
SWFDEC_TYPE_GTK_WIDGET
</SECTION>
+
+<SECTION>
+<FILE>SwfdecGtkLoader</FILE>
+<TITLE>SwfdecGtkLoader</TITLE>
+SwfdecGtkLoader
+swfdec_gtk_loader_new
+<SUBSE...
2007 Aug 13
0
Branch 'vivi' - 24 commits - configure.ac libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h vivified/core vivified/dock vivified/ui
...c void
+vivi_application_check (ViviApplication *app)
+{
+ gboolean is_playing = swfdec_gtk_player_get_playing (SWFDEC_GTK_PLAYER (app->player));
+ gboolean is_breakpoint = app->loop != NULL;
+
+ switch (app->playback_state) {
+ case VIVI_APPLICATION_STOPPED:
+ if (is_playing)
+ swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (app->player), FALSE);
+ break;
+ case VIVI_APPLICATION_PLAYING:
+ if (!is_playing)
+ swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (app->player), TRUE);
+ if (is_breakpoint)
+ g_main_loop_quit (app->loop);
+ break;
+ case VIVI_APPLICATION...
2007 Aug 14
0
Branch 'vivi' - 11 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/Makefile.am libswfdec/swfdec.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h vivified/core
...ION_STEPPING,
+ VIVI_APPLICATION_EXITING,
} ViviApplicationPlayback;
enum {
@@ -215,6 +216,12 @@ vivi_application_check (ViviApplication
swfdec_as_context_maybe_gc (SWFDEC_AS_CONTEXT (app));
switch (app->playback_state) {
+ case VIVI_APPLICATION_EXITING:
+ if (is_playing)
+ swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (app->player), FALSE);
+ if (is_breakpoint)
+ g_main_loop_quit (app->loop);
+ break;
case VIVI_APPLICATION_STOPPED:
if (is_playing)
swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (app->player), FALSE);
@@ -314,3 +321,13 @@ vivi_application_st...
2007 Mar 27
0
15 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/.gitignore libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h
...r, "trace", G_CALLBACK (print_trace), NULL);
@@ -149,18 +131,16 @@ main (int argc, char *argv[])
return 1;
}
+ if (no_sound)
+ swfdec_gtk_player_set_audio (SWFDEC_GTK_PLAYER (player), FALSE);
+
+ swfdec_gtk_player_set_speed (SWFDEC_GTK_PLAYER (player), speed / 100.);
+ swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (player), TRUE);
+
window = view_swf (player, scale, use_image);
set_title (GTK_WINDOW (window), argv[1]);
- if (no_sound || speed != 100) {
- playback = NULL;
- } else {
- playback = swfdec_playback_open (player, g_main_context_default ());
- }
- play_swf (p...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...))
return;
- is_playing = swfdec_gtk_player_get_playing (SWFDEC_GTK_PLAYER (app->player));
is_breakpoint = app->loop != NULL;
swfdec_as_context_maybe_gc (SWFDEC_AS_CONTEXT (app));
switch (app->playback_state) {
case VIVI_APPLICATION_EXITING:
- if (is_playing)
- swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (app->player), FALSE);
- if (is_breakpoint)
- g_main_loop_quit (app->loop);
- break;
case VIVI_APPLICATION_STOPPED:
- if (is_playing)
- swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (app->player), FALSE);
- break;
case VIVI_APPLICATION...
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
...c7 100644
--- a/doc/swfdec-sections.txt
+++ b/doc/swfdec-sections.txt
@@ -118,7 +118,7 @@ swfdec_mouse_cursor_get_type
<TITLE>SwfdecGtkPlayer</TITLE>
SwfdecGtkPlayer
swfdec_gtk_player_new
-swfdec_gtk_player_new_from_file
+swfdec_gtk_player_new_from_uri
swfdec_gtk_player_get_playing
swfdec_gtk_player_set_playing
swfdec_gtk_player_get_speed
@@ -162,3 +162,19 @@ SWFDEC_IS_GTK_WIDGET
SWFDEC_IS_GTK_WIDGET_CLASS
SWFDEC_TYPE_GTK_WIDGET
</SECTION>
+
+<SECTION>
+<FILE>SwfdecGtkLoader</FILE>
+<TITLE>SwfdecGtkLoader</TITLE>
+SwfdecGtkLoader
+swfdec_gtk_loader_new
+<SUBSE...
2007 Aug 09
0
Branch 'vivi' - 12 commits - libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec/Makefile.am libswfdec/swfdec_as_array.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_debugger.c
...typedef struct _SwfdecGtkPlayerClass Swf
GType swfdec_gtk_player_get_type (void);
-SwfdecPlayer * swfdec_gtk_player_new (void);
+SwfdecPlayer * swfdec_gtk_player_new (SwfdecAsDebugger * debugger);
SwfdecPlayer * swfdec_gtk_player_new_from_uri (const char * uri);
void swfdec_gtk_player_set_playing (SwfdecGtkPlayer * player,
diff --git a/player/swfplay.c b/player/swfplay.c
index c4f8523..23e3f8f 100644
--- a/player/swfplay.c
+++ b/player/swfplay.c
@@ -136,7 +136,7 @@ main (int argc, char *argv[])
g_object_unref (loader);
return 1;
}
- player = swfdec_gtk_player_new ();
+ pl...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...76,6 @@ main (int argc, char *argv[])
if (!no_scripts)
g_signal_connect (player, "fscommand", G_CALLBACK (do_fscommand), window);
- if (delay)
- loader = swfdec_slow_loader_new (loader, delay);
-
swfdec_player_set_loader_with_variables (player, loader, variables);
swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (player), TRUE);
commit 03d96dece1a5aef7f3212d4999b8a3ff71fff43f
Author: Benjamin Otte <otte at gnome.org>
Date: Sat Jan 5 13:25:13 2008 +0100
make SwfdecLoader a SwfecStream
diff --git a/libswfdec-gtk/swfdec_gtk_loader.c b/libswfdec-gtk/swfdec_gtk_loader.c
index...