Dear Milestone Technical Support Team,
I am currently working with the Milestone VideoOS platform, and I’ve noticed a change related to the
AudioPlayer class between the 2023 R2 and R3 versions.
[In R3, a new AudioPlayer class was introduced, which exposes the same functionality as the old
AudioPlayerControl, but without requiring a user interface (UI), and it can be used in both Smart Client and standalone environments.]
I have developed my code using the AudioPlayer class, which is based on R3. However, I would like to know how to modify my code to make it compatible with the R2 version.
I assume that in R2, I should still use AudioPlayerControl. Could you please provide guidance on how to adjust my code for R2, and what changes or alternatives need to be made to support the previous version?
In the following code, I believe it might not be as simple as just changing AudioPlayer to AudioPlayerControl.
Could you provide more detailed advice?
private AudioPlayer _audioPlayer;
public class()
{
_audioPlayer = new AudioPlayer();
_audioPlayer.ConnectResponseEvent += new ConnectResponseEventHandler(_audioPlayer_connectResponseEvent);
//…
}
I would greatly appreciate any help or clarification regarding this issue.
Thank you for your time and assistance.