[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 subsc

[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 siginifica

[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 wrote: > I've read people on the inter

[android-developers] Re: avcodec_decoder_find problem

2011-02-06 Thread emymrin
x = avcodec_alloc_context(); >         // Open codec >         if(avcodec_open(pCodecCtx, pCodec)<0) >           return -1; // Could not open codec > > On Feb 5, 9:15 pm, emymrin wrote: > > > > > > > > > Try to instrument avcodec_open and anything that it

[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 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 log_message and on >

[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 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 value was not mat