{"id":20225995,"url":"https://github.com/cedarctic/go-vlc-ctrl","last_synced_at":"2025-04-10T17:05:55.011Z","repository":{"id":40305908,"uuid":"247187272","full_name":"CedArctic/go-vlc-ctrl","owner":"CedArctic","description":"Go module to control the VLC Media Player","archived":false,"fork":false,"pushed_at":"2022-05-16T06:19:46.000Z","size":154,"stargazers_count":15,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T14:46:21.934Z","etag":null,"topics":["api","go","golang","hacktoberfest","vlc","vlc-media-player"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CedArctic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-14T00:50:10.000Z","updated_at":"2024-09-21T12:44:07.000Z","dependencies_parsed_at":"2022-08-09T16:52:31.869Z","dependency_job_id":null,"html_url":"https://github.com/CedArctic/go-vlc-ctrl","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CedArctic%2Fgo-vlc-ctrl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CedArctic%2Fgo-vlc-ctrl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CedArctic%2Fgo-vlc-ctrl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CedArctic%2Fgo-vlc-ctrl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CedArctic","download_url":"https://codeload.github.com/CedArctic/go-vlc-ctrl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248260324,"owners_count":21074208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","go","golang","hacktoberfest","vlc","vlc-media-player"],"created_at":"2024-11-14T07:15:42.798Z","updated_at":"2025-04-10T17:05:54.979Z","avatar_url":"https://github.com/CedArctic.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/CedArctic/go-vlc-ctrl/blob/master/img/logo.png\" width=\"140px\" alt=\"logo\"/\u003e\n\u003c/div\u003e\n\n\n# go-vlc-ctrl : Control VLC with Go\n[![go.dev reference](https://img.shields.io/badge/go.dev-reference-%2300ADD8?logo=go)](https://pkg.go.dev/github.com/CedArctic/go-vlc-ctrl)\n[![godoc reference](https://img.shields.io/badge/godoc-reference-blue?logo=)](https://godoc.org/github.com/CedArctic/go-vlc-ctrl)\n[![go report card](https://goreportcard.com/badge/github.com/CedArctic/go-vlc-ctrl)](https://goreportcard.com/report/github.com/CedArctic/go-vlc-ctrl)\n[![GitHub license](https://img.shields.io/github/license/CedArctic/go-vlc-ctrl)](https://github.com/CedArctic/go-vlc-ctrl/blob/master/LICENSE)\n[![release](https://img.shields.io/github/v/release/CedArctic/go-vlc-ctrl?color=orange)](https://github.com/CedArctic/go-vlc-ctrl/releases/latest)\n\nA simple yet powerful module that allows you to control VLC instances over the VLC Web API. \n\n## Installation\nMake sure you have Go installed and just open up a terminal window and run:\n```bash\ngo get github.com/CedArctic/go-vlc-ctrl\n```\n\n## Example\nTo run this example, enable the VLC Web Interface (View \u003e Add Interface \u003e Web) and make sure it has a password set to\n\"password\" (Preferences \u003e All \u003e Main interfaces \u003e Lua \u003e Lua HTTP \u003e Password). \n\nAlternatively you can launch VLC with a Web Interface from the command prompt / terminal \n(use macosx instead of qt if on macOS):\n```bash\nvlc --intf http --extraintf qt --http-password password\n```\n```go\npackage main\n\nimport (\n\t\"github.com/CedArctic/go-vlc-ctrl\"\n\t\"time\"\n)\n\nfunc main(){\n\t// Declare a local VLC instance on port 8080 with password \"password\"\n\tmyVLC, _ := vlcctrl.NewVLC(\"127.0.0.1\", 8080, \"password\")\n\n\t// Add items to playlist. Note URIs are URL percent-encoded \n\t// Warning: YouTube URLs have a = that needs to be changed to %3D (percent-encoding)\n\tmyVLC.Add(\"file:///C:/Users/Jose/Music/Back%%20In%%20Black.mp3\")\n\tmyVLC.Add(\"https://www.youtube.com/watch?v%3DdQw4w9WgXcQ\")\n\n\t// Play first item and wait for 10 seconds\n\tmyVLC.Play()\n\ttime.Sleep(10 * time.Second)\n\t\n\t// Skip to next item, toggle full screen and pause after 30s\n\tmyVLC.Next()\n\tmyVLC.ToggleFullscreen()\n\ttime.Sleep(30 * time.Second)\n\tmyVLC.Pause()\n}\n```\n\n\n## Documentation\nYou can find documentation of all functions on [GoDoc](https://godoc.org/github.com/CedArctic/go-vlc-ctrl) \nor [Go.dev](https://pkg.go.dev/github.com/CedArctic/go-vlc-ctrl).\n\nThe module fully covers the VLC Web API as documented \n[here](https://github.com/videolan/vlc/blob/master/share/lua/http/requests/README.txt).\n\n\n## Contributing\nContributions to the project in any way are welcome\n\n## Resources\n- https://wiki.videolan.org/Interfaces/\n- https://wiki.videolan.org/VLC_HTTP_requests/\n- https://wiki.videolan.org/Documentation:Modules/http_intf/\n- https://github.com/videolan/vlc/blob/master/share/lua/http/requests/README.txt\n\n## License\nCopyright (c) 2020 CedArctic. This project is licensed under the [MIT license](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedarctic%2Fgo-vlc-ctrl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedarctic%2Fgo-vlc-ctrl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedarctic%2Fgo-vlc-ctrl/lists"}