Hi All,

I am currently working on a project, that requires video and images to
be downloaded and displayed hand in hand.

Here is the exact scenario:
*********************************
1. Parse an XML file for getting a video url.

2. Parse the same XML file for getting urls of some images associated
with that video and the start time of each of those images. The start
time specifies the time when the image should be displayed over the
video.

3. Once the parsing is done, play the video and display the images
associated it on top of that video meeting the following requirements:
        1. Each of the image needs to be displayed based on its start time
        2. All the images needs to be displayed before the video ends.

For example, lets consider the following case:
        - video duration is 10 seconds
        - image X1's start time is 0
        - image X2's start time is 5
In this case, we have to display the image X1 as soon as the video
play starts (first frame displays), and display image X2 at the 5th
second of the video.

NOTE: Each of the image is around a few KBs only.

I am able to achieve the functionality, if I start the video play
after downloading all the images. But this introduces some noticeable
delays in starting the video which is a problem.

Trying to download the images using AsyncTask (or) using a new thread
in order to avoid the delay in video start also doesn't seem to work
as expected. In that case, the image download stalls and then
continues only after the video ends.

I am using a VideoView (attached to a FrameLayout, say F1) for playing
the video and a RelativeLayout (attached to the same FrameLayout, F1)
for displaying the images.

Can anybody suggest me a solution for handling this scenario? Its very
urgent as I have to meet some deadlines.

Thanks,
Darshan.


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to