Workaround to play HTTPS video URL in WPF MediaElement

有些话、适合烂在心里 提交于 2019-12-12 20:34:12

问题


I have a C#/WPF application and I need to play a video stream over HTTPS (I'm talking about a YouTube videos, direct URLs extracted by using YoutubeExplode).

It's well known that WPF MediaElement is a control with a lot of BUGs, but I'm looking for a method to make it work.

Like in this stackoverflow question, I'd like to make a localhost redirect by coding a small HttpListener that transmits the HTTPS response in real time using an HTTP URL, but I have no idea how to do it.

Maybe someone can help me by making a working example?

Thanks.

来源:https://stackoverflow.com/questions/51431493/workaround-to-play-https-video-url-in-wpf-mediaelement

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!