Alcinoe icon indicating copy to clipboard operation
Alcinoe copied to clipboard

RTSP stream

Open gonzzzales opened this issue 2 years ago • 3 comments

Is it possible to view rtsp stream from ip-camera using Alcinoe?

gonzzzales avatar Mar 28 '23 14:03 gonzzzales

hello, you mean in android/ios app ? I guess yes

Zeus64 avatar Mar 28 '23 14:03 Zeus64

yes, using mobile platforms. i try to do something like this in AlFMXControl example `procedure TForm1.ALVertScrollBox1ViewportPositionChange(Sender: TObject;const OldViewportPosition, NewViewportPosition: TPointF); begin

if (ALVideoPlayerSurface1.Position.y + ALVideoPlayerSurface1.Height >= NewViewportPosition.Y) and (ALVideoPlayerSurface1.Position.y < NewViewportPosition.Y + height) then begin if ALVideoPlayerSurface1.VideoPlayer.state in [vpsIdle] then begin ALVideoPlayerSurface1.VideoPlayer.setLooping(true); ALVideoPlayerSurface1.VideoPlayer.prepare('rtsp://admin:[email protected]:5011/RVi/1/1', True{AutoStartWhenPrepared}); end else if ALVideoPlayerSurface1.VideoPlayer.state in [vpsPrepared, vpsPaused] then ALVideoPlayerSurface1.VideoPlayer.Start else ALVideoPlayerSurface1.VideoPlayer.AutoStartWhenPrepared := true; end else begin if ALVideoPlayerSurface1.VideoPlayer.state in [vpsStarted] then ALVideoPlayerSurface1.VideoPlayer.Pause else ALVideoPlayerSurface1.VideoPlayer.AutoStartWhenPrepared := False; end;

if (ALLayout1.Position.y + ALLayout1.Height >= NewViewportPosition.Y) and (ALLayout1.Position.y < NewViewportPosition.Y + height) then begin ALAniIndicator1.enabled := true; end else begin ALAniIndicator1.enabled := False; end;

if ALMemo1.Position.Y - NewViewportPosition.Y > clientHeight then ALMemo1.RemoveNativeView else ALMemo1.AddNativeView;

if ALRectangle3.Position.Y - NewViewportPosition.Y > clientHeight then ALEdit1.RemoveNativeView else ALEdit1.AddNativeView;

end;`

but i dont see the stream

gonzzzales avatar Mar 28 '23 14:03 gonzzzales

Please, let me know, if it is possible!!!

gonzzzales avatar Mar 29 '23 06:03 gonzzzales