Comments (10)
This part of API is not implemented yet.
from freshplayerplugin.
I wanted to implement this one, is it alright if I try to do that this weekend? Or do you want it earlier?
from freshplayerplugin.
Take your time, it's not really important for me.
from freshplayerplugin.
@blackwolf12333, go ahead. I still have ppb_tcp_socket_private and ppb_graphics3d to do.
from freshplayerplugin.
For a quick fix, modify ppb_flash_clipboard_write_data
(in src/ppb_flash_clipboard.c
) to include the following:
GtkClipboard* clipboard = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD);
for (uintptr k = 0; k < data_item_count; k ++) {
gtk_clipboard_set_text(clipboard, ppb_var_var_to_utf8(data_items[k], NULL, -1);
}
return PP_OK;
Of course, need to #include <gtk/gtk.h>
at the top of the file.
from freshplayerplugin.
It's interesting how I can't find an API I can use for this. Does Linux provide some API that I can use without adding huge dependencies like gtk or Qt?
from freshplayerplugin.
If I'm not wrong, the plugin already depends on GTK so I thought it's perfectly acceptable to depend on the GTK APIs. There may be lower level APIs (Xlib, perhaps?), but they all require an event loop.
Edit: This may be useful: http://tronche.com/gui/x/icccm/sec-2.html#s-2
from freshplayerplugin.
If it already depends on that I could probably use your solution with some extra work to do the other stuff too.
from freshplayerplugin.
Even with GTK there can be issues with event loop.
from freshplayerplugin.
Implemented in 6350285, 3badc4e, e47a8ea, a1fc32a, and 6d09e79.
from freshplayerplugin.
Related Issues (20)
- drm test works with intel but not Nvidia HOT 4
- 32 bit build error HOT 2
- [firefox] "[fresh] [error] n2p_call_ptac, NPN_Invoke failed (or there were no npp)" HOT 6
- Some webcams return green screen HOT 1
- Build failure HOT 5
- Missing include for sys/ioctl.h in src/ppb_video_capture.c HOT 1
- (question): use with other browsers still limited to the NPAPI? HOT 9
- using Chromebook flash for desktop Chrome HOT 2
- Fullscreen showing very small window HOT 5
- Chromebook's flash used by firefox works on test but fails in real life HOT 9
- freshwrapper crashing with Firefox 61 and ChromeOS's Flash HOT 2
- Is v0.3.10 production-ready? HOT 1
- asoundlib.h: No such file or directory HOT 4
- Wayland support? HOT 1
- Trouble on XWayland
- FreshPlugin as browser extension HOT 1
- libfreshplayer does not show up in Firefox 69.0.1 64bit HOT 9
- advice on fixing https://gitlab.com/Mis012/flashplayer-standalone to make it work with freshplayer HOT 9
- Does freshplayerplugin can be used a plugin on chromium[version:69] HOT 19
- Error when using make HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freshplayerplugin.