mirror of
https://github.com/lkmio/lkm.git
synced 2025-09-27 03:26:01 +08:00
项目更名为lkm
This commit is contained in:
12
api.go
12
api.go
@@ -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"
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package flv
|
||||
|
||||
import (
|
||||
"github.com/yangjiechina/live-server/stream"
|
||||
"github.com/yangjiechina/lkm/stream"
|
||||
"net"
|
||||
)
|
||||
|
||||
|
@@ -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 (
|
||||
|
@@ -2,7 +2,7 @@ package gb28181
|
||||
|
||||
import (
|
||||
"github.com/pion/rtp"
|
||||
"github.com/yangjiechina/live-server/log"
|
||||
"github.com/yangjiechina/lkm/log"
|
||||
"net"
|
||||
)
|
||||
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -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 {
|
||||
|
@@ -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 {
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -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
2
go.mod
@@ -1,4 +1,4 @@
|
||||
module github.com/yangjiechina/live-server
|
||||
module github.com/yangjiechina/lkm
|
||||
|
||||
require github.com/yangjiechina/avformat v0.0.0
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package hls
|
||||
|
||||
import (
|
||||
"github.com/yangjiechina/live-server/stream"
|
||||
"github.com/yangjiechina/lkm/stream"
|
||||
)
|
||||
|
||||
type tsSink struct {
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -2,7 +2,7 @@ package hls
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/yangjiechina/live-server/stream"
|
||||
"github.com/yangjiechina/lkm/stream"
|
||||
"math"
|
||||
"strconv"
|
||||
)
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -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
18
main.go
@@ -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_ {
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -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 {
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package rtmp
|
||||
|
||||
import (
|
||||
"github.com/yangjiechina/live-server/log"
|
||||
"github.com/yangjiechina/lkm/log"
|
||||
"net"
|
||||
|
||||
"github.com/yangjiechina/avformat/transport"
|
||||
|
@@ -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"
|
||||
)
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -2,7 +2,7 @@ package rtmp
|
||||
|
||||
import (
|
||||
"github.com/yangjiechina/avformat/utils"
|
||||
"github.com/yangjiechina/live-server/stream"
|
||||
"github.com/yangjiechina/lkm/stream"
|
||||
"net"
|
||||
)
|
||||
|
||||
|
@@ -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 {
|
||||
|
@@ -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"
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -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"
|
||||
)
|
||||
|
@@ -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"
|
||||
)
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -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 推流类型
|
||||
|
Reference in New Issue
Block a user