| Reply | « Previous Thread | Next Thread » |
|
hi all,
according to mma,VideoControl.getSnapShop() can get image data on its display area;if i creat a player via Manager.creatPlayer("capture:video"),the method works well and get a image from the camera;when i creat a player via Manager.creatPlayer(URL), VideoControl.getSnapShop() failed and return null; so,we can take a photo via mma,but the problem is that whether we can get a snapshot from a displaying video. |
| windie_hello |
| View Public Profile |
| Find all posts by windie_hello |
|
Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
Offline
Super Contributor
|
|
hi,
are you trying to get snapthot (to bytes/to output stream) of Image? - via getSnaphot() or record Video (to bytes/output stream) - via RecordControl? or you want to "capture" (using Canvas/Graphics api) what is currently displayed in viewport in your application? regards, Peter |
| peterblazejewicz |
| View Public Profile |
| Find all posts by peterblazejewicz |
|
Quote:
hi,thanks for your replay! I'm playing a 3gpp-video file in the canvas,and what i want is to get snapshot of the video at the seleted media time from the area which videocontrol define. so,would you like give me some advices? |
| windie_hello |
| View Public Profile |
| Find all posts by windie_hello |
|
Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
Offline
Super Contributor
|
|
hi,
I could only guess, never tried myself, download SUn WTK 2.5 Beta tool, install it (its very usefull, having lot of api and tools), go to install dir>apps>MobileMediaAPI and browser source files for "VideoPlayer", sample midlet shows how to implement getting snapshots form VideoControl from Form/Canvas, it works with Sun WTK 2.5 emulator (which emulates video playback/snapshots), never tested on real nokia device yet, regards, Peter |
| peterblazejewicz |
| View Public Profile |
| Find all posts by peterblazejewicz |
|
Quote:
i will try on the real nokia device,then give you a message! what you did helps me a lot! Thanks again! |
| windie_hello |
| View Public Profile |
| Find all posts by windie_hello |
|
hi,i have try sun wtk 2.5beta,.it also capture snapshot via camera with"capture://video",fortunately,when i modify the source code and make it capture snapshot from a playing video player,it also works!
when it comes to the real nokia devices such as N80,getSnapShot(null) returns a 69-byte array which creates a white spot image. i have no idea about what to do next... |
| windie_hello |
| View Public Profile |
| Find all posts by windie_hello |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Getting a SNAPSHOT from a video doesnt work!! | ninku6a | Mobile Java Media (Graphics & Sounds) | 2 | 2006-11-13 10:12 |
| Video Player | halderp | Symbian Media (Graphics & Sounds) | 8 | 2006-11-03 18:56 |
| video player in J2ME | shalini14_mishra | Mobile Java Tools & SDKs | 5 | 2006-10-19 06:02 |
| Play video on Canvas with N 6600 doesnt work. Please help!!! | Robert111 | Mobile Java Media (Graphics & Sounds) | 2 | 2006-02-22 09:45 |
| widescreen video player for nokia 6260 | oocon | Mobile Java Media (Graphics & Sounds) | 0 | 2005-06-23 22:38 |