Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Audio Streaming Capability #1

Closed
markjamesm opened this issue Oct 27, 2020 · 2 comments
Closed

Implement Audio Streaming Capability #1

markjamesm opened this issue Oct 27, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@markjamesm
Copy link
Owner

Need to create an open stream dialog box which allows users to type or copy/paste in an audio stream to play. Method OpenStream(url) will be used to play streams.

This method will need exception handling for non-existent files.

@markjamesm markjamesm added the enhancement New feature or request label Oct 27, 2020
@markjamesm markjamesm self-assigned this Oct 27, 2020
@markjamesm
Copy link
Owner Author

markjamesm commented Oct 31, 2020

This issue discussion for NAudio looks like a good jumping off point. Need to test this code as a proof of concept:

var url = "http://media.ch9.ms/ch9/2876/fd36ef30-cfd2-4558-8412-3cf7a0852876/AzureWebJobs103.mp3";
using(var mf = new MediaFoundationReader(url))
using(var wo = new WaveOutEvent())
{
wo.Init(mf);
wo.Play();
while (wo.PlaybackState == PlaybackState.Playing)
{
Thread.Sleep(1000);
}
}

markjamesm pushed a commit that referenced this issue Nov 13, 2020
…-before-Opening

Quick check if the path in the textbox is a valid file
@markjamesm
Copy link
Owner Author

markjamesm commented Nov 19, 2020

This feature has been implemented already, closing this issue now.

For the copy/paste stream bug, please refer to #19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant