mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-05 16:46:58 +08:00
修改包域名配置
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@@ -5,8 +5,8 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
"v4.m7s.live/engine/util/bits/pio"
|
"m7s.live/engine/v4/util/bits/pio"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Start Code + NAL Unit -> NALU Header + NALU Body
|
// Start Code + NAL Unit -> NALU Header + NALU Body
|
||||||
|
@@ -5,7 +5,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/q191201771/naza/pkg/nazabits"
|
"github.com/q191201771/naza/pkg/nazabits"
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type H265NALUType byte
|
type H265NALUType byte
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
package codec
|
package codec
|
||||||
|
|
||||||
import "v4.m7s.live/engine/util"
|
import "m7s.live/engine/v4/util"
|
||||||
|
|
||||||
type MP4 interface {
|
type MP4 interface {
|
||||||
}
|
}
|
||||||
|
@@ -6,7 +6,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
//"sync"
|
//"sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -6,7 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ios13818-1-CN.pdf 43(57)/166
|
// ios13818-1-CN.pdf 43(57)/166
|
||||||
|
@@ -7,8 +7,8 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
|
||||||
"v4.m7s.live/engine/codec"
|
"m7s.live/engine/v4/codec"
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ios13818-1-CN.pdf 45/166
|
// ios13818-1-CN.pdf 45/166
|
||||||
|
@@ -6,7 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ios13818-1-CN.pdf 46(60)-153(167)/page
|
// ios13818-1-CN.pdf 46(60)-153(167)/page
|
||||||
|
@@ -6,7 +6,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@@ -5,7 +5,7 @@ import (
|
|||||||
|
|
||||||
"github.com/cnotch/ipchub/av/codec/hevc"
|
"github.com/cnotch/ipchub/av/codec/hevc"
|
||||||
|
|
||||||
"v4.m7s.live/engine/util/bits"
|
"m7s.live/engine/v4/util/bits"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SPSInfo struct {
|
type SPSInfo struct {
|
||||||
|
@@ -5,8 +5,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/pion/rtp"
|
"github.com/pion/rtp"
|
||||||
"v4.m7s.live/engine/codec"
|
"m7s.live/engine/v4/codec"
|
||||||
"v4.m7s.live/engine/log"
|
"m7s.live/engine/v4/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type NALUSlice net.Buffers
|
type NALUSlice net.Buffers
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
package common
|
package common
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RingBuffer[T any] struct {
|
type RingBuffer[T any] struct {
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
package common
|
package common
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"v4.m7s.live/engine/log"
|
"m7s.live/engine/v4/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type IStream interface {
|
type IStream interface {
|
||||||
|
@@ -8,7 +8,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"v4.m7s.live/engine/log"
|
"m7s.live/engine/v4/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Config map[string]any
|
type Config map[string]any
|
||||||
|
@@ -6,7 +6,7 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"v4.m7s.live/engine/log"
|
"m7s.live/engine/v4/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TCP struct {
|
type TCP struct {
|
||||||
|
@@ -5,7 +5,7 @@ package engine
|
|||||||
// "time"
|
// "time"
|
||||||
// "unsafe"
|
// "unsafe"
|
||||||
|
|
||||||
// "v4.m7s.live/engine/util"
|
// "m7s.live/engine/v4/util"
|
||||||
// )
|
// )
|
||||||
|
|
||||||
// type DataTrack struct {
|
// type DataTrack struct {
|
||||||
|
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
|||||||
module v4.m7s.live/engine
|
module m7s.live/engine/v4
|
||||||
|
|
||||||
go 1.18
|
go 1.18
|
||||||
|
|
||||||
|
4
http.go
4
http.go
@@ -6,8 +6,8 @@ import (
|
|||||||
|
|
||||||
. "github.com/logrusorgru/aurora"
|
. "github.com/logrusorgru/aurora"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"v4.m7s.live/engine/config"
|
"m7s.live/engine/v4/config"
|
||||||
"v4.m7s.live/engine/log"
|
"m7s.live/engine/v4/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type GlobalConfig struct {
|
type GlobalConfig struct {
|
||||||
|
4
io.go
4
io.go
@@ -10,8 +10,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"v4.m7s.live/engine/config"
|
"m7s.live/engine/v4/config"
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type IOConfig interface {
|
type IOConfig interface {
|
||||||
|
8
main.go
8
main.go
@@ -1,4 +1,4 @@
|
|||||||
package engine // import "v4.m7s.live/engine"
|
package engine // import "m7s.live/engine/v4"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
@@ -16,9 +16,9 @@ import (
|
|||||||
. "github.com/logrusorgru/aurora"
|
. "github.com/logrusorgru/aurora"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"gopkg.in/yaml.v3"
|
"gopkg.in/yaml.v3"
|
||||||
"v4.m7s.live/engine/config"
|
"m7s.live/engine/v4/config"
|
||||||
"v4.m7s.live/engine/log"
|
"m7s.live/engine/v4/log"
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@@ -12,9 +12,9 @@ import (
|
|||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"gopkg.in/yaml.v3"
|
"gopkg.in/yaml.v3"
|
||||||
"v4.m7s.live/engine/config"
|
"m7s.live/engine/v4/config"
|
||||||
"v4.m7s.live/engine/log"
|
"m7s.live/engine/v4/log"
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// InstallPlugin 安装插件,传入插件配置生成插件信息对象
|
// InstallPlugin 安装插件,传入插件配置生成插件信息对象
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
package engine
|
package engine
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"v4.m7s.live/engine/common"
|
"m7s.live/engine/v4/common"
|
||||||
"v4.m7s.live/engine/config"
|
"m7s.live/engine/v4/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
type IPublisher interface {
|
type IPublisher interface {
|
||||||
|
@@ -7,10 +7,10 @@ import (
|
|||||||
|
|
||||||
. "github.com/logrusorgru/aurora"
|
. "github.com/logrusorgru/aurora"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
. "v4.m7s.live/engine/common"
|
. "m7s.live/engine/v4/common"
|
||||||
"v4.m7s.live/engine/log"
|
"m7s.live/engine/v4/log"
|
||||||
"v4.m7s.live/engine/track"
|
"m7s.live/engine/v4/track"
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type StreamState byte
|
type StreamState byte
|
||||||
|
@@ -6,9 +6,9 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
. "v4.m7s.live/engine/common"
|
. "m7s.live/engine/v4/common"
|
||||||
"v4.m7s.live/engine/config"
|
"m7s.live/engine/v4/config"
|
||||||
"v4.m7s.live/engine/track"
|
"m7s.live/engine/v4/track"
|
||||||
)
|
)
|
||||||
|
|
||||||
type HaveFLV interface {
|
type HaveFLV interface {
|
||||||
|
@@ -4,10 +4,10 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"v4.m7s.live/engine/codec"
|
"m7s.live/engine/v4/codec"
|
||||||
. "v4.m7s.live/engine/common"
|
. "m7s.live/engine/v4/common"
|
||||||
"v4.m7s.live/engine/config"
|
"m7s.live/engine/v4/config"
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewAAC(stream IStream) (aac *AAC) {
|
func NewAAC(stream IStream) (aac *AAC) {
|
||||||
|
@@ -4,9 +4,9 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"v4.m7s.live/engine/codec"
|
"m7s.live/engine/v4/codec"
|
||||||
. "v4.m7s.live/engine/common"
|
. "m7s.live/engine/v4/common"
|
||||||
"v4.m7s.live/engine/config"
|
"m7s.live/engine/v4/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var adcflv1 = []byte{codec.FLV_TAG_TYPE_AUDIO, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0}
|
var adcflv1 = []byte{codec.FLV_TAG_TYPE_AUDIO, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0}
|
||||||
|
@@ -5,9 +5,9 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/pion/rtp"
|
"github.com/pion/rtp"
|
||||||
. "v4.m7s.live/engine/common"
|
. "m7s.live/engine/v4/common"
|
||||||
"v4.m7s.live/engine/config"
|
"m7s.live/engine/v4/config"
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Base 基础Track类
|
// Base 基础Track类
|
||||||
|
@@ -3,9 +3,9 @@ package track
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"v4.m7s.live/engine/codec"
|
"m7s.live/engine/v4/codec"
|
||||||
. "v4.m7s.live/engine/common"
|
. "m7s.live/engine/v4/common"
|
||||||
"v4.m7s.live/engine/config"
|
"m7s.live/engine/v4/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewG711(stream IStream, alaw bool) (g711 *G711) {
|
func NewG711(stream IStream, alaw bool) (g711 *G711) {
|
||||||
|
@@ -4,10 +4,10 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"v4.m7s.live/engine/codec"
|
"m7s.live/engine/v4/codec"
|
||||||
. "v4.m7s.live/engine/common"
|
. "m7s.live/engine/v4/common"
|
||||||
"v4.m7s.live/engine/config"
|
"m7s.live/engine/v4/config"
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type H264 struct {
|
type H264 struct {
|
||||||
|
@@ -4,10 +4,10 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"v4.m7s.live/engine/codec"
|
"m7s.live/engine/v4/codec"
|
||||||
. "v4.m7s.live/engine/common"
|
. "m7s.live/engine/v4/common"
|
||||||
"v4.m7s.live/engine/config"
|
"m7s.live/engine/v4/config"
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type H265 struct {
|
type H265 struct {
|
||||||
|
@@ -6,10 +6,10 @@ import (
|
|||||||
|
|
||||||
. "github.com/logrusorgru/aurora"
|
. "github.com/logrusorgru/aurora"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"v4.m7s.live/engine/codec"
|
"m7s.live/engine/v4/codec"
|
||||||
. "v4.m7s.live/engine/common"
|
. "m7s.live/engine/v4/common"
|
||||||
"v4.m7s.live/engine/config"
|
"m7s.live/engine/v4/config"
|
||||||
"v4.m7s.live/engine/util"
|
"m7s.live/engine/v4/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Video struct {
|
type Video struct {
|
||||||
|
@@ -7,7 +7,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"v4.m7s.live/engine/log"
|
"m7s.live/engine/v4/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TCPListener interface {
|
type TCPListener interface {
|
||||||
|
Reference in New Issue
Block a user