This function is deprecated.
int sm_avfplay_sync(struct sm_avfplay_sync_parms *avfsp)
typedef struct sm_avfplay_sync_parms { tSMAVFplayId avfplay; /* in */ tSMAVFplayId sync_avfplay; /* in */ } SM_AVFPLAY_SYNC_PARMS;
Ensures that all future playbacks on avfplay are synchronised with those on sync_avfplay. To achieve synchronised playbacks following a call to sm_avfplay_sync() , sm_avfplay_start() must be called on both avfplay and sync_avfplay . The playbacks can be started in any order. Once started, the playbacks will not process data until at least one full AVF frame has been put to both. If data is supplied to one playback before the other has started, that data will be buffered until the other playback has received at least one full AVF frame. Once the playbacks begin processing data, they progress as usual.
When two playbacks are synchronised and processing data, if one playback is stopped then restarted it will not re-synchronise with the running playback and an error will be returned. If both playbacks are stopped then restarted, the two playbacks will synchronise as described above.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody Audio Video Format (AVF) API.