mirror of
https://github.com/Monibuca/plugin-rtmp.git
synced 2025-10-05 23:47:04 +08:00
替换v2版本.
This commit is contained in:
4
amf.go
4
amf.go
@@ -8,8 +8,8 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"github.com/Monibuca/engine/pool"
|
"github.com/Monibuca/engine/v2/pool"
|
||||||
"github.com/Monibuca/engine/util"
|
"github.com/Monibuca/engine/v2/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Action Message Format -- AMF 0
|
// Action Message Format -- AMF 0
|
||||||
|
4
chunk.go
4
chunk.go
@@ -3,8 +3,8 @@ package rtmp
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/Monibuca/engine/pool"
|
"github.com/Monibuca/engine/v2/pool"
|
||||||
"github.com/Monibuca/engine/util"
|
"github.com/Monibuca/engine/v2/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RTMP协议中基本的数据单元称为消息(Message).
|
// RTMP协议中基本的数据单元称为消息(Message).
|
||||||
|
2
go.mod
2
go.mod
@@ -3,6 +3,6 @@ module github.com/Monibuca/plugin-rtmp
|
|||||||
go 1.13
|
go 1.13
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/Monibuca/engine v2.0.0-alpha
|
github.com/Monibuca/engine/v2 v2.0.0-alpha1
|
||||||
github.com/logrusorgru/aurora v0.0.0-20200102142835-e9ef32dff381
|
github.com/logrusorgru/aurora v0.0.0-20200102142835-e9ef32dff381
|
||||||
)
|
)
|
||||||
|
2
go.sum
2
go.sum
@@ -1,7 +1,5 @@
|
|||||||
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
|
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
|
||||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||||
github.com/Monibuca/engine v1.2.0 h1:PeD0HSNvsbC9Ya0BUWM9BoF3Y0X/EgzmmlUvbt5tVOA=
|
|
||||||
github.com/Monibuca/engine v1.2.0/go.mod h1:WbDkXENLjcPjyjCR1Mix1GA+uAlwORkv/+8aMVrDX2g=
|
|
||||||
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d h1:G0m3OIz70MZUWq3EgK3CesDbo8upS2Vm9/P3FtgI+Jk=
|
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d h1:G0m3OIz70MZUWq3EgK3CesDbo8upS2Vm9/P3FtgI+Jk=
|
||||||
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg=
|
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg=
|
||||||
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
|
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
|
||||||
|
2
main.go
2
main.go
@@ -3,7 +3,7 @@ package rtmp
|
|||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
. "github.com/Monibuca/engine"
|
. "github.com/Monibuca/engine/v2"
|
||||||
. "github.com/logrusorgru/aurora"
|
. "github.com/logrusorgru/aurora"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
2
msg.go
2
msg.go
@@ -5,7 +5,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/Monibuca/engine/util"
|
"github.com/Monibuca/engine/v2/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@@ -6,10 +6,10 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/Monibuca/engine"
|
"github.com/Monibuca/engine/v2"
|
||||||
"github.com/Monibuca/engine/avformat"
|
"github.com/Monibuca/engine/v2/avformat"
|
||||||
"github.com/Monibuca/engine/pool"
|
"github.com/Monibuca/engine/v2/pool"
|
||||||
"github.com/Monibuca/engine/util"
|
"github.com/Monibuca/engine/v2/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@@ -8,8 +8,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
. "github.com/Monibuca/engine"
|
. "github.com/Monibuca/engine/v2"
|
||||||
"github.com/Monibuca/engine/avformat"
|
"github.com/Monibuca/engine/v2/avformat"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RTMP struct {
|
type RTMP struct {
|
||||||
|
Reference in New Issue
Block a user