No sound when I connect to exported file audio

Hy,

I built a simple component application to Listen or to View Exported file from Milestone.

I followed the VideoFileViewer sample for the video and it’s all perfect.

I did the same to connect to the audio part:

I can connect to exoprted Microphone directory,

I can see the related Microphone but when I select it I cannot listen anything.

Neither the PlaybackuserControl is positioning properly.

Thanks in advance

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)

  {

    try

    {

      \_selectedMic = form.SelectedItem;

      btnSelectMicrofone.Text = \_selectedMic.Name;

      EnvironmentManager.Instance.Mode = Mode.ClientPlayback;

      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);

        panel2.BackColor = Color.Red;

      }

      if (\_playbackFQIDMic == null)

      {

        \_playbackFQIDMic = ClientControl.Instance.GeneratePlaybackController();

        \_playbackUserControlMic.Init(\_playbackFQIDMic);

      }

      \_audioPlayerControl1.MicrophoneFQID = \_selectedMic.FQID;

      \_audioPlayerControl1.PlaybackControllerFQID = \_playbackFQIDMic; 

        \_audioPlayerControl1.Initialize();

      \_audioPlayerControl1.Connect();

      \_playbackUserControlMic.Show();

      \_playbackUserControlMic.SetEnabled(true);

}catch(Exception axc)

    {

      MessageBox.Show(axc.Message);

    }

Hi,

We added microphone functionality into VideoFileViewer sample, please download the sample here;

//download.milestonesys.com\MIPSDK\Samples\VideoFileViewerPlusAudio.zip

We added changes into MainForm.cs, please explore the code.

++++ How to use the sample. ++++

Click Media, select camera, click OK and select microphone, click OK.

Click Camera, select a camera and select a microphone.

Thanks a lot. I had some problem with dll dependences but now is working.

Gabriele

Hi…does it “appear as” the document is playing quietly, or does it simply neglect to play? Any blunder messages?

What occurs in the event that you attempt to play it in Audacity prior to trading?

Do you have a USB sound gadget connected to your PC (like a USB turntable or USB cassette deck, and so forth)? (Some of the time Windows changes to the “new” sound gadget for playback, regardless of whether that gadget is for input/recording just and can’t play-back.)

order pcb

This original question was old, this was posted a year ago and we don’t think it is a good idea to re-use it.

If you have a similar error or situation, can you please make a new question on this Developer Forum?