项目更名为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/websocket"
"github.com/yangjiechina/avformat/utils"
"github.com/yangjiechina/live-server/flv"
"github.com/yangjiechina/live-server/gb28181"
"github.com/yangjiechina/live-server/hls"
"github.com/yangjiechina/live-server/log"
"github.com/yangjiechina/live-server/rtc"
"github.com/yangjiechina/live-server/stream"
"github.com/yangjiechina/lkm/flv"
"github.com/yangjiechina/lkm/gb28181"
"github.com/yangjiechina/lkm/hls"
"github.com/yangjiechina/lkm/log"
"github.com/yangjiechina/lkm/rtc"
"github.com/yangjiechina/lkm/stream"
"io"
"net"
"net/http"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -2,7 +2,7 @@ package gb28181
import (
"github.com/yangjiechina/avformat/transport"
"github.com/yangjiechina/live-server/log"
"github.com/yangjiechina/lkm/log"
"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

View File

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

View File

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

View File

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

View File

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

View File

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

18
main.go
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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