Hi,
I am trying to add
playlist capability to Avifile 0.6.
I looked at aviplay
code: specially Aviplay2 class.
Each time you change
the video file the video window is created and destroyed, preventing any smooth
transition between the 2 sequences.
I want to add a
feature that will enable the programmer to change video file without completely
reinitialising the video window like Aviplayer2
does.
I need some help to
understand how Aviplay and Aviplay2 works internally.
Aviplay deals with
reading the file, decoding , synchronizing sound and video
Aviplay2 construct
and destroys Aviplay and creates the renderer.
I tried to tweek
Aviplayer2 class by adding a new method to be able to change the video file
without recreating Aviplayer2 and the renderer by the way.
I have added a
method in AviPlayer that
stops
playing
closes and cleanup
the decoders, threads etc.... like the destructor does
recreates new
decoders object bound to a new file like the constructor
does
starts playing
again
There no error in
reading and decoding the new videofile, but the second movie is not
displayed.
I checked that m_VideoRenderers member of AviPlayer
class looks still valid and has not changed after video file
change.
I must miss
something in the communications between the drawing methods called in the
AviPlayer::vplayerThread() and and void*
AviPlayer::decoderThread() using m_VideoRenderers
and
the renderers
initialised in AviPlayer2::AviPlayer2
Does one object or
thread stay locked???
If somebody has an
idea on that, it would help a lot?
Regards to everybody
working on this nice project.Addinf
Fabrice PAPAZIAN - CTO - CEDEMO
Ltd - http://www.cedemo.com
Tel Direct : 377
97984162 - Mobile : +377 6 80 86 52 85 - Fax : 377 97984161
