项目更名为lkm

This commit is contained in:
yangjiechina
2024-06-05 20:17:54 +08:00
parent e3a2af4446
commit 39c787fbee
30 changed files with 51 additions and 51 deletions

12
api.go
View File

@@ -6,12 +6,12 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/flv" "github.com/yangjiechina/lkm/flv"
"github.com/yangjiechina/live-server/gb28181" "github.com/yangjiechina/lkm/gb28181"
"github.com/yangjiechina/live-server/hls" "github.com/yangjiechina/lkm/hls"
"github.com/yangjiechina/live-server/log" "github.com/yangjiechina/lkm/log"
"github.com/yangjiechina/live-server/rtc" "github.com/yangjiechina/lkm/rtc"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
"io" "io"
"net" "net"
"net/http" "net/http"

View File

@@ -1,7 +1,7 @@
package flv package flv
import ( import (
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
"net" "net"
) )

View File

@@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"github.com/yangjiechina/avformat/libflv" "github.com/yangjiechina/avformat/libflv"
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
) )
const ( const (

View File

@@ -2,7 +2,7 @@ package gb28181
import ( import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/yangjiechina/live-server/log" "github.com/yangjiechina/lkm/log"
"net" "net"
) )

View File

@@ -9,8 +9,8 @@ import (
"github.com/yangjiechina/avformat/libmpeg" "github.com/yangjiechina/avformat/libmpeg"
"github.com/yangjiechina/avformat/transport" "github.com/yangjiechina/avformat/transport"
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/log" "github.com/yangjiechina/lkm/log"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
"net" "net"
) )

View File

