在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):AxisCommunications/media-stream-library-js开源软件地址(OpenSource Url):https://github.com/AxisCommunications/media-stream-library-js开源编程语言(OpenSource Language):TypeScript 94.5%开源软件介绍(OpenSource Introduction):Media Stream Library JSMedia Stream Library JS is an open-source JavaScript library to handle media stream transforms for Node & the Web. The primary purpose is to deal with RTP streams in a browser without the need to use plugins or Flash, but relying on the Media Source Extensions standard, which is supported in all modern browsers. Although RTP streams is the main focus, the library is not limited to handling RTP streams, or to the browser. It is suited to handle streams of messages of any kind, and makes it easier to stitch together transformations from one message type to another. Contributions of new components/pipelines are always welcome. Note for IE11 users: there is a legacy build available on the InstallationMake sure you have Node installed on your machine. Then, to install the library:
or if you are using
UsageThis library is not a full media player: the framework provides no video controls, progress bar, or other features typically associated with a media player. For a simple React-based player we refer to the Media Stream Player library, which is built around this library. However, getting video to play in the browser is quite easy (check the browser example). There are currently no codecs included either, we rely on browser support for that. Although RTP streams is the main focus, the library is not limited to handling RTP streams, or to the browser. Its main focus is to handle streams of messages, and make it easier to stitch together transformations from one message type to another. Contributions of new components/pipelines are always welcome. Importingscript tag You can directly include the
in which case a global variable bundler Alternatively, you can import it into your javascript code if you are going to bundle it yourself:
Note that we expose entry points for both node and the browser. Any bundler
should be able to pick up the correct entry point from Components and pipelinesThe library contains a collection of components that can be connected together to form media pipelines. The components are a low-level abstraction on top of Node streams to allow two-way communication, while media pipelines are sets of connected components with methods that allow you to control the pipeline, and easily add/remove components. Components can be categorized as:
To build a pipeline, you can connect the required components. A number of common pipelines are exported directly for convenience. Check the DebuggingIn the browser, you can set ContributingPlease read our contributing guidelines before making pull requests. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论