Skip to content

A library to allow playing media files (remote and local) from your gocode

License

Notifications You must be signed in to change notification settings

bisohns/mplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mplayer

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

About

A library to allow playing media files (remote and local) from your gocode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages