![]() |
#1 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
GNU Gnash – Flash player for Kindle Touch
I ported GNU Gnash for Kindle Touch. There is Flash player and browser plugin in the package.
The browser plugin currently works only with custom browsers, as my port of SkipStone. When I first tried it, it worked also in native Kindle browser, but later on I introduced many changes and somehow I lost support for built-in browser. I hope I will manage to get back to this functionality. However compilation of this package takes a lot of time and there are plenty of different configuration options… And I am lost now ![]() Browser plugin is enabled or disabled from GUI Launcher. A script just creates or deletes a soft link from plugin in extensions folder to /tmp/root/.mozilla/plugins folder. According to Gnash developers it supports most SWF v7 features and some SWF v8 and v9. SWF v10 is not supported. There are also some limitations of the port. Kindle's system resources are very limited. There are often problems with sound. Shortly speaking it is very experimental support. Anyway have fun! Package for GUI Launcher is available on my webpage. Edit: Using gnash browser plugin is recommened only for developers or experienced users. Flash intensive sites may hang or restart your Kindle, as reported by cscat. Last edited by twobob; 08-22-2013 at 07:27 AM. |
![]() |
![]() |
![]() |
#2 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Hi mate. tested it immediately.
Can't say I got it working yet. (It launches but doesn't load anything, either natively or in the browser..) but I'll carry on having a play. ![]() EDIT: AH! EXTENSIONDIR=/mnt/us/extensions/gnash PLUGINSDIR=/home/root/.mozilla/plugins (or $HOME/.mozilla/plugins ?) not EXTENSIONDIR=/mnt/us/extensions/gnash PLUGINSDIR=/tmp/home/.mozilla/plugins for me mate ![]() Thanks EDIT: Okay, so I think there are two issues at play a) if the avail mem drops below a critical level the system restarts (I read that in either rc.lua or an upstart script) I'll have a look around for that setting again at some point. b) the cpu is topping out on really tough tasks (like youtube say) - I am thinking that perhaps the watchdog is not getting serviced. that's a guess, which also would cause a reboot. However the type of reboot occurs makes me suspect it is issue a) but again that is a guess. Great work on this. can't say I found it to work "natively" yet. but skipstone does a decent job on some sites. Definitely at the edge of it's (the touches) abilities ![]() EDIT: Running the player natively simply fails to open files. I'll strace it, probably a path issue or something. : ) Last edited by twobob; 10-21-2012 at 08:38 AM. Reason: /.mozilla/plugins location |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
Quote:
gnash-0.8.10/gui/gtk/gtk.cpp Code:
openFile(GtkWidget *widget, gpointer /* user_data */)
{
#if 0
// We'll need this when implementing file opening.
GtkGui* gui = static_cast<GtkGui*>(user_data);
#endif
#if GTK_CHECK_VERSION(2,4,0)
char* filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (widget));
#else
GtkWidget* file_selector = gtk_widget_get_ancestor(widget,
g_type_from_name("GtkFileSelection"));
GtkFileSelection* filesel = GTK_FILE_SELECTION (file_selector);
const char* filename = gtk_file_selection_get_filename (filesel);
#endif
// FIXME: we want to do something like calling gtk_main_quit here, so
// run() will return. If run() is then changed to return a pointer to the
// next file to be played, then the Player class can play the next file,
// unless run() returns NULL.
log_error(_("Attempting to open file %s.\n"
"NOTE: the file open functionality is not yet implemented!"),
filename);
#if GTK_CHECK_VERSION(2,4,0)
g_free(filename);
#endif
}
![]() So, for now only opening files from command line works. Last edited by baf; 10-21-2012 at 11:51 AM. |
|
![]() |
![]() |
![]() |
#4 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
Hey no worries. That's what you have testers for. happy to help. Once I figure out the command line I'll post it ![]() cd /mnt/us/extensions/gnash/ [root@kindle gnash]# bin/gtk-gnash /mnt/us/clock1.swf Last edited by twobob; 10-21-2012 at 12:49 PM. Reason: blah [root@kindle gnash]# bin/gtk-gnash /mnt/us/clock1.swf |
|
![]() |
![]() |
![]() |
#5 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Excellent mate. Really. having fun with this.
![]() FOR SURE need to weld in the Geekmaster ordered dithering code into this somewhere. I tested a stupidly complicated movie through it and the ONLY thing that let it down was the underlying graphics issues (much like proboom) and the occasional ALSA underrun (meh, could look at that one day) : ) brilliant mate lots of fun. |
![]() |
![]() |
![]() |
#7 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
Gnash 0.2
I fixed not working "File->Open" dialog in player.
New version on my webpage. |
![]() |
![]() |
![]() |
#8 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
Quote:
I definitely didn't try all of them. I tested three renderer types: cairo, opengl and agg. Cairo seems to work better then opengl. And agg doesn't work at all with kindle pixelformat. Opengl still may be build in several manners, so there is still space for new discoveries. For media handling I tried gstreamer and ffmpeg. Efficiency seems comparable with ffmpeg supporting wider range of formats. Sound is handled by sdl. You can also build it with framebuffer or sdl gui. Last edited by baf; 10-22-2012 at 03:55 AM. |
|
![]() |
![]() |
![]() |
#9 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
Thanks for this info I DEFINITELY want to push this into buildroot. for certain. so any config files and source code diffs are of course always a huge advantage (as I have to patch the makes sometimes) Thanks for the excellent info. |
|
![]() |
![]() |
![]() |
#10 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
I didn't make any important changes to gnash. Browser plugin will work without any patches. I only made small changes to gtk-gui. I will publish patches on my site of course.
|
![]() |
![]() |
![]() |
#11 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
Yes I will play with a few targets. Convinced that the ordered dither solution (or at least 2 bit color of some type) is the solution for the movies (and the games) - perhaps one day I will get it done. FYI the audio dropouts via SDL are not limited to gnash - it's an SDL thing. Thanks for sharing. it's appreciated. |
|
![]() |
![]() |
![]() |
#12 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
you pushing your fixes up to
http://savannah.gnu.org/projects/gnash/ baf? nice work by the way. many thanks |
![]() |
![]() |
![]() |
#13 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
|
Quote:
|
|
![]() |
![]() |
![]() |
#14 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
|
![]() |
![]() |
![]() |
#15 |
Penguin
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 4742434
Join Date: Jul 2012
Device: Kindle Touch 5.3.2.1
|
OMG I think baf is god
|
![]() |
![]() |
![]() |
Tags |
browser, flash, gui launcher, kindle touch, launcher add-ons |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Flash Player | kedar | Android Developer's Corner | 0 | 10-02-2012 02:21 PM |
flash my Kindle Touch using windows, how? | ldai | Kindle Developer's Corner | 1 | 03-23-2012 04:08 PM |
There is an updated Flash Player available | kennyc | Android Devices | 12 | 04-29-2011 04:17 AM |
iLiad Project: Flash Player!!! | King Mook Mook | iRex Developer's Corner | 1 | 01-02-2008 06:56 AM |