Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/bisoncorps/mplayer

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/bisoncorps/mplayer

  • v0.0.0-20200330192254-e2f647162350
  • Source
  • Go
  • Socket score

Version published
Created
Source

mplayer

Documentation Go Report Card License: MIT Build Status
A library to allow playing media files (remote and local) from your gocode

Install

go get github.com/bisoncorps/mplayer

What is mplayer

mplayer is just a means to allow for playing media files from golang. It allows for streaming online media files and local media files as well. It hopes to incorporate functionalities that support using any known media player. Currently only browser is supported but other players are currently being considered. It supports

  • In Browser Playing, MPV and VLC
  • playing local files
  • streaming online resource

Usage

package main

import  (
  "log"
  "github.com/bisoncorps/mplayer"
)

func main() {
		p, err := mplayer.GetPlayer("browser")
		if err != nil {
			log.Fatal(err)
		}
    // urls can be remote too
		p.SetURL("/home/manasseh/Videos/Jumanji.mp4")
		p.SetTitle("Jumanji MP4")
		p.Play()
}

TODO

  • Add other players (mpv, vlc)
  • Add subtitle options

FAQs

Package last updated on 30 Mar 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc