feat: enhance WebRTC pipeline with improved logging and error handling
This commit is contained in:
parent
7147f3f13b
commit
f103ddb7a8
5 changed files with 88 additions and 70 deletions
|
@ -2,23 +2,8 @@ package gstreamer
|
|||
|
||||
import (
|
||||
"github.com/go-gst/go-gst/gst"
|
||||
"github.com/goccy/go-graphviz/cgraph"
|
||||
)
|
||||
|
||||
func gstreamerBinToDot(bin *gst.Bin) string {
|
||||
return bin.DebugBinToDotData(gst.DebugGraphShowAll)
|
||||
}
|
||||
|
||||
func setFontSize(graph *cgraph.Graph, fontSize float64) {
|
||||
graph.SetFontSize(20)
|
||||
graph.Set("arrowSize", "3")
|
||||
for node, err := graph.FirstNode(); err == nil && node != nil; node, err = graph.NextNode(node) {
|
||||
node.SetFontSize(fontSize)
|
||||
for edge, err := graph.FirstEdge(node); err == nil && edge != nil; edge, err = graph.NextEdge(edge, node) {
|
||||
edge.SetFontSize(fontSize)
|
||||
}
|
||||
}
|
||||
//for subGraph, err := graph.FirstSubGraph(); err == nil && subGraph != nil; subGraph, err = graph.NextSubGraph() {
|
||||
// setFontSize(subGraph, fontSize)
|
||||
//}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue