[android-developers] Re: seeking with av_seek_frame or url_seek

2011-04-22 Thread emymrin
I guess new position must be expressed in stream time units: // iNewPosition is in seconds int64_t timeStamp = iNewPosition * pFormatCtx-streams[iStreamIndex]- time_base.den; av_seek_frame(pFormatCtx, iStreamIndex, timeStamp, AVSEEK_FLAG_ANY); -- You received this message because you are

[android-developers] Re: What exactly is the obtainBuffer in an AudioTrack?

2011-03-22 Thread emymrin
how can I prevent (or at least minimize) the delay When AudioTrack object is created, buffer size is passed into a constructor among other parameters. AudioTrack won't start playing until you write at least that amount of data into it. I presume that in your case chosen buffer size is

[android-developers] Re: Menu typeface

2011-03-20 Thread emymrin
Try the following ugly technique to customize your options menu: getLayoutInflater().setFactory(new Factory() { public View onCreateView (String name, final Context context, AttributeSet attrs) { if(name.equalsIgnoreCase(com.android.internal.view.menu.IconMenuItemView)) {

[android-developers] Re: Not able to receive UDP Data

2011-03-18 Thread emymrin
UDP works well on emulators and devices. DatagramSocket socket = new DatagramSocket(port); byte[] data = new byte[1000]; DatagramPacket datagram = new DatagramPacket(data, 0, data.length, null, 0); socket.receive(datagram); On 18 мар, 03:20, Miguel Morales therevolti...@gmail.com wrote: I've

[android-developers] Re: avcodec_decoder_find problem

2011-02-06 Thread emymrin
        if(avcodec_open(pCodecCtx, pCodec)0)           return -1; // Could not open codec On Feb 5, 9:15 pm, emymrin emym...@gmail.com wrote: Try to instrument avcodec_open and anything that it calls with __android_log_print to get an idea about what is wrong. On 5 фев, 19:03, cervello eceooz

[android-developers] Re: avcodec_decoder_find problem

2011-02-05 Thread emymrin
Try to instrument avcodec_open and anything that it calls with __android_log_print to get an idea about what is wrong. On 5 фев, 19:03, cervello eceooz...@gmail.com wrote: I'm trying to decode a video but in my code I think there is a problem about avcodec_find decoder().. I control it with

[android-developers] Re: CountDownTimer doen't work during device in deep sleep?

2010-12-23 Thread emymrin
Consider using AlarmManager. On 23 дек, 01:54, optimusgeek choongb...@gmail.com wrote: I use CountDownTimer for counting 24hours with 1minute interval. but It seems that the onTick() not called when device in deep sleep. When I check the millisUntilFinished value after activating device, The