Thanks for your reply. The seekTo() method will allow you to start the video from any location but there are no APIs to set the end time or the duration. i.e. I did not find any API which allows me to play any 5 sec movie clip from a 2 hour duration movie ;( Anybody who has done this before?
On Thursday, 22 November 2012 14:19:07 UTC+5:30, Piren wrote: > > > http://developer.android.com/reference/android/media/MediaPlayer.html#seekTo(int) > > > On Thursday, November 22, 2012 5:43:30 AM UTC+2, praveen castelino wrote: >> >> Can anybody help me out with this issue. I don't need any code. Guide me >> to the Class or documentation. Is this possible to do it in android (in iOS >> we can)? >> >> On Monday, 19 November 2012 19:56:24 UTC+5:30, praveen castelino wrote: >>> >>> I have a video of duration 180 seconds. I want to play only 30 seconds >>> of this video starting from 60th second. i.e. only a part of the video >>> needs to be played.(Start time : 60 sec, End time: 90 sec). >>> Can this be doable in android? I have done the same on iOS but not able >>> to find equivalent apis on android. It looks like MediaPlayer allows us to >>> supply only the start time (i.e. seekto()) but not allows us to set the end >>> time or the duration of the video. Any input on this would be great help to >>> me. >>> >> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

