Open syamsitaufik opened 4 years ago
Hello, the StartPlay should be called when the window is fully initialised and visible, i.e. after the Window’s constructor.
On Wed, 4 Sep 2019 at 08:50, syamsi notifications@github.com wrote:
I want to achieve autoplay player. When user execute .exe, player will autoplay. Currently i try like this:
public MainWindow() { this.Title = "CCTV"; InitializeComponent();
var uri = new Uri("http://admin:PassWord123@192.168.1.99:8080/live/117/mainStream"); _streamPlayerControl.StartPlay(uri); _streamPlayerControl.InitializeComponent(); }
but its not working. Please enlighten me on this. Thanks
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jacobbo/WebEye/issues/58?email_source=notifications&email_token=AAN57QATLZMF3KSEUP6FTZTQH5SETA5CNFSM4ITOSLX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HJFQ56Q, or mute the thread https://github.com/notifications/unsubscribe-auth/AAN57QGUIVZG2SZWZFXRTF3QH5SETANCNFSM4ITOSLXQ .
Thanks What do you means?
right after initializeComponent() in MainWindows()?
ok fixed. I add event Loaded:
in MainWindow.xaml
<webEye:StreamPlayerControl x:Name="_streamPlayerControl"
StreamFailed="HandlePlayerEvent"
StreamStarted="HandlePlayerEvent"
StreamStopped="HandlePlayerEvent"
Loaded="_streamPlayerControl_Loaded"
Grid.Row="1" Height="300" Width="542"/>
in MainWindow.xaml.cs
private void _streamPlayerControl_Loaded(object sender, RoutedEventArgs e)
{
var uri = new Uri("http://admin:PassWord123@192.168.1.99:8080/live/117/mainStream");
_streamPlayerControl.StartPlay(uri, TimeSpan.FromSeconds(15), RtspTransport.Undefined, RtspFlags.None);
}
Thanks very much @jacobbo
Please note that you are using not the latest version of the control, to get the latest version update the nuget package.
On Wed, 4 Sep 2019 at 09:17, syamsi notifications@github.com wrote:
ok fixed. I add event Loaded:
in MainWindow.xaml
<webEye:StreamPlayerControl x:Name="_streamPlayerControl" StreamFailed="HandlePlayerEvent" StreamStarted="HandlePlayerEvent" StreamStopped="HandlePlayerEvent" Loaded="_streamPlayerControl_Loaded" Grid.Row="1" Height="300" Width="542"/>
in MainWindow.xaml.cs
private void _streamPlayerControl_Loaded(object sender, RoutedEventArgs e) { var uri = new Uri("http://admin:PassWord123@192.168.1.99:8080/live/117/mainStream"); _streamPlayerControl.StartPlay(uri, TimeSpan.FromSeconds(15), RtspTransport.Undefined, RtspFlags.None); }
Thanks very much @jacobbo https://github.com/jacobbo
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/jacobbo/WebEye/issues/58?email_source=notifications&email_token=AAN57QEPDYHYRO6OH3AD5VLQH5VIHA5CNFSM4ITOSLX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD52YITY#issuecomment-527795279, or mute the thread https://github.com/notifications/unsubscribe-auth/AAN57QBN7ENPT3INPZ3U2H3QH5VIHANCNFSM4ITOSLXQ .
@jacobbo done update. How to reduce latency? got 6 sec delay from realtime.
Can you try your stream with ffplay? Does it show the same latency?
On Wed, 4 Sep 2019 at 09:40, syamsi notifications@github.com wrote:
@jacobbo https://github.com/jacobbo doen update. How to reduce latency? got 6 sec delay from realtime.
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/jacobbo/WebEye/issues/58?email_source=notifications&email_token=AAN57QC4VUENF2IENPLCLIDQH5X6PA5CNFSM4ITOSLX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD522G7I#issuecomment-527803261, or mute the thread https://github.com/notifications/unsubscribe-auth/AAN57QAI4BMJEDO2HEDJJUTQH5X6PANCNFSM4ITOSLXQ .
I have try. got same latency. How to improve it?
If ffplay shows the same issue, then, I’m afraid, that’s a FFmpeg issue, not the control’s, sorry.
On Tue, 10 Sep 2019 at 03:31, syamsi notifications@github.com wrote:
I have try. got same latency
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/jacobbo/WebEye/issues/58?email_source=notifications&email_token=AAN57QGGAAFZUVLWAYHVZX3QI4BHTA5CNFSM4ITOSLX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6JTTEA#issuecomment-529742224, or mute the thread https://github.com/notifications/unsubscribe-auth/AAN57QDNT4AXH6KKEZ6Q7DTQI4BHTANCNFSM4ITOSLXQ .
Hi i already test with ffplay. got delay also. Is there any ways to improve latency?
I want to achieve autoplay player. When user execute .exe, player will autoplay. Currently i try like this:
public MainWindow() { this.Title = "CCTV"; InitializeComponent(); var uri = new Uri("http://admin:PassWord123@192.168.1.99:8080/live/117/mainStream"); _streamPlayerControl.StartPlay(uri); _streamPlayerControl.InitializeComponent(); }
but its not working. Please enlighten me on this. Thanks