locked
wpf mediaelement error with external storage RRS feed

  • Question

  • I am using Mediaelement in my WPF application . I insert external storage while debugging and want to play a video file from the external storage but I can not but when I Redebug the application i can play. how can i play the file without redebug ,please help me.

    Private Sub BrowseFile()
            If openfile.ShowDialog = True Then
                Try
                    My.Settings.Path = openfile.FileName
                    txt_name.Content = openfile.FileName
                Catch ex As Exception
    
                End Try
                mediaelement.Position = New TimeSpan(0)
                slider_due.Value = 0
            End If
        End Sub
    If My.Settings.Path = "" Then
                Else
                    Try
                        mediaelement.Source = New Uri(My.Settings.Path)
                    Catch ex As Exception
    
                    End Try
                End If


    Search Results

    Web result

    Tuesday, July 7, 2020 3:45 PM

All replies

  • Hello,

    Use the following forum

    https://docs.microsoft.com/en-us/answers/topics/wpf.html


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Tuesday, July 7, 2020 4:22 PM