FlvPlayer | JavaScript player for decode flv | Websocket library
kandi X-RAY | FlvPlayer Summary
kandi X-RAY | FlvPlayer Summary
FlvPlayer.js is a JavaScript player for decode flv to the canvas.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Add editor methods to editor instances .
- Creates a new PDFFrame .
- Attach player controls .
- Defines options for CodeMirror editor .
- Handles mouse click events
- Decode a scrub tag .
- Displays the player to a player .
- Registers event handlers for mouse events .
- Initialize a new VideoDecoder .
- Convert a byte buffer to a C C B .
FlvPlayer Key Features
FlvPlayer Examples and Code Snippets
Community Discussions
Trending Discussions on FlvPlayer
QUESTION
I have node.js server that uses node-media-server:
...ANSWER
Answered 2020-Oct-27 at 12:57You can add text to a video in a number of ways - most common are probably:
Add a text track to the video container, i.e. the MP4 file. This is usually done server side and the client then uses this info to display it client side. You can see more info here and an example with a commonly used tool: https://www.bento4.com/developers/dash/subtitles/
Embed the text in the frames themselves - this requires more processing and also adds the text to the video frames themselves, so you can't turn text on and off at the client easily. If you do want to do this then FFMPEG is probably a good place to start.
Add a text overlay on the client itself - e.g. a text 'div' or element on a browser App, or a TextView on Android etc. You mention that synchronisation may be a problem, but you could take timing events from the video to trigger changing the text. This avoids you having to do any extra processing on the video or video container.
A simple example of using timing to trigger text is below - you would likely want to update it to avoid checking everything on each 'onTimeUpdate' event, and maybe to put the text over the video itself, but this give an example how the basic mechanism works:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install FlvPlayer
You should load the control before load the player. Or umd builds are also available. Will expose the global variable to window.FlvplayerControl.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page