TS91 Posted September 26, 2009 at 06:12 PM Report Share #288785 Posted September 26, 2009 at 06:12 PM Boas a todos, eu estou a tentar criar uma audio player, ja consigo meter as musicas a tocar; mas quandp tento meter o filme, o mesmo so passa o som, a imagem do filme não aparece. Codigo: Public Class leitor Private Sub import_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles import.Click importdiag.Filter = "Musica|*.mp3;*.wma;*.avi" importdiag.ShowDialog() End Sub Private Sub importdiag_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles importdiag.FileOk For Each track As String In importdiag.FileNames playlist.Items.Add(track) Next End Sub Private Sub play_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles play.Click MP_screen.URL = playlist.SelectedItem End Sub Private Sub bt_stop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_stop.Click MP_screen.Ctlcontrols.stop() End Sub Private Sub bt_seguinte_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_seguinte.Click MP_screen.Ctlcontrols.next() End Sub Private Sub bt_anterior_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_anterior.Click MP_screen.Ctlcontrols.previous() End Sub End Class http://img23.imageshack.us/img23/8465/semttulobd.jpg Agradeço aos que ajudarem a resolver este problema. 😉 Link to comment Share on other sites More sharing options...
ribeiro55 Posted September 26, 2009 at 06:22 PM Report Share #288787 Posted September 26, 2009 at 06:22 PM Olá. À partida estará alheio à tua aplicação. Está-me a querer parecer que não tens codecs adequados ao formato de vídeo que estás a tentar ver. Se os conseguires ver através do Windows Media Player mas não na tua aplicação, experimenta meter a propriedade WindowlessVideo a false Um aparte: Quando inserires código no post, selecciona-o todo e escolhe a linguagem na combobox no canto superior direito. Dessa forma contribuis para uma maior legibilidade do código no teu post. Sérgio Ribeiro "Great coders aren't born. They're compiled and released""Expert coders do not need a keyboard. They just throw magnets at the RAM chips" Link to comment Share on other sites More sharing options...
TS91 Posted September 26, 2009 at 07:52 PM Author Report Share #288802 Posted September 26, 2009 at 07:52 PM Continua a não dar. P.S.:Eu tenho os codecs Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now