有没有人使用jwplayer连续播放多个flv文件?使用vb.net

有没有人使用jwplayer连续播放多个flv文件?使用vb.net,vb.net,visual-studio-2010,flash,video-streaming,jwplayer,Vb.net,Visual Studio 2010,Flash,Video Streaming,Jwplayer,有没有人使用jwplayer连续播放多个flv文件? 为了进一步澄清,我想知道的是jwplayer何时完成了一个视频的播放,这样我就可以开始播放下一个视频了 到目前为止,我只能演一部电影,但不能一部接一部地演 迄今为止的代码: Imports System.IO Imports System.Net.Sockets Public Class Form1 Friend WithEvents AxShockwaveFlash1 As New AxShockwaveFlashObjects.A

有没有人使用jwplayer连续播放多个flv文件? 为了进一步澄清,我想知道的是jwplayer何时完成了一个视频的播放,这样我就可以开始播放下一个视频了

到目前为止,我只能演一部电影,但不能一部接一部地演

迄今为止的代码:

Imports System.IO
Imports System.Net.Sockets
Public Class Form1
    Friend WithEvents AxShockwaveFlash1 As New AxShockwaveFlashObjects.AxShockwaveFlash
    Dim PlayingFlash As Boolean = False
    Dim PlaylistHidden As Boolean = False
    Dim SettingUseJwPlayer3_16 As Boolean = True
    Sub OpenFLV(ByVal strFile As String, ByVal AxShockWaveFlash As AxShockwaveFlashObjects.AxShockwaveFlash)
        Dim strPath As String
        Dim PlayerPath As String = My.Computer.FileSystem.SpecialDirectories.Temp & "\player.swf"
        If File.Exists(PlayerPath) Then File.Delete(PlayerPath)
        File.WriteAllBytes(PlayerPath, My.Resources.player)
        strPath = "file:///" & PlayerPath & "?file="
        strPath = strPath & strFile
        strPath = Replace(strPath, "\", "/")
        With AxShockWaveFlash
            .Stop()
            .Visible = True
            .Menu = False
            .FlashVars = "&showstop=true&showdownload=false&height=" & AxShockWaveFlash.Height.ToString & "&width=" & AxShockWaveFlash.Width.ToString & "&showplay=true&autoscroll=false&autostart=true&overstretch=true&showicons=1&searchbar=false&controlbar=0"
            .LoadMovie(0, strPath)
            .Play()
        End With
        PlayingFlash = True
    End Sub
    Sub PlayJwPlayer3_16(ByVal Vid As String)
        If Not AxShockwaveFlash1.IsDisposed Then AxShockwaveFlash1.Dispose()
        AxShockwaveFlash1 = New AxShockwaveFlashObjects.AxShockwaveFlash
        AxShockwaveFlash1.BeginInit()
        AxShockwaveFlash1.Name = "AxShockwaveFlash1"
        AxShockwaveFlash1.EndInit()
        Me.Controls.Add(AxShockwaveFlash1)
        AxShockwaveFlash1.Visible = True
        AxShockwaveFlash1.Location = Panel1.Location
        AxShockwaveFlash1.BringToFront()
        PlayingFlash = True
        Panel1.Visible = False
        OpenFLV(Vid, AxShockwaveFlash1)
    End Sub
    Private Sub Play_Click(sender As Object, e As EventArgs) Handles Play.Click
        PlayJwPlayer3_16("https://dp-geography.wikispaces.com/file/view/World+Cup+in+South+Africa+-+%28IB+Geography+Study+Sports%2C+Leisure+%26amp%3B+Tourism+%29.flv")
    End Sub
End Class

对于重复播放列表,它将是这样的

而不是:

PlayJwPlayer3_16("https://dp-geography.wikispaces.com/file/view/World+Cup+in+South+Africa+-+%28IB+Geography+Study+Sports%2C+Leisure+%26amp%3B+Tourism+%29.flv")
使用类似于:

PlayJwPlayer3_16("https://dp-geography.wikispaces.com/file/playlist.xml")
对于本部分:

FlashVars = "&showstop=true&showdownload=false&height=" & AxShockWaveFlash.Height.ToString & "&width=" & AxShockWaveFlash.Width.ToString & "&showplay=true&autoscroll=false&autostart=true&overstretch=true&showicons=1&searchbar=false&controlbar=0"
看起来像:

&showstop=true&showdownload=false&height=" & AxShockWaveFlash.Height.ToString & "&width=" & AxShockWaveFlash.Width.ToString & "&showplay=true&autoscroll=false&autostart=true&overstretch=true&showicons=1&searchbar=false&controlbar=0&repeat=list"
<playlist version="1" xmlns="http://xspf.org/ns/0/">
    <title>Example XSPF playlist for the JW Player</title>
    <info>http://www.longtailvideo.com</info>
    <tracklist>

        <track>
            <title>Big Buck Bunny - FLV Video</title>
            <creator>the Peach Open Movie Project</creator>
            <info>http://www.bigbuckbunny.org/</info>
            <annotation>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation. Like the foundation's previous film Elephants Dream, the film is made using free and open source software.</annotation>
            <location>http://www.longtailvideo.com/jw/upload/bunny.flv</location>
        </track>

        <track>
            <title>Big Buck Bunny - MP3 Audio with thumb</title>
            <creator>the Peach Open Movie Project</creator>
            <info>http://www.bigbuckbunny.org/</info>
            <annotation>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation. Like the foundation's previous film Elephants Dream, the film is made using free and open source software.</annotation>
            <location>http://www.longtailvideo.com/jw/upload/bunny.mp3</location>
            <image>http://www.longtailvideo.com/jw/upload/bunny.jpg</image>
        </track>

        <track>
            <title>Big Buck Bunny - PNG Image with start</title>
            <creator>the Peach Open Movie Project</creator>
            <info>http://www.bigbuckbunny.org/</info>
            <annotation>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation. Like the foundation's previous film Elephants Dream, the film is made using free and open source software.</annotation>
            <location>http://www.longtailvideo.com/jw/upload/bunny.png</location>
            <meta rel="duration">20</meta>
            <meta rel="start">10</meta>
        </track>

        <track>
            <title>Big Buck Bunny - PNG Image with start</title>
            <creator>the Peach Open Movie Project</creator>
            <info>http://www.bigbuckbunny.org/</info>
            <annotation>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation. Like the foundation's previous film Elephants Dream, the film is made using free and open source software.</annotation>
            <location>http://www.longtailvideo.com/jw/upload/bunny.png</location>
            <meta rel="duration">20</meta>
            <meta rel="start">10</meta>
        </track>
    </tracklist>
</playlist>
以下是示例播放列表的外观:

&showstop=true&showdownload=false&height=" & AxShockWaveFlash.Height.ToString & "&width=" & AxShockWaveFlash.Width.ToString & "&showplay=true&autoscroll=false&autostart=true&overstretch=true&showicons=1&searchbar=false&controlbar=0&repeat=list"
<playlist version="1" xmlns="http://xspf.org/ns/0/">
    <title>Example XSPF playlist for the JW Player</title>
    <info>http://www.longtailvideo.com</info>
    <tracklist>

        <track>
            <title>Big Buck Bunny - FLV Video</title>
            <creator>the Peach Open Movie Project</creator>
            <info>http://www.bigbuckbunny.org/</info>
            <annotation>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation. Like the foundation's previous film Elephants Dream, the film is made using free and open source software.</annotation>
            <location>http://www.longtailvideo.com/jw/upload/bunny.flv</location>
        </track>

        <track>
            <title>Big Buck Bunny - MP3 Audio with thumb</title>
            <creator>the Peach Open Movie Project</creator>
            <info>http://www.bigbuckbunny.org/</info>
            <annotation>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation. Like the foundation's previous film Elephants Dream, the film is made using free and open source software.</annotation>
            <location>http://www.longtailvideo.com/jw/upload/bunny.mp3</location>
            <image>http://www.longtailvideo.com/jw/upload/bunny.jpg</image>
        </track>

        <track>
            <title>Big Buck Bunny - PNG Image with start</title>
            <creator>the Peach Open Movie Project</creator>
            <info>http://www.bigbuckbunny.org/</info>
            <annotation>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation. Like the foundation's previous film Elephants Dream, the film is made using free and open source software.</annotation>
            <location>http://www.longtailvideo.com/jw/upload/bunny.png</location>
            <meta rel="duration">20</meta>
            <meta rel="start">10</meta>
        </track>

        <track>
            <title>Big Buck Bunny - PNG Image with start</title>
            <creator>the Peach Open Movie Project</creator>
            <info>http://www.bigbuckbunny.org/</info>
            <annotation>Big Buck Bunny is a short animated film by the Blender Institute, part of the Blender Foundation. Like the foundation's previous film Elephants Dream, the film is made using free and open source software.</annotation>
            <location>http://www.longtailvideo.com/jw/upload/bunny.png</location>
            <meta rel="duration">20</meta>
            <meta rel="start">10</meta>
        </track>
    </tracklist>
</playlist>

JW播放器的XSPF播放列表示例
http://www.longtailvideo.com
大公兔-FLV视频
桃子开放电影项目
http://www.bigbuckbunny.org/
大Buck兔子是Brand研究所的一部短片,是混合器基金会的一部分。像基金会以前的电影《大象梦》一样,这部电影是用免费的开源软件制作的。
http://www.longtailvideo.com/jw/upload/bunny.flv
大巴克兔-带拇指的MP3音频
桃子开放电影项目
http://www.bigbuckbunny.org/
大Buck兔子是Brand研究所的一部短片,是混合器基金会的一部分。像基金会以前的电影《大象梦》一样,这部电影是用免费的开源软件制作的。
http://www.longtailvideo.com/jw/upload/bunny.mp3
http://www.longtailvideo.com/jw/upload/bunny.jpg
大公兔-带开始的PNG图像
桃子开放电影项目
http://www.bigbuckbunny.org/
大Buck兔子是Brand研究所的一部短片,是混合器基金会的一部分。像基金会以前的电影《大象梦》一样,这部电影是用免费的开源软件制作的。
http://www.longtailvideo.com/jw/upload/bunny.png
20
10
大公兔-带开始的PNG图像
桃子开放电影项目
http://www.bigbuckbunny.org/
大Buck兔子是Brand研究所的一部短片,是混合器基金会的一部分。像基金会以前的电影《大象梦》一样,这部电影是用免费的开源软件制作的。
http://www.longtailvideo.com/jw/upload/bunny.png
20
10

希望这有帮助

为什么不使用播放列表?你在这里使用的是什么版本的JW播放器?如果您使用的是V5或V6,则可以使用播放列表,并让一个项目一个项目重复。v3.16如何在vb.net中使用播放列表?如果你能告诉我那太棒了。到目前为止,我的代码在上面:-)现在我的问题是,我无法检测到一个项目何时完成,以便开始播放下一个3.16已经很旧了。我不得不去archive.org;)autostart(true,false):在播放器中设置为true,以便在页面加载时自动开始播放,或者在旋转器中设置为false,以防止自动旋转。重复(true、false、list):将其设置为true可自动重复播放文件或播放列表。将此设置为“列表”可将播放列表中的所有项目播放一次。播放列表-尽管您的帮助非常好。你能帮我编码吗?这就是为什么我首先寻求帮助的原因。我将把它作为下面的答案。上面回答,基本上不适合评论,而不是允许连续播放多个剪辑,当我尝试了你建议不播放的内容时。这是我的项目文件的链接:嗯,我看了一下文件。但是,我没有VisualStudio。我知道在网页中嵌入播放器是可行的(因为这是播放器本身的预期用途),但我以前从未使用过VS。它太烦人了:-)感觉我离得太近了只是做了一些研究,认为播放列表不起作用的原因是因为我使用的是v3.16。播放列表支持仅在v5中提供