Hi, and thanks in advance
I wrote an application to view Exported data in Milestone format using the “VideoFileviewer” sample
It was very easy, then I’m trying to do the same with the Microphone exported data.
I have red the “AudioDemo” sample to learn how to use the audioPlayerControl.
I created a default server with the uri referred to the exported data,in the same way of case of VideoFileviewer.
I can see the Microphone devices, but I cannot hear the selected one.
By the way I have also inserteda playbackUserControl to try to go to the beginning of frame.
I report the interessed code:
private void btnSelectMicrofone_Click(object sender, EventArgs e)
{
if (_selectedMic != null)
{
\_audioPlayerControl1.Disconnect();
}
ItemPickerForm form = new ItemPickerForm();
form.KindFilter = Kind.Microphone;
form.AutoAccept = true;
form.Init(Configuration.Instance.GetItems(ItemHierarchy.Both));
if (form.ShowDialog() == DialogResult.OK)
{
\_selectedMic = form.SelectedItem;
btnSelectMicrofone.Text = \_selectedMic.Name;
if (\_playbackUserControlMic == null)
{
\_playbackUserControlMic = ClientControl.Instance.GeneratePlaybackUserControl();
\_playbackUserControlMic.Dock = DockStyle.Top;
\_playbackUserControlMic.ShowTallUserControl = true;
\_playbackUserControlMic.ShowTimeSpanControl = true;
\_playbackUserControlMic.ShowSpeedControl = true;
\_playbackUserControlMic.Refresh();
panel2.Controls.Clear();
panel2.Controls.Add(\_playbackUserControlMic);
\_playbackUserControlMic.Refresh();
}
if (\_playbackFQIDMic == null)
{
\_playbackFQIDMic = ClientControl.Instance.GeneratePlaybackController();
\_playbackUserControlMic.Init(\_playbackFQIDMic);
}
\_audioPlayerControl1.MicrophoneFQID = \_selectedMic.FQID;
\_audioPlayerControl1.PlaybackControllerFQID = \_playbackFQIDMic;
EnvironmentManager.Instance.Mode = Mode.ClientPlayback;
\_audioPlayerControl1.Initialize();
\_audioPlayerControl1.Connect();
\_playbackUserControlMic.Show();
\_playbackUserControlMic.SetEnabled(true);
\_audioPlayerControl1.StartBrowse();
EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(
VideoOS.Platform.Messaging.MessageId.System.ModeChangeCommand,
Mode.ClientPlayback), \_playbackFQIDMic);