英文:
how to stream a video using MPEG-DASH in GOLANG?
问题
当有人访问/watch.html页面时,你可以使用MPEG-DASH来流式传输视频,并在浏览器中使用Shaka Player来显示视频。
英文:
I have a go HTTP server and a video tag in /watch.html
.
How can I stream a video using MPEG-DASH when someone visits the watch page and display the video using Shaka Player in the browser?
答案1
得分: 1
我假设你的访问者正在使用一个网页浏览器。网页浏览器本身不支持原生播放MPEG-DASH格式。因此,你需要嵌入或引用一个基于JavaScript的MPEG-DASH播放器。
你可以在https://reference.dashif.org/dash.js/nightly/samples/index.html找到许多示例。
或者你也可以使用Shaka播放器:
https://github.com/shaka-project/shaka-player
英文:
I assume your visitors are using a web browser. Web browsers don't natively support playing MPEG-DASH. So you have to embed or reference a JavaScript based MPEG-DASH player.
You'll find many samples at https://reference.dashif.org/dash.js/nightly/samples/index.html
or you can also use the Shaka player:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论