}
result
-_PlayerImpl::SeekTo(long msTime, bool useKeyFrame)
+_PlayerImpl::SeekTo(long msTime, bool accurate)
{
result r = E_SUCCESS;
int ret = ::PLAYER_ERROR_NONE;
SysTryReturn(NID_MEDIA, msTime >= 0, r = E_OUT_OF_RANGE, E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] The msTime is not greater than 0");
- ret = player_seek(__hPlayer, (int)msTime, useKeyFrame, PlayerSeekCompletedCallBack, (void *)this);
+ ret = player_seek(__hPlayer, (int)msTime, accurate, PlayerSeekCompletedCallBack, (void *)this);
r = MapExceptionToResult(ret);
SysTryCatch(NID_MEDIA, r == E_SUCCESS, , r, "[%s] Failed to perform player_seek operation with [0x%x]", GetErrorMessage(r), ret);
return r;
{
return CODEC_AMR_NB;
}
+ if (!String::Compare(String(pAudioCodec), String("AMR")))
+ {
+ return CODEC_AMR_NB;
+ }
+ if (!String::Compare(String(pAudioCodec), String("AMR audio")))
+ {
+ return CODEC_AMR_NB;
+ }
if (!String::Compare(String(pAudioCodec), String("WMA")))
{
return CODEC_WMA;
bool IsLooping(void)const;
long GetDuration(void);
result SeekTo(long msTime);
- result SeekTo(long msTime, bool useKeyFrame);
+ result SeekTo(long msTime, bool accurate);
result SetVolume(int volume);
result SetMute(bool mute);
result SetLooping(bool looping);