-
-
Notifications
You must be signed in to change notification settings - Fork 175
Add gstreamer based audioplayers plugin #277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
1e7bf21
Add gstreamer based audioplayers plugin
DoumanAsh 7dabe5b
Apply comments
DoumanAsh ec494ea
Apply clang-fmt
DoumanAsh c733a49
CI: explicitely disable gstreamer plugins
DoumanAsh 5eb6cd7
Apply comments
DoumanAsh 6c8d96c
Apply comments
DoumanAsh c78ba6d
Update src/plugins/audioplayers/player.c
DoumanAsh f7a283c
Update src/plugins/audioplayers/plugin.c
DoumanAsh 10b9aa0
Update src/plugins/audioplayers/plugin.c
DoumanAsh fc6535c
Update src/plugins/audioplayers/plugin.c
DoumanAsh deb4ab6
Update src/plugins/audioplayers/plugin.c
DoumanAsh 3198904
Update src/plugins/audioplayers/plugin.c
DoumanAsh 25b07ef
Update src/plugins/audioplayers/plugin.c
DoumanAsh decfdc2
Apply comments and add extra error handling
DoumanAsh ab20884
Final comment
DoumanAsh acbb2f3
Separate video and audio plugins
DoumanAsh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#ifndef AUDIOPLAYERS_H_ | ||
#define AUDIOPLAYERS_H_ | ||
|
||
#include <stdbool.h> | ||
#include <stdint.h> | ||
|
||
struct audio_player; | ||
|
||
struct audio_player *audio_player_new(char *playerId, char *channel); | ||
|
||
// Instance function | ||
|
||
int64_t audio_player_get_position(struct audio_player *self); | ||
|
||
int64_t audio_player_get_duration(struct audio_player *self); | ||
|
||
bool audio_player_get_looping(struct audio_player *self); | ||
|
||
void audio_player_play(struct audio_player *self); | ||
|
||
void audio_player_pause(struct audio_player *self); | ||
|
||
void audio_player_resume(struct audio_player *self); | ||
|
||
void audio_player_destroy(struct audio_player *self); | ||
|
||
void audio_player_set_looping(struct audio_player *self, bool isLooping); | ||
|
||
void audio_player_set_volume(struct audio_player *self, double volume); | ||
|
||
void audio_player_set_playback_rate(struct audio_player *self, double rate); | ||
|
||
void audio_player_set_position(struct audio_player *self, int64_t position); | ||
|
||
void audio_player_set_source_url(struct audio_player *self, char *url); | ||
|
||
bool audio_player_is_id(struct audio_player *self, char *id); | ||
|
||
#endif // AUDIOPLAYERS_H_ |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.