this is my code: for vidoes. It doesn’t play or youtube videos cannot be played.
<Video ux:Name="videos" Url="https://www.youtube.com/watch?v=P2g8E-KQFwA"/> <Panel> <Button Text="Play"> <Clicked> <Play Target="videos"></Play> </Clicked> </Button>
You can’t play Youtube videos that way. Basically, a Youtube url does not constitute a video stream, it’s just a link to a web page (which happens to contain a custom video player).
To play Youtube videos you can instead try: