You Are Here:

Community: Developer Discussion Boards

#1 Old can VideoControl.getSnapShop() work for a video player? - 2006-11-09, 04:27

Join Date: Nov 2006
Posts: 6
windie_hello
Offline
Registered User
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.
Reply With Quote

#2 Old Re: can VideoControl.getSnapShop() work for a video player? - 2006-11-10, 03:33

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
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
Reply With Quote

#3 Old Re: can VideoControl.getSnapShop() work for a video player? - 2006-11-13, 02:37

Join Date: Nov 2006
Posts: 6
windie_hello
Offline
Registered User
Quote:
Originally Posted by peterblazejewicz
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

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?
Reply With Quote

#4 Old Re: can VideoControl.getSnapShop() work for a video player? - 2006-11-14, 01:36

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
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
Reply With Quote

#5 Old Re: can VideoControl.getSnapShop() work for a video player? - 2006-11-14, 03:28

Join Date: Nov 2006
Posts: 6
windie_hello
Offline
Registered User
Quote:
Originally Posted by peterblazejewicz
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
oh,thanks,i try this in wtk2.5,and it really works well!
i will try on the real nokia device,then give you a message!
what you did helps me a lot!
Thanks again!
Reply With Quote

#6 Old Re: can VideoControl.getSnapShop() work for a video player? - 2006-11-28, 07:48

Join Date: Nov 2006
Posts: 6
windie_hello
Offline
Registered User
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...
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