Click here to Skip to main content
15,902,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I make sure VLC buffers to 5% before playing in VB.NET?
So far I can play clips one after the other. But what I'd like to do, is make sure before begins playing each time 5% of the video from the point in video so far is added to buffer. So as to not randomly pause if download speed slows.

I don't know how to do this, so help would be much appreciated. Thanks

Reason for doing this:
Sometimes player will randomly pause whilst watching making playback really irritating.

Code so far:
Public Class Form1
    Dim Paused As Boolean = False
    Dim Started As Boolean = False
    Dim PlayedSecond As Boolean = True
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        PlayedSecond = False
        Started = True
    End Sub

    Sub playsecond()
            PlayedSecond = True
            Started = False
    End Sub

    Private Sub AxVLCPlugin21_pause(sender As Object, e As EventArgs) Handles AxVLCPlugin21.pause
            Paused = True
    End Sub

    Private Sub IsFinished_Tick(sender As Object, e As EventArgs) Handles IsFinished.Tick
        If Not AxVLCPlugin21.playlist.isPlaying And Paused = False And Started = True And PlayedSecond = False Then
            Started = True
        End If
    End Sub

    Private Sub AxVLCPlugin21_play(sender As Object, e As EventArgs) Handles
        Paused = False
    End Sub
End Class
Updated 27-Jan-13 5:59am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900