2 Replies - 919 Views - Last Post: 09 April 2013 - 06:43 AM Rate Topic: -----

#1 Mannilie  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 04-April 13

Visual Basic VLC Plugin doesn't work on other PC's?

Posted 09 April 2013 - 01:52 AM

Hello,
I know I shouldn't be asking this question in this discussion but when I ask this particular question in VLC's forum, It goes unanswered. So anyways, here's my issue. I created a VB project with the VLC ActiveX COM component and it creates a 2 .dll files within the debug folder of my Visual Basic(2010) project folder. I have inserted a screen shot of the error that come's up when you open the file. Here's my source code and the question is, is there any way I can fix it? I want to be able to run it on other machines which do not have VLC installed. I don't know if the new .dll's are dependent on VLC being installed onto a machine.
Public Class btnPlay
    Dim File As String = Command$()
    Dim BrowserFile As String
    Dim SongName As String
    Dim SongTitle As String
    Dim DeleteNumber As Integer
    Private Sub btnBrowse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBrowse.Click
        Dim open_File As New OpenFileDialog
        With open_File
            .Title = "Media Player Browser"
            .Filter = "(*.avi;*.mp3)|*.avi;*.mp3"
            .FileName = ""
        End With
        If open_File.ShowDialog = Windows.Forms.DialogResult.OK Then
            VLC.playlist.stop()
            VLC.playlist.items.clear()
            VLC.playlist.add("File:///" & open_File.FileName)
            BrowserFile = open_File.FileName
            DeleteNumber = BrowserFile.LastIndexOf("\")
            BrowserFile = BrowserFile.Remove(0, DeleteNumber + 1)
            SongTitle = BrowserFile
            DeleteNumber = SongTitle.Length - 4
            SongTitle = SongTitle.Substring(0, DeleteNumber)
            SongTitle.Replace("_", " ")
            If SongTitle.Contains("_") Then
                SongTitle = SongTitle.Replace("_", " ")
            End If
            lblTime.Text = SongTitle
            VLC.playlist.play()
        End If
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        VLC.playlist.play()
    End Sub

    Private Sub btnPlay_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim FileName As String
        Dim EndOfString As Integer
        If Not File = "" Then
            File = File.Replace("""", "")
            FileName = File
            EndOfString = FileName.Length
            SongName = File
            DeleteNumber = SongName.LastIndexOf("\")
            SongName = SongName.Remove(0, DeleteNumber + 1)
            SongTitle = SongName
            DeleteNumber = SongTitle.Length - 4
            SongTitle = SongTitle.Substring(0, DeleteNumber)
            If SongTitle.Contains("_") Then
                SongTitle = SongTitle.Replace("_", " ")
            End If
            lblTime.Text = SongTitle
            VLC.playlist.stop()
            VLC.playlist.items.clear()
            VLC.playlist.add(FileName)
            VLC.playlist.play()
        End If
    End Sub
End Class

Attached image(s)

  • Attached Image


Is This A Good Question/Topic? 0
  • +

Replies To: Visual Basic VLC Plugin doesn't work on other PC's?

#2 IronRazer  Icon User is offline

  • D.I.C Addict

Reputation: 281
  • View blog
  • Posts: 891
  • Joined: 01-February 13

Re: Visual Basic VLC Plugin doesn't work on other PC's?

Posted 09 April 2013 - 06:16 AM

Hi,
I don`t use vlc but, i have tried googling this for a while and can not find anything saying if you need it installed or not. I would say you may have to try it on another machine that has it installed to find out. It may also be that the other machine does not have the correct codecs installed. :unsure:
Was This Post Helpful? 0
  • +
  • -

#3 Mannilie  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 04-April 13

Re: Visual Basic VLC Plugin doesn't work on other PC's?

Posted 09 April 2013 - 06:43 AM

Ahh yeah... The thing is, I've already tested it on another PC and it seems to have the same effect. I think you're right about codecs but when I tried installing them onto the PC it still game me the same error unfortunately... I still can't figure it out :o
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1