Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Multiple archive playback not working

Avatar

Level 2

Hi,

I'm trying to play multiple archive from my application. After playing 1st archive, I've changed ConnectSessionContainer's archiveID but it won't work. So I've tried to logout session and after dispatching SessionEvent.SYNCHRONIZATION_CHANGE, I'm assigning archiveID to session and login. It works sometimes. Could you please give me any permanent solution for multiple playback.

Regards,

John

22 Replies

Avatar

Level 4

Hi Adam,

I believe your question has been answered in post 8. of this thread by Alex.

Thanks,

Nikola

Avatar

Level 4

Yup essentially it's:

1) cSession.close()

2) audioSubscriber.close(); // if you have one

3) if you are using the PlaybackBar.as I added/modified and call "playbackBar.reset();"

4) set the archiveID again

5) create a new PlaybackSession and set that on the cSession.authenticator = new PlaybackAuthenticator();

6) audioSubscriber.subscribe();

7) cSession.archiveManager.currentTime = 0;

    cSession.archiveManager.seek(0);

    cSession.login();

This works for me but you'll definitely have to play around with it yourself, to get a better feel when to set archiveID correctly and when to close()/login()

Alex G.