Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

m7s.live/plugin/Snap/v4

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

m7s.live/plugin/Snap/v4

Go Modules
Version
v4.0.8
Version published
Created
Source

截图插件

可通过http请求获取到指定流的I帧截图(jpg格式)。

插件地址

https://github.com/Monibuca/plugin-snap

插件引入

import (
    _ "m7s.live/plugin/snap/v4"
)

默认配置

snap:
    ffmpeg: "ffmpeg"

如果ffmpeg无法全局访问,则可修改ffmpeg路径为本地的绝对路径

API

/snap/[streamPath]

获取一帧截图,返回最新的I帧的jpg图片。 例如m7s(localhost)中有流live/test, 可以通过http://localhost:8080/snap/live/test 获取到该流的最新截图

FAQs

Package last updated on 13 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts