none
VLC Streaming URL next button not loading RRS feed

  • Question

  • Hello,

    I am tring to make some free live TV streaming for my mom and dad, as we live outside our country and some streams not workign from other IP then the country TV.

    I have found lot of URL to stream but only in VLC plugin. So I can stream all TV channels, but when I press on next TV button, the TV not load and loads the previous and the only first one which was played from started app.

    So my question is, how to do it on click I load the TV I want? Here is my code example:

     Private Sub Button9_Click(sender As Object, e As EventArgs) Handles Button9.Click
            AxVLCPlugin21.playlist.add("http://212.79.96.134:8023")
            AxVLCPlugin21.playlist.play()
        End Sub
    
        Private Sub Button10_Click(sender As Object, e As EventArgs) Handles Button10.Click
            AxVLCPlugin21.playlist.add("http://gojo.jksw.cz:8001?smin")
            AxVLCPlugin21.playlist.play()
        End Sub
    
        Private Sub Button11_Click(sender As Object, e As EventArgs) Handles Button11.Click
            AxVLCPlugin21.playlist.add("http://gojo.jksw.cz:8002?smin")
            AxVLCPlugin21.playlist.play()
        End Sub

    So I repeat as I mention I am using one VLC plugin and about 20 buttons with TV url, all work fine but if I want change channel I need restart app, as it always play the first button I pressed.

    Thank you for solution.

    Wednesday, November 5, 2014 10:27 AM

Answers

  • Private Sub Button30_Click(sender As Object, e As EventArgs) Handles Button30.Click AxVLCPlugin22.playlist.stop() AxVLCPlugin22.playlist.clear()
    AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8024?smin") AxVLCPlugin22.playlist.play() End Sub


    I'd say like the above - note that I added back in the call to playlist.clear
    • Edited by Quanta Thursday, November 6, 2014 1:18 PM formatting
    • Marked as answer by Carl CaiModerator Wednesday, November 19, 2014 9:31 AM
    Thursday, November 6, 2014 1:17 PM

All replies

  • It's difficult to determine what your code is doing given the names you've used for your controls (what is "Next Channel", is it Button9, Button10, Button11...?) but the one standout issue seems to be that you're adding something to the playlist and then telling the playlist to play.  It stands to reason that it's going to play the entire playlist - i.e., whatever was first queued up (the current channel).

    Try clearing the playlist before adding the new URL to it.  Other than that, I'd say contact VLC and ask them for help as it might just be an issue with their plugin.

    Wednesday, November 5, 2014 1:22 PM
  • hello thanks for reply, here is the code and screen of TV I try to make with buttons.

    I dopnt want to paly all in playlist, I just want to press button and play the stream url until I dont chnage the channel by press on other TV of my choice, so the one TV what is playing should stop and the desired TV the next one I press will start.

    Thank you

    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
            AxVLCPlugin22.playlist.items.clear()
            AxVLCPlugin22.playlist.add("http://88.222.10.27:81/streams/joj.m3u8")
            AxVLCPlugin22.playlist.play()
            Started = True
        End Sub
    
        Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
            AxVLCPlugin22.playlist.items.clear()
            AxVLCPlugin22.playlist.add("http://88.222.10.27:81/streams/jojplus.m3u8")
            AxVLCPlugin22.playlist.play()
            PlayedSecond = True
            Started = False
        End Sub
    
    
        'Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        'AxVLCPlugin22.playlist.add("http://88.222.10.27:81/streams/joj.m3u8")
        'AxVLCPlugin22.playlist.play()
        'End Sub
    
        'Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
        ' AxVLCPlugin22.playlist.next()
        ' AxVLCPlugin22.playlist.add("http://88.222.10.27:81/streams/jojplus.m3u8")
        'AxVLCPlugin22.playlist.next()
    
        ' End Sub
        Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
            AxVLCPlugin22.playlist.add("http://88.222.10.27:81/streams/markiza.m3u8")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
            AxVLCPlugin22.playlist.add("http://88.222.10.27:81/streams/doma.m3u8")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
            AxVLCPlugin22.playlist.add("http://88.222.10.27:81/streams/dajto.m3u8")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
            AxVLCPlugin22.playlist.add("http://88.222.10.27:81/streams/stv1.m3u8")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click
            AxVLCPlugin22.playlist.add("http://88.222.10.27:81/streams/stv2.m3u8")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button8_Click(sender As Object, e As EventArgs) Handles Button8.Click
            AxVLCPlugin22.playlist.add("http://88.222.10.27:81/streams/ta3.m3u8")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button29_Click(sender As Object, e As EventArgs) Handles Button29.Click
            AxVLCPlugin22.playlist.stop()
        End Sub
    
        Private Sub Button9_Click(sender As Object, e As EventArgs) Handles Button9.Click
            AxVLCPlugin22.playlist.add("http://222.79.96.134:8023")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button10_Click(sender As Object, e As EventArgs) Handles Button10.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8001?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button11_Click(sender As Object, e As EventArgs) Handles Button11.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8002?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button12_Click(sender As Object, e As EventArgs) Handles Button12.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8003?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button13_Click(sender As Object, e As EventArgs) Handles Button13.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8004?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button14_Click(sender As Object, e As EventArgs) Handles Button14.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8005?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button15_Click(sender As Object, e As EventArgs) Handles Button15.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8010?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button16_Click(sender As Object, e As EventArgs) Handles Button16.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8011?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button17_Click(sender As Object, e As EventArgs) Handles Button17.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8013?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button18_Click(sender As Object, e As EventArgs) Handles Button18.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8014?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button19_Click(sender As Object, e As EventArgs) Handles Button19.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8015?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button20_Click(sender As Object, e As EventArgs) Handles Button20.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8016?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button21_Click(sender As Object, e As EventArgs) Handles Button22.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8012?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button22_Click(sender As Object, e As EventArgs) Handles Button22.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8017?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button23_Click(sender As Object, e As EventArgs) Handles Button23.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8018?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button24_Click(sender As Object, e As EventArgs) Handles Button24.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8019?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button25_Click(sender As Object, e As EventArgs) Handles Button25.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8020?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button26_Click(sender As Object, e As EventArgs) Handles Button26.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8022?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button27_Click(sender As Object, e As EventArgs) Handles Button27.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8022?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button28_Click(sender As Object, e As EventArgs) Handles Button28.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8023?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button30_Click(sender As Object, e As EventArgs) Handles Button30.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8024?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button31_Click(sender As Object, e As EventArgs)
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8025?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button32_Click(sender As Object, e As EventArgs) Handles Button32.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8027?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
    
    
    End Class
    

    screen of my tv exemple

    Thursday, November 6, 2014 1:06 PM
  • I'm not familiar with the VLC plugin API, but is there a Playlist.Stop method?  If so, I'd call that right after (or before) Playlist.Clear.
    Thursday, November 6, 2014 1:13 PM
  • hmm do you think like this?

    Private Sub Button28_Click(sender As Object, e As EventArgs) Handles Button28.Click
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8023?smin")
            AxVLCPlugin22.playlist.play()
        End Sub
    
        Private Sub Button30_Click(sender As Object, e As EventArgs) Handles Button30.Click
    AxVLCPlugin22.playlist.stop()
            AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8024?smin")
            AxVLCPlugin22.playlist.play()
        End Sub

    Thursday, November 6, 2014 1:15 PM
  • Private Sub Button30_Click(sender As Object, e As EventArgs) Handles Button30.Click AxVLCPlugin22.playlist.stop() AxVLCPlugin22.playlist.clear()
    AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8024?smin") AxVLCPlugin22.playlist.play() End Sub


    I'd say like the above - note that I added back in the call to playlist.clear
    • Edited by Quanta Thursday, November 6, 2014 1:18 PM formatting
    • Marked as answer by Carl CaiModerator Wednesday, November 19, 2014 9:31 AM
    Thursday, November 6, 2014 1:17 PM
  • I'm not familiar with the VLC plugin API, but is there a Playlist.Stop method?  If so, I'd call that right after (or before) Playlist.Clear.

    also I dont need exactly VLC if there is possibility to play that stream url in WMP or other I dont care it will be ok, so what is your solution please?

    thanks

    Thursday, November 6, 2014 1:18 PM
  • Private Sub Button30_Click(sender As Object, e As EventArgs) Handles Button30.Click AxVLCPlugin22.playlist.stop() AxVLCPlugin22.playlist.clear()
    AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8024?smin") AxVLCPlugin22.playlist.play() End Sub


    I'd say like the above - note that I added back in the call to playlist.clear
    It doesnt play the tv like this, it wont start :(
    Thursday, November 6, 2014 1:21 PM
  • Private Sub Button30_Click(sender As Object, e As EventArgs) Handles Button30.Click AxVLCPlugin22.playlist.stop() AxVLCPlugin22.playlist.clear()
    AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8024?smin") AxVLCPlugin22.playlist.play() End Sub


    I'd say like the above - note that I added back in the call to playlist.clear

    It doesnt play the tv like this, it wont start :(

    I went to that link with a webbrowser and it asked me if I wanted to download a file XPZJ1HC0.

    So HELLO of course VLC isn't going to play a file it's being asked to download and who knows what the hell that file is anyhow. VLC doesn't do downloads, it plays appropriate file types.

    You always seem to want to program way outside of your skillset without even attempting to learn how things work ahead of time. And then want anybody else to perform all the effort to resolve your issues. Waste of time in my point of view.

    And even then once your thread is answered you seem to always come back with something else instead of ending the thread.


    La vida loca



    Thursday, November 6, 2014 5:35 PM
  • Private Sub Button30_Click(sender As Object, e As EventArgs) Handles Button30.Click AxVLCPlugin22.playlist.stop() AxVLCPlugin22.playlist.clear()
    AxVLCPlugin22.playlist.add("http://gojo.jksw.cz:8024?smin") AxVLCPlugin22.playlist.play() End Sub


    I'd say like the above - note that I added back in the call to playlist.clear

    It doesnt play the tv like this, it wont start :(

    I went to that link with a webbrowser and it asked me if I wanted to download a file XPZJ1HC0.

    So HELLO of course VLC isn't going to play a file it's being asked to download and who knows what the hell that file is anyhow. VLC doesn't do downloads, it plays appropriate file types.

    You always seem to want to program way outside of your skillset without even attempting to learn how things work ahead of time. And then want anybody else to perform all the effort to resolve your issues. Waste of time in my point of view.

    And even then once your thread is answered you seem to always come back with something else instead of ending the thread.


    La vida loca



    I asked how to mark as answered, i dont see any button to gave you points.

    NEXT when you open VLC on PC and add that url OR m3u8 it plays! So i just asked, how to do in vb .net. If you dont know then why posting bad help?

    thanks

    Thursday, November 6, 2014 9:09 PM