Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If i create the control dinamically it stays blank #88

Open
Szanesz opened this issue Dec 29, 2020 · 1 comment
Open

If i create the control dinamically it stays blank #88

Szanesz opened this issue Dec 29, 2020 · 1 comment

Comments

@Szanesz
Copy link

Szanesz commented Dec 29, 2020

Hello!

In WPF (vb.net) if i create the control in design mode it loads the stream but in few hours i run into the TMP error (i wrote this issue too in the other issue chat)
So i fugured out that i create the control dynamically, from code.. but in this way it stays white at load. What do i miss? thanks for the help:

SPlayer1 = New StreamPlayerControl
    SPlayer1.InitializeComponent()
    SPlayer1.Height = 166
    SPlayer1.Width = 263
    canvas_STREAMPLAYERPLACEHOLDER1.Children.Clear()
    canvas_STREAMPLAYERPLACEHOLDER1.Children.Add(SPlayer1)
    SPlayer1.StartPlay(New Uri("rtsp://admin:[email protected]:554/11")) 
    AddHandler SPlayer1.StreamStopped, AddressOf SPLAYER1Failed

Thanks
Peter

@Szanesz
Copy link
Author

Szanesz commented Jan 31, 2021

I found a solution.. if i do the startplay with a little delay in a separate sub, it starts :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant