Questions tagged [mediaplayerelement]

11 questions
1
vote
1 answer

MediaPlayerElement play/pause button is always disabled

I'm working on a new app and I decided to use MediaPlayerElement to play background music and also video, But there's a problem. Also, there's the same issue on the SystemMediaTransportControls sample on Universal Windows Platform samples. In that…
Ali NGame
  • 449
  • 3
  • 14
0
votes
1 answer

WinUI 3 MediaPlayerElement capture image

I have a MediaPlayerElement playing a random video file and a "Capture" button. When I click a button, I want to get a screenshot of the video as a SoftwareBitmap object. I was able to do it from the Camera using MediaCapture and deviceId but I…
Dmitrii Polianskii
  • 565
  • 1
  • 8
  • 21
0
votes
1 answer

UNO Platform: Droid Project - Media Player element will not play mp4 from project file

New to UNO Platform. Working on a test project and having trouble playing mp4 using MediaPlayerElement on Droid. MyVideo.mp4 is in Shared/Assets/Videos with Build Action = Content; and Copy to Output Directory = Do Not Copy. Have tried setting to…
0
votes
0 answers

Adding a layer over media player element or LibVLCSharp player

I want to add shapes like ellipse on top of the video. right now if i add a shape over the media player element i can see it in the wpf desinger but can not see it in runtime.
0
votes
0 answers

How do I get the NextTrack button click on a MediaPlayerElement that has only one track?

I have a UWP Desktop application for playing audio. The user can select the file to be played from a list with dozens of other files. This list is defined as a MediaPlaybackItem List and when the selection is made I set the Source property of the…
Jose Afonso
  • 117
  • 8
0
votes
1 answer

UWP. How to open multiple videos

How to play all files in a folder. This feature does not work correctly: FolderPicker folderPicker = new FolderPicker(); folderPicker.SuggestedStartLocation = PickerLocationId.Desktop; folderPicker.FileTypeFilter.Add("*"); folder =…
0
votes
1 answer

How to know when the user presses one of the MediaPlayerElement buttons (play, pause, next track, etc.)?

I have a UWP Desktop application for playing audios. I'm using a MediaPlayerElement and setting the MediaPlayer's Source property to a MediaPlaybackList. I have two questions: How to know when the user presses one of the MediaPlayerElement buttons…
Jose Afonso
  • 117
  • 8
0
votes
1 answer

How to run items from an ExternalTimedMetadataTracks collection?

I'm working on a UWP Desktop application for playing videos. I need to include subtitles at runtime and I'm trying to use a TimedMetadataTrack object of type Subtitle. Although I've included several TimedTextCue in a TimedMetadataTrack object and…
Jose Afonso
  • 117
  • 8
0
votes
1 answer

MediaPlayerElement.MediaPlayer.PlaybackSession.NaturalDuration always returns zero

I'm working on a TTS (Text to Speech) application and I need to present the duration of each speech. The problem is that it always returns zero. Any help is most welcome. Thanks. SpeechSynthesizer synthesizer = new SpeechSynthesizer(); …
Jose Afonso
  • 117
  • 8
0
votes
0 answers

UWP: Get Artist / Title of URL Webradio Stream

Is it possible to extract Artist / Title with the MediaPlayerElement / MediPlayer / MediaItem Classes in UWP, if it's delivered in the Web Stream? f.e. this URL https://swr-dasding-live.cast.addradio.de/swr/dasding/live/mp3/128/stream.mp3 delivers…
TiMeJuMp
  • 353
  • 1
  • 2
  • 14
0
votes
1 answer

How to get MediaPlayerElement's seeking start event in uwp?

MediaPlayerElement has an event called SeekCompleted, but does not have a SeekStarted event. This is annoying when I click the slider when the network is bad, it seems like the frame is stopped, and MediaPlayerElement returns "PlaybackState:…
Vincent
  • 3,124
  • 3
  • 21
  • 40