Skip to content
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

loop feature / using callbacks #2

Open
lerabot opened this issue Jun 16, 2018 · 7 comments
Open

loop feature / using callbacks #2

lerabot opened this issue Jun 16, 2018 · 7 comments

Comments

@lerabot
Copy link

lerabot commented Jun 16, 2018

I've been testing your library recently and integrating it it my game.
I have some problem with the callbacks. I can't seem to use the quit callback, maybe I'm getting something wrong.

In order to cancel the video, i'd need to return 1. even if I do that, nothing happen unless its on the last frame.

@multimediamike
Copy link
Owner

Wow! Exciting to hear that someone is actually using this project. Thanks for the feedback.

What platform are you building this on?

@lerabot
Copy link
Author

lerabot commented Jun 19, 2018

Building on Linux mint using the Kos toolchain.

@lerabot
Copy link
Author

lerabot commented Jun 20, 2018

I just re-read your dreamroq-player.c file and figured somethings out. You don't need to have dreamroq_play() called over and over to play the file right? You can just call this once and the video will keep playing?

This is where I messed up I think. I'll report back in a few days :)

@multimediamike
Copy link
Owner

Nice, you're actually doing this on kos/DC, where I originally developed it. Glad people are keeping the platform alive.

I'm reviewing how the code works, but yes, it's one blocking call to the dreamroq_play() function which returns after the video has completed.

@lerabot
Copy link
Author

lerabot commented Jun 21, 2018

actually, since we're chatting about it, is it possible to have alpha in the video? I can see some mention of ARGB but I can't figure out how to encode the video correctly.

@lerabot
Copy link
Author

lerabot commented Jun 21, 2018

I fixed my issue for my game :) by the way you can check the repo here https://github.com/lerabot/reaperi_cycle

@multimediamike
Copy link
Owner

Indeed, there are RoQ files with ARGB. They were used in the game The 11th Hour and this library supports decoding them. However, it might be a challenge to find software that encodes the ARGB variant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants