|
I think this is a great simple program.
Getting streaming working is pretty easy. I have a simple , similar program working on an EPG based GUI so I can see whats on and click on it to stream.
Some VB6 Code
'this will zap to a service. You need to get your service from the relevant files.
Function zaptoservice(strservice As String)
temp = frmdisplay.Inet1.OpenURL("http://" & dreamboxip & "/?mode=zap&path=" & strservice)
End Function
This little snippet will stream the current channel. It loads all the streaming parameters into an array and then provides them as parameters to the VLC client. I only have it running on the Hydra image. It also writes the parameters to a textfile for debug.
Sub streamcurrentchannel()
On Error GoTo errhan
thefile = FreeFile
Open App.Path & "\streaminfo.txt" For Output As thefile
temp = frmdisplay.Inet1.OpenURL("http://" & dreamboxip & "/cgi-bin/streaminfo")
Dim servarray(30)
servarrayct = 0
While InStr(temp, "</td>") > 0
temp1 = Left(temp, InStr(temp, "</td>") - 1)
temp = Mid(temp, InStr(temp, "</td>") + 5, 2000)
temp1 = Replace(temp1, "<td>", "")
temp1 = Replace(temp1, "<tr>", "")
temp1 = Replace(temp1, "</tr>", "")
servarray(servarrayct) = temp1
servarrayct = servarrayct + 1
'MsgBox temp1
Wend
For i = 1 To 23
Print #thefile, Str(i) & "-" & servarray(i)
Next
Close #thefile
Dim hnd As Integer
hnd = Shell("C:\Program Files\VideoLAN\VLC\vlc.exe http://" & dreamboxip & ":31339/0," & Left(servarray(21), 4) & "," & Left(servarray(7), 4) & "," & Left(servarray(9), 4) & "," & Left(servarray(11), 4), vbNormalFocus)
Exit Sub
errhan:
MsgBox "An error has occured . Report Error " & Error$
End Sub
If you want more code to get the services out of the dreambox files just drop me a PM.
Hope someone makes good use of this info it is very widely available.
|