... this is the code for the Player
This is how I turned off the Player controls (I need a double click for full screen) but I lost the volume control
Is there any way to somehow control the volume with the TrackBar ?
VB.NET:
Public Sub htmlPlayer()
Dim html As String = "<html><head>"
html += "<meta content='IE=Edge' http-equiv='X-UA-Compatible'/>"
html += "<div style = 'position:absolute; left: 0;right: 0;top: 0;bottom: 0;background: black;'>"
html += "<link href='https://unpkg.com/video.js/dist/video-js.css' rel='stylesheet'>"
html += "<script src='https://unpkg.com/video.js/dist/video.js'></script>"
html += "<script src='https://unpkg.com/videojs-contrib-hls/dist/videojs-contrib-hls.js'></script>"
html += "<video id='my_video' class='video-js vjs-fluid vjs-default-skin' data-setup='{}' autoplay>"
html += "<source src='" & ComboBox4.Text & "' type='application/x-mpegURL'>"
WebBrowser1.DocumentText = html
End Sub
This is how I turned off the Player controls (I need a double click for full screen) but I lost the volume control
VB.NET:
CType(WebBrowser1, System.Windows.Forms.Control).Enabled = False
Is there any way to somehow control the volume with the TrackBar ?
VB.NET:
Private Sub TrackBar3_Scroll(sender As Object, e As EventArgs) Handles TrackBar3.Scroll
'Dim htmlVolume = WebBrowser1.Document.GetElementById("my_video")
'htmlVolume.volume = TrackBar3.Value / 100
End Sub