This is a migrated thread and some comments may be shown as answers.

Exception when attempting to play unsupported audio file.

2 Answers 120 Views
Windows
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 12 Mar 2018, 04:50 AM

This was the error message:

---------------------------
Playback failed
---------------------------
Fiddler has encountered an unexpected problem. If you believe this is a bug in Fiddler, please copy this message by hitting CTRL+C, and submit a bug report at http://www.telerik.com/forums/fiddler.

Sound API only supports playing PCM wave files.

Type: System.InvalidOperationException
Source: System
   at System.Media.SoundPlayer.ValidateSoundData(Byte[] data)

   at System.Media.SoundPlayer.LoadAndPlay(Int32 flags)

   at Standard.ResponseWebView.btnPlay_Click(Object sender, EventArgs e)


Fiddler v5.0.20173.50948 (x64 AMD64) [.NET 4.0.30319.42000 on Microsoft Windows NT 10.0.16299.0] 
---------------------------
OK   
---------------------------

 

Granted the error message does give helpful stuff like: "Sound API only supports playing PCM wave files."

Which means the response was likely just incorrectly assumed to be a wave file.

I clicked the PLay button on the WebView becuase none of the other views are useful.

I would really just like to download a version of the file and then play it from another application but I do not know how in Fiddler and that would be the larger issue.

 


2 Answers, 1 is accepted

Sort by
0
Matt
Top achievements
Rank 1
answered on 12 Mar 2018, 05:12 AM
It seems to be and edge case.  When I download other "unsupported" audio formats the response just goes to the garbage character as seen in attached "capture.png".

And when I download 'known/supported' audio files I see the actually windows player as seen in "playButton02.png" file

It's only when the audio downloaded seems ot be recognized as audio, yet still is unsupported where I get the "playButton01.png"

Also, it seems that when the audio is actually playable from Fiddler, it DOES have the ability to save the file by right- clicking the player.

It seems what I'm expecting as a user is that an exception shouldn't be thrown when I click play, it should just know it can't play the file and not show me the option.  However, it could offer me to download the mp3 and attempt to play it from some other application. that maybe fiddler doesn't know about. 
0
Alexander
Telerik team
answered on 15 Mar 2018, 11:00 AM
Hello,

You can save every session body (in this case the actual sound file) by right clicking on the session -> Save -> Response -> Response body.

Regards,
Alexander
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Windows
Asked by
Matt
Top achievements
Rank 1
Answers by
Matt
Top achievements
Rank 1
Alexander
Telerik team
Share this question
or