AxisCommunications / locomote-video-player

Media Player in Adobe Flash with RTSP support. (THIS PROJECT IS NO LONGER MAINTAINED)
BSD 3-Clause "New" or "Revised" License
133 stars 79 forks source link

Buffering time for low fps streams. #119

Closed romanstyler closed 9 years ago

romanstyler commented 9 years ago

Hi. I succesfully using your plugin for flash to see RTSP streams. It's great! But have some questions: Is it possible to reduce buffering time for player? Better I will explain my tests:

From my side it looks like player needs buffer some number of frames to show stream.

There is live stream at this moment: rtsp://admin:1234@159.224.193.199:5555/ipcam_h264.sdp

I changed fps to 5 frames per second. From my side there is delay before video will be shown about 15 seconds. Are you able to reproduce this 15 seconds delay on your side? I choose such config:

public static var config:Object = { 'buffer': 0.1, 'connectionTimeout': 10, 'scaleUp': true, 'allowFullscreen': false, 'debugLogger': true };

What do you think is it possible to show stream without buffer, I mean to get read of 15 deconds delay from realtime?

noseglid commented 9 years ago

The buffer (which may be specified on the fly - no need to recompile) specifies the number of seconds which must be buffered before playing. 3 is the default, but this can be set to 0 to fully eliminate the buffer (this is definitely not recommended though, playback will likely be very choppy).

The stream you provided works quite well for me. It takes about 3 seconds for video to display. That's with the default settings of locomote: lowfps

romanstyler commented 9 years ago

Thank you, let me recheck. Probably something wrong on my side.

noseglid commented 9 years ago

Did you get this to work in a satisfying manner?

romanstyler commented 9 years ago

Sorry. For some reason this problem is reproduced only on one PC. On mobile devices and notebook and working PC there is no delay. Let me close this issue.