locked
C# Webbrowser using VLCplugin to play online audio stream RRS feed

  • Question

  • Hello all,

    I have been trying to get the VLC to play a audio stream from a URL address.

    I created a forms application and added a webbroswer from the toolbox. I can navigate no problem but if I goto a link like

    http://audio.wgbh.org/otherWaysToListen/wcai.m3u

    I get a popup dialog that asked do I want to open this file. If i accept VLC opens and it plays no issue.

    However, what I want is it to play without the popup and in my application not with the VLC installed on my computer.

    I have seem many things about VLC selecting files but I have not been able to find a reference for pulling a stream with my C# form when browsing with the webbrowser item on my form.

    Any help would be thankful.

    Tuesday, March 17, 2015 8:49 PM

Answers

  • Hi Badidea,

    >> However, what I want is it to play without the popup and in my application not with the VLC installed on my computer.

    Do you want to open the url without the popup? If so, I think you could block downloads from the webbrowser control, the link below shows the details:

    # How to block downloads in .NET WebBrowser control?
    http://stackoverflow.com/questions/483262/how-to-block-downloads-in-net-webbrowser-control

    But with this way, I am afraid that you could not open the audio. If you want to open the audio without the popup, I think you could automatically download the file, more information you could turn to the link below:

    # Suppressing the Save/Open Dialog box in a WebBrowser control
    http://stackoverflow.com/questions/3538874/suppressing-the-save-open-dialog-box-in-a-webbrowser-control

    But if you want to open the audio in your application without the VLC, I am afraid that you could not achieve that. As you know, the audio needs the special player from the URL, I think it is restricted if you want to open the audio without the player.

    Sorry for the inconvenient.

    Best Regards,

    Edward


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, March 19, 2015 7:35 AM