search for: swfdec_player_advance

Displaying 20 results from an estimated 40 matches for "swfdec_player_advance".

2007 Aug 26
0
9 commits - libswfdec-gtk/swfdec_source.c libswfdec/swfdec_marshal.list libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_swf_instance.c test/dump.c test/Makefile.am
...add same hack here diff --git a/test/swfdec-extract.c b/test/swfdec-extract.c index 04f5988..73e49fa 100644 --- a/test/swfdec-extract.c +++ b/test/swfdec-extract.c @@ -240,6 +240,8 @@ main (int argc, char *argv[]) } player = swfdec_player_new_from_file (argv[1]); + /* FIXME: HACK! */ + swfdec_player_advance (player, 0); if (!SWFDEC_IS_SPRITE_MOVIE (player->roots->data)) { g_printerr ("Error parsing file \"%s\"\n", argv[1]); g_object_unref (player); diff-tree 560fa82af756a4fbe6e132bd7f99b636a7ad9be7 (from 35f50913a304a1888c1f8d215c3d9f1cf1e1f146) Author: Benjamin...
2008 Sep 01
1
Porting Swfdec to Mac OS X & Timing question
...xt_event(_private- >_player); [_private->_nextEventTimer release]; _private->_nextEventTimer = nil; if (millisecondsToNextEvent == -1) // nothing's going on, so do nothing return; else if (millisecondsToNextEvent == 0) // we need to trigger the next event immediately { swfdec_player_advance(_private->_player, millisecondsToNextEvent); if (swfdec_player_is_initialized(_private->_player)) { unsigned int width, height; swfdec_player_get_default_size(_private->_player, &width, &height); [self setBounds:NSMakeRect(0.0, 0.0, width, height)]; [self setNee...
2007 Aug 09
1
swfdec ported on arm
...wfdec-0.5 for ARM and I have also written a player for framebuffer. But its too slow!! Can you tell me the reason behind this? Can i increase speed by somehow? I doubt my code for player. I have written following loop in my player: while(1) { diff = swfdec_player_get_next_event(player); swfdec_player_advance(player, diff); swfdec_player_render(player, cr, 0, 0, w, h); } Shall I add something? Thanks in advance. Shabbir -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freedesktop.org/archives/swfdec/attachments/20070809/53489498/attachment.htm
2007 Jun 13
0
Branch 'as' - 2 commits - libswfdec/swfdec_sprite.c test/trace
...ec_player_get_rate (player)); - /* FIXME: Make the number of iterations configurable? */ - while (TRUE) { - /* FIXME: will not do 10 iterations if there's other stuff loaded */ - guint advance = swfdec_player_get_next_event (player); - - if (advance > time_left) - break; - swfdec_player_advance (player, advance); - time_left -= advance; - } + advance = ceil (10000 / swfdec_player_get_rate (player)); + swfdec_player_advance (player, advance); g_signal_handlers_disconnect_by_func (player, trace_cb, string); g_object_unref (player); diff-tree a28bd0320a3af095152f11883e3af381522...
2007 Jan 14
0
2 commits - configure.ac libswfdec/Makefile.am NEWS
...329 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,20 @@ + 0.4.1 ("Dragostea din tei") + +This release introduces video features. Quite a bit of internal +restructuring was necessary to achieve this. The API has been changed +from 0.4.0. Changes: +- swfdec_player_iterate has been replaced by swfdec_player_advance +- some functions (like swfdec_player_set_audio_advance) have been + completely removed. The same effect can be achieved by using + swfdec_player_advance. +- Add support for video playback. This does not include scripting + video. +- Add native FLV support to swfdec. +- Fix the caching layer....
2007 Jun 15
0
Branch 'as' - 4 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite.c test/trace
...swfdec_player_set_loader (player, loader); if (!swfdec_player_is_initialized (player)) { g_print (" ERROR: player is not initialized\n"); @@ -38,8 +50,17 @@ run_test (const char *filename) return FALSE; } - advance = ceil (10000 / swfdec_player_get_rate (player)); - swfdec_player_advance (player, advance); + time_left = ceil (10000 / swfdec_player_get_rate (player)); + /* FIXME: Make the number of iterations configurable? */ + while (quit == FALSE) { + /* FIXME: will not do 10 iterations if there's other stuff loaded */ + guint advance = swfdec_player_get_next_event (p...
2010 Jan 17
1
screenshot of swf file
...*argv[]) { char *input = argv[1]; char *output = argv[2]; SwfdecPlayer *player = swfdec_player_new(NULL); SwfdecURL *url = swfdec_url_new_from_input(input); swfdec_player_set_url(player, url); swfdec_url_free (url); swfdec_player_set_size (player, 800, 480); swfdec_player_advance(player, swfdec_player_get_next_event (player)); swfdec_player_save(player, 800, 480, output); return 0; } Using this i get a blank transparent png output as reported by the original poster. Ive also tried the gnome thumbnailer which produces the same result. The swf file is a single f...
2008 Jun 02
4
[Bug 16206] New: Charts in Yahoo Finance crash swfdec
...re_invoke () from /usr/lib/libgobject-2.0.so.0 #29 0x0000003004021354 in ?? () from /usr/lib/libgobject-2.0.so.0 #30 0x0000003004022d31 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #31 0x0000003004023104 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #32 0x00007f770d99750e in swfdec_player_advance () from /usr/lib/libswfdec-0.7.so.0 #33 0x00007f770e2af6b8 in swfdec_iterate_dispatch () from /usr/lib/libswfdec-gtk-0.7.so.0 #34 0x0000003002c38552 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #35 0x0000003002c3bcf5 in ?? () from /usr/lib/libglib-2.0.so.0 #36 0x0000003002c3c22c in...
2007 Dec 17
0
2 commits - doc/Makefile.am doc/swfdec-sections.txt NEWS
...wfdec_resource.h \ swfdec_resource_request.h \ diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt index 4a5e12a..09d067e 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -92,7 +92,9 @@ swfdec_player_get_alignment swfdec_player_set_alignment swfdec_player_render swfdec_player_advance -swfdec_player_handle_mouse +swfdec_player_mouse_move +swfdec_player_mouse_press +swfdec_player_mouse_release swfdec_player_key_press swfdec_player_key_release swfdec_player_render_audio @@ -100,6 +102,7 @@ swfdec_player_get_audio swfdec_player_get_maximum_runtime swfdec_player_set_maximum_run...
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 05
0
7 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec.h libswfdec/swfdec_key.h libswfdec/swfdec_marshal.list libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...: Fri Aug 3 13:00:12 2007 +0200 make documentation key function aware diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt index a58478d..69d7785 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -91,6 +91,8 @@ swfdec_player_set_alignment swfdec_player_render swfdec_player_advance swfdec_player_handle_mouse +swfdec_player_key_press +swfdec_player_key_release swfdec_player_render_audio swfdec_player_get_audio <SUBSECTION Standard> @@ -142,6 +144,7 @@ SwfdecLoaderDataType SwfdecLoaderRequest swfdec_loader_data_type_get_extension SwfdecAlignment +SwfdecKey SwfdecM...
2008 Jan 08
0
4 commits - configure.ac test/compiler.c test/.gitignore test/Makefile.am test/swfdec_test.c test/swfdec_test_function.c test/swfdec_test_function.h test/swfdec_test_global.c test/swfdec_test_initialize.as test/swfdec_test_initialize.h
...|| test->player_quit) return; swfdec_test_test_ensure_player (test); - while (msecs > 0 && !test->player_quit) { - int next_event = swfdec_player_get_next_event (test->player); - if (next_event < 0) - break; - next_event = MIN (next_event, msecs); - swfdec_player_advance (test->player, next_event); - msecs -= next_event; + if (msecs == 0) { + if (!test->player_quit) + swfdec_player_advance (test->player, 0); + } else { + while (msecs > 0 && !test->player_quit) { + int next_event = swfdec_player_get_next_event (test->pl...
2007 Nov 01
0
4 commits - libswfdec/swfdec_sound_object.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c test/crashfinder.c test/Makefile.am
...XT (player))) + { + elapsed = (glong)(g_timer_elapsed (timer, NULL) * 1000); + if (elapsed >= max_per_file) + break; + swfdec_player_set_maximum_runtime (player, + MIN (max_per_advance, max_per_file - elapsed)); + + advance = swfdec_player_get_next_event (player); + swfdec_player_advance (player, advance); + + swfdec_player_render (player, cr, 0, 0, 0, 0); + + played += advance; + } + + if (elapsed >= max_per_file || + swfdec_as_context_is_aborted (SWFDEC_AS_CONTEXT (player))) { + g_print ("Aborted: %s\n", filenames[i]); + aborts = TRUE; +...
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
...gnome.org> Date: Mon Mar 26 22:05:55 2007 +0200 s/swfdec_gtk_player_[gs]et_audio/&_enabled/ diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt index f33b594..a6e2d96 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -57,7 +57,7 @@ swfdec_player_render swfdec_player_advance swfdec_player_handle_mouse swfdec_player_render_audio -swfdec_player_get_audio +swfdec_player_get_audio_enabled <SUBSECTION Standard> SwfdecPlayerClass SWFDEC_PLAYER @@ -117,8 +117,8 @@ swfdec_gtk_player_get_playing swfdec_gtk_player_set_playing swfdec_gtk_player_get_speed swfdec_gtk_...
2008 Jun 05
4
[Bug 16241] New: assertion failed: (movie->cache_state <= SWFDEC_MOVIE_INVALID_CHILDREN)
...il=<value optimized out>, var_args=<value optimized out>) at gsignal.c:2199 #26 0x0000003f390210e3 in IA__g_signal_emit (instance=<value optimized out>, signal_id=<value optimized out>, detail=<value optimized out>) at gsignal.c:2243 #27 0x00007f7a0d071bc7 in swfdec_player_advance (player=0x3cd4de0, msecs=83) at swfdec_player.c:3162 #28 0x00007f7a0d306a58 in swfdec_iterate_dispatch (source_=0x4390160, callback=<value optimized out>, user_data=<value optimized out>) at swfdec_source.c:109 #29 0x0000003f3883749b in IA__g_main_context_dispatch (context=<...
2007 Feb 17
0
2 commits - doc/swfdec-sections.txt libswfdec/swfdec_color.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...a45ff4 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -45,6 +45,8 @@ swfdec_player_is_initialized swfdec_player_get_rate swfdec_player_get_image_size swfdec_player_get_next_event +swfdec_player_get_background_color +swfdec_player_set_background_color swfdec_player_render swfdec_player_advance swfdec_player_handle_mouse diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c index 2255771..a1b9660 100644 --- a/libswfdec/swfdec_player.c +++ b/libswfdec/swfdec_player.c @@ -1,5 +1,5 @@ /* Swfdec - * Copyright (C) 2006 Benjamin Otte <otte@gnome.org> + * Copyright (C) 2006-...
2007 Jun 27
0
Branch 'as' - 3 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_js_video.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_video_movie_as.c libswfdec/swfdec_video_movie.c
...wfdec_sprite_movie_init_context (player, version); + swfdec_video_movie_init_context (player, version); swfdec_movie_color_init_context (player, version); swfdec_net_connection_init_context (player, version); swfdec_net_stream_init_context (player, version); @@ -1394,12 +1397,6 @@ swfdec_player_advance (SwfdecPlayer *pla g_return_if_fail (SWFDEC_IS_PLAYER (player)); g_return_if_fail (msecs > 0); -#if 0 - while (TRUE) - swfdec_js_run (player, "i = new Object(); i.foo = 7", NULL); - //swfdec_js_run (player, "s=\"/A/B:foo\"; t=s.indexOf (\":\"); if...
2007 Oct 22
0
6 commits - doc/Makefile.am doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h
...me. However, your application may become unresponsive and * your users annoyed if they cannot interact with it for too long. To give a * reference point, the Adobe Flash player usually sets this value to 10 - * seconds. + * seconds. Note that this time determines the maximum time calling + * swfdec_player_advance() may take, even if it is called with a large value. + * Also note that this setting is ignored when running inside a debugger. **/ void swfdec_player_set_maximum_runtime (SwfdecPlayer *player, gulong msecs) commit cda0f0a3da0c3ba15f51ec57872c5bd69cb88085 Author: Benjamin Otte <otte at gnome...
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c test/trace
...g_assert (t >= 0); - advance = MIN (advance, t); + if (advance < 0) + advance = t; + else + advance = MIN (advance, t); } - if ((guint) advance > time_left) + if (advance < 0 || (guint) advance > time_left) break; time_left -= advance; swfdec_player_advance (player, advance); commit 358c093e809a5cb474f1aaa35663669940fe5922 Author: Benjamin Otte <otte at gnome.org> Date: Thu Oct 25 21:11:57 2007 +0200 fix brackets in commented out code stupid pmccabe diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c i...
2007 Nov 07
0
7 commits - doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_decoder.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...55,7 @@ run_test (const char *filename) SwfdecLoader *loader; SwfdecPlayer *player = NULL; guint i, msecs; - int w, h; + guint w, h; cairo_surface_t *surface; cairo_t *cr; @@ -174,7 +174,7 @@ run_test (const char *filename) msecs = swfdec_player_get_next_event (player); swfdec_player_advance (player, msecs); } - swfdec_player_get_image_size (player, &w, &h); + swfdec_player_get_default_size (player, &w, &h); if (w == 0 || h == 0) { g_print (" ERROR: width and height not set\n"); goto error; commit 9bb3e01a2b2ac248146bcefc497df43e3c38728f Aut...