Closed hahashigehaha closed 6 years ago
Look likes you haven't provided timing information properly.
Do you have fixed frame rate?
Can you share your code?
ok. i say again. My data is the native H264 encoding data of the frame screen. When I play it with your library, I can only display the first frame, and the rear picture can't be parsed. There are continuous data, but they do not show, freeze frames in the first frame.
Forgive me for my poor English...
Yes I understood your case. It basically happens whenever you don't provide timing information.
Let me explain little. Assume you are making a h264 player so what would be the barefoot steps:
fps
value while instantiating Or you can provide duration when you feed media data.Example:
During instantiation -- You must provide a fps (frame per second) value
var jmuxer = new JMuxer({ node: 'player', fps: 24, debug: false });
During Feed (You can provide chunk duration in mili-seconds either)
jmuxer.feed({ audio: audioData, video: videoData, duration: 500 });
Hope this helps you!
sorry,it can't work!
it's work. because i forget to call play .
my websocket is raw h264 frame data,only show first frame,but can't show the back of the frame?