Loading...
Logo
Processing Forum
I've made some additions to APWidgets which is now on r30. Work has been done to PVideoView, and there is now also an example in the wiki on how to use PVideoView to play video.

PEditText also have new features. You can now set the InputType to control what type of soft keyboard will appear like, numerical, text and phone etc. See the InputType class. You can also set the ImeOptions to specify more features, like IME_ACTION_DONE that turns the return button into a "Done" button. If you have done this the onClickWidget in your sketch method will be called when you press Done allowing you to capture that event. Also, if you set setCloseImeOnDone to true, the soft keyboard will close when you press done. See EditorInfo for more alternatives.

If you state IME_ACTION_NEXT in setImeOptions the return button is replaced with a "Next"-button, which means that focus will go on to the EditText below without closing the keyboard. Focus will always go to the EditText below the current EditText, unless you call setNextEditText which allows you to specify which EditText will be the next.

A new example PEditText_Advanced_example has been added to explain the new features.

See the examples in the wiki:

http://code.google.com/p/apwidgets/w/list



Replies(5)

I tested the new new functionality and works great. Mp4 video plays fine on both Nexus 1 with 2.2, and Galaxy S with 2.1

Now, it would be very useful to have a method in PVideoView to fetch the pixels of the current video frame in RGBA or some other format (YUV should be ok as well). Do you think this is possible?
Hi. Sorry for late reply. Thank you for testing. I haven´t investigated what you suggest. I haven´t got the time right now I´m afraid. I will perhaps look into it in the future.

But now, since r41, we have radio buttons! Have a look at the new example in the wiki.

Rikard

Thanks for the contribution. However, please do not use "P" as a prefix for classes in libraries:
http://code.google.com/p/processing/wiki/LibraryBasics
Oops. Ok, I´ll change it on the next update. How about "AP". Would that be ok?
 
 
Yes, absolutely; we're just trying to avoid confusion with the core classes. Thanks!