Jump to content

Ficheiros de video sem imagem


TS91

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.