如何在GOLANG中使用MPEG-DASH流式传输视频?

huangapple go评论105阅读模式
英文:

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:

https://github.com/shaka-project/shaka-player

huangapple
  • 本文由 发表于 2022年11月26日 03:20:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/74577142.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定