문제

I have a rtmp video stream which is dynamically changing it's resolution and aspect ratio during the process of streaming and i wish to somehow play it on a web page.

For this purpose i have chosen a flowplayer solution, but it is not detecting video aspect ratio change during the process of streaming, though does that perfectly when flowplayer initially loaded and fetched video the first time (e.g. after reload of web-page with flowplayer on it). I wish to enable it do dynamically detect aspect ratio of the stream, changing it on-the-fly.

How it is possible?

I have tried different flowplayer' clip' scaling options, but they are affecting only the initial loading stage and constant all the time later.

도움이 되었습니까?

해결책

Got it. Had to do the following thing in clip definition, now clip is resizing properly:

clip: {
    onMetaDataChange: function(clip) {
      clip.update({scaling: 'fit'});
    },
    ... rest of the options ...
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top