Hi, can u share complete log, along with logcat log?
As said above, its simple as below code, pls refer MTS code for teh
calls
http://git.omapzoom.org/?p=platform/frameworks/base.git;a=blob;f=media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/CodecTest.java#l133
MediaPlayer mp = new MediaPlayer();
mp.setDataSource(filePath);
mp.prepare();
mp.start();
mp.seekTo(MediaNames.SEEK_TIME);
Thread.sleep(MediaNames.WAIT_TIME);
currentPosition = mp.getCurrentPosition();
On Thu, May 27, 2010 at 11:49 AM, Bheemsen <[email protected]> wrote:
> I am using SeekTo api for FF, when I call it from application, I am getting
> following error.
> "Attempt to perform seekTo in wrong state: mPlayer=0, mCurrentState=1".
>
> Following is my code.
> else if (CMDFORWARD.equals(cmd)) {
> Log.d(LOGTAG,"FF");
> mMediaPlayer.seekTo(whereTo);
> }
>
>
> Thanks and Regards
> Bheemsen
>
> On Thu, May 27, 2010 at 7:07 AM, RaviY <[email protected]> wrote:
>>
>> Please don't post questions in multiple places.
>>
>> -Ravi
>>
>> On May 26, 6:25 am, Deva R <[email protected]> wrote:
>> > Media player provides MediaPlayer.seekTo(time) for FFW/FRW operations
>> > (no direct API calls like ff/fr)
>> >
>> > sample usage can be found in below
>> > routine..http://git.omapzoom.org/?p=platform/frameworks/base.git;a=blob;f=medi...
>> >
>> > On Wed, May 26, 2010 at 10:55 AM, Bheemsen <[email protected]> wrote:
>> > > Hi All,
>> >
>> > > I have to implement Fast Forward(FF) and Fast Rewind(FR)functionality.
>> > > I could not find any direct API in Android to implement the
>> > > fastForward(speed)/fastRewind.
>> > > Does android really not support Fast Forward/Rewind or there is any
>> > > workaround to achieve the same?
>> >
>> > > --
>> > > Regards
>> > > Bheemsen
>> >
>> > > --
>> > > unsubscribe: [email protected]
>> > > website:http://groups.google.com/group/android-porting
>> >
>> >
>>
>> --
>> unsubscribe: [email protected]
>> website: http://groups.google.com/group/android-porting
>
>
>
> --
> Regards
> Bheemsen
>
> --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-porting
>
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting