Comments (3)
does SourceFile() need to be used to specify the file to stream from?
Yes. Here is an example:
stream := gumble_ffmpeg.New(client)
stream.Source = gumble_ffmpeg.SourceFile("myfile.mp3")
stream.Play()
The audio player example project just passes the filename to the Play() function, but I think it might be outdated.
I need to fix that. Thank you for the reminder.
What is the correct way to do callbacks after the song has finished?
// ...
stream.Play()
go func() {
stream.Wait()
mycallbackfunc()
} ()
from gumble.
Thanks for the response!
On May 9, 2015 6:16 PM, "Tim Cooper" [email protected] wrote:
does SourceFile() need to be used to specify the file to stream from?
Yes. Here is an example:
stream := gumble_ffmpeg.New(client)
stream.Source = gumble_ffmpeg.SourceFile("myfile.mp3")
stream.Play()The audio player example project just passes the filename to the Play()
function, but I think it might be outdated.I need to fix that. Thank you for the reminder.
What is the correct way to do callbacks after the song has finished?
// ...
stream.Play()go func() {
stream.Wait()
mycallbackfunc()
} ()—
Reply to this email directly or view it on GitHub
#16 (comment).
from gumble.
Awesome, I've got it working now!
from gumble.
Related Issues (20)
- how to join a channel with gumble lib HOT 5
- Event which user speaks ? HOT 2
- Missing doc for openAL HOT 4
- PermissionDeniedMissingCertificate HOT 1
- Getting choppy sound. HOT 13
- [MacOS] s.deviceSource.CaptureSamples always return 0 HOT 1
- Force TCP mode in gumble? HOT 1
- Automatic rate limiting HOT 3
- Matterbridge integration? HOT 1
- Protocol features (v1.4) HOT 1
- Transmit Stereo Audio HOT 2
- Panic when a client disconnects hard ?
- question : are commands and voice packets sent on the same socket or on 2 different sockets ? HOT 1
- the opus can not work well when using gumble.
- Client loses ability to send message to channel HOT 2
- No audio transmitted and received and mumble-audio-player play no sound
- How to get gumbleffmpeg stream duration/length?
- Receiving audio HOT 1
- certificate signed by unknown authority HOT 1
- How to use .p12 user certificate from Mumble? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gumble.