@@ -2,7 +2,7 @@ package gb28181
import ( import (
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
) )
type PassiveSource struct { type PassiveSource struct {

View File

@@ -3,8 +3,8 @@ package gb28181
import ( import (
"fmt" "fmt"
"github.com/pion/rtp" "github.com/pion/rtp"
"github.com/yangjiechina/live-server/jitterbuffer" "github.com/yangjiechina/lkm/jitterbuffer"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
) )
type UDPSource struct { type UDPSource struct {

View File

@@ -3,7 +3,7 @@ package gb28181
import ( import (
"fmt" "fmt"
"github.com/yangjiechina/avformat/transport" "github.com/yangjiechina/avformat/transport"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
"net" "net"
) )

View File

@@ -2,7 +2,7 @@ package gb28181
import ( import (
"github.com/yangjiechina/avformat/transport" "github.com/yangjiechina/avformat/transport"
"github.com/yangjiechina/live-server/log" "github.com/yangjiechina/lkm/log"
"net" "net"
) )

2
go.mod
View File

@@ -1,4 +1,4 @@
module github.com/yangjiechina/live-server module github.com/yangjiechina/lkm
require github.com/yangjiechina/avformat v0.0.0 require github.com/yangjiechina/avformat v0.0.0

View File

@@ -1,7 +1,7 @@
package hls package hls
import ( import (
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
) )
type tsSink struct { type tsSink struct {

View File

@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"github.com/yangjiechina/avformat/libmpeg" "github.com/yangjiechina/avformat/libmpeg"
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
"os" "os"
) )

View File

@@ -2,7 +2,7 @@ package hls
import ( import (
"bytes" "bytes"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
"math" "math"
"strconv" "strconv"
) )

View File

@@ -3,8 +3,8 @@ package jt1078
import ( import (
"github.com/yangjiechina/avformat/transport" "github.com/yangjiechina/avformat/transport"
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/log" "github.com/yangjiechina/lkm/log"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
"net" "net"
) )

View File

@@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"github.com/yangjiechina/avformat/transport" "github.com/yangjiechina/avformat/transport"
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/log" "github.com/yangjiechina/lkm/log"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
) )
const ( const (

18
main.go
View File

@@ -2,21 +2,21 @@ package main
import ( import (
"fmt" "fmt"
"github.com/yangjiechina/live-server/flv" "github.com/yangjiechina/lkm/flv"
"github.com/yangjiechina/live-server/gb28181" "github.com/yangjiechina/lkm/gb28181"
"github.com/yangjiechina/live-server/hls" "github.com/yangjiechina/lkm/hls"
"github.com/yangjiechina/live-server/jt1078" "github.com/yangjiechina/lkm/jt1078"
"github.com/yangjiechina/live-server/log" "github.com/yangjiechina/lkm/log"
"github.com/yangjiechina/live-server/rtc" "github.com/yangjiechina/lkm/rtc"
"github.com/yangjiechina/live-server/rtsp" "github.com/yangjiechina/lkm/rtsp"
"go.uber.org/zap/zapcore" "go.uber.org/zap/zapcore"
"net" "net"
"net/http" "net/http"
_ "net/http/pprof" _ "net/http/pprof"
"github.com/yangjiechina/live-server/rtmp" "github.com/yangjiechina/lkm/rtmp"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
) )
func NewDefaultAppConfig() stream.AppConfig_ { func NewDefaultAppConfig() stream.AppConfig_ {

View File

@@ -3,7 +3,7 @@ package rtc
import ( import (
"github.com/pion/webrtc/v3" "github.com/pion/webrtc/v3"
"github.com/pion/webrtc/v3/pkg/media" "github.com/pion/webrtc/v3/pkg/media"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
"time" "time"
) )

View File

@@ -3,7 +3,7 @@ package rtc
import ( import (
"github.com/pion/webrtc/v3" "github.com/pion/webrtc/v3"
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
) )
type transStream struct { type transStream struct {

View File

@@ -5,7 +5,7 @@ import (
"github.com/yangjiechina/avformat/librtmp" "github.com/yangjiechina/avformat/librtmp"
"github.com/yangjiechina/avformat/transport" "github.com/yangjiechina/avformat/transport"
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
"net" "net"
) )

View File

@@ -1,7 +1,7 @@
package rtmp package rtmp
import ( import (
"github.com/yangjiechina/live-server/log" "github.com/yangjiechina/lkm/log"
"net" "net"
"github.com/yangjiechina/avformat/transport" "github.com/yangjiechina/avformat/transport"

View File

@@ -3,7 +3,7 @@ package rtmp
import ( import (
"github.com/yangjiechina/avformat/librtmp" "github.com/yangjiechina/avformat/librtmp"
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
"net" "net"
"testing" "testing"
) )

View File

@@ -3,8 +3,8 @@ package rtmp
import ( import (
"github.com/yangjiechina/avformat/librtmp" "github.com/yangjiechina/avformat/librtmp"
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/log" "github.com/yangjiechina/lkm/log"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
"net" "net"
) )

View File

@@ -2,7 +2,7 @@ package rtmp
import ( import (
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
"net" "net"
) )

View File

@@ -4,7 +4,7 @@ import (
"github.com/yangjiechina/avformat/libflv" "github.com/yangjiechina/avformat/libflv"
"github.com/yangjiechina/avformat/librtmp" "github.com/yangjiechina/avformat/librtmp"
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
) )
type TransStream struct { type TransStream struct {

View File

@@ -3,8 +3,8 @@ package rtsp
import ( import (
"fmt" "fmt"
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/log" "github.com/yangjiechina/lkm/log"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
"net/http" "net/http"
"net/textproto" "net/textproto"
"net/url" "net/url"

View File

@@ -3,7 +3,7 @@ package rtsp
import ( import (
"github.com/yangjiechina/avformat/transport" "github.com/yangjiechina/avformat/transport"
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/log" "github.com/yangjiechina/lkm/log"
"net" "net"
) )

View File

@@ -6,8 +6,8 @@ import (
"github.com/yangjiechina/avformat/librtp" "github.com/yangjiechina/avformat/librtp"
"github.com/yangjiechina/avformat/transport" "github.com/yangjiechina/avformat/transport"
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/log" "github.com/yangjiechina/lkm/log"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
"net" "net"
"time" "time"
) )

View File

@@ -8,7 +8,7 @@ import (
"github.com/yangjiechina/avformat/librtp" "github.com/yangjiechina/avformat/librtp"
"github.com/yangjiechina/avformat/librtsp/sdp" "github.com/yangjiechina/avformat/librtsp/sdp"
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/stream" "github.com/yangjiechina/lkm/stream"
"net" "net"
"strconv" "strconv"
) )

View File

@@ -2,7 +2,7 @@ package stream
import ( import (
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/log" "github.com/yangjiechina/lkm/log"
"net/http" "net/http"
) )

View File

@@ -2,14 +2,14 @@ package stream
import ( import (
"fmt" "fmt"
"github.com/yangjiechina/live-server/log" "github.com/yangjiechina/lkm/log"
"net" "net"
"net/http" "net/http"
"time" "time"
"github.com/yangjiechina/avformat/stream" "github.com/yangjiechina/avformat/stream"
"github.com/yangjiechina/avformat/utils" "github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/transcode" "github.com/yangjiechina/lkm/transcode"
) )
// SourceType 推流类型 // SourceType 推流类型