![]() sickill commented on July 13, ha! Thanks for the demo, your project looks great. Hi all, any news on this ? I would really love sync with audio (or other things) some day !įrom asciinema-player. Var audio = document.getElementById("audio") įrom asciinema-player. play() on it, it fetched enough data to be able to start playing immediately)? remisharrock commented on July 13, Great idea !ĭoes audio tag trigger any event when it's actually ready play (you called. play() on it, it fetched enough data to be able to start playing immediately)?įrom asciinema-player. Does tag trigger any event when it's actually ready play (you called. The solution could be to wait for both to be loaded and only then start the playback. This could be solved by pre-fetching both asciicast and audio, but this feature should work fine too without pre-fetching. Both have a need to make a HTTP request to fetch data first and we can't assume they'll both start at the exact same time. There is one thing with starting the playback initially that I'm not sure about: syncing the start of both terminal playback and audio playback. The player could support audio "natively" (eventually), but it would be nice to be able to integrate with external element manually via hooks (initially). Is there a need to differentiate between initial start and resuming from pause? Both could be seen as "play", right? player jumps to position -> trigger audio jump. ![]() What would be the minimal set of hooks needed to integrate with a separate element? This is related to hooks (they would need to be supported on element). There would still be the current JS API under the hood though (if anyone would prefer that). I believe it would be great to have this as a main API. I started investigating the possibility of making the player a proper HTML5 element ( ), with API similar/compatible with element (HTMLMediaElement). What's the status on audio support, particularly theses hooks ? How can we help ? We started an "audio code recorder / player" (here : ): based on the ACE editor ( ), it records/plays audio and keystrokes in the ACE editor for education purposes. Indeed, I'm an assistant professor at university and would love to do audio asciicasts ! I would love to have audio support for education purposes. remisharrock commented on July 13, Hey Marcin (Hope to see you soon in KRK by the way.) I haven't started on these yet but they're the next things on my list.įrom asciinema-player. return JS object from this function which will have some control methods like play(), pause() etc.accept events object in options object which would be used to register your event handlers.I was reading through YouTube player's API doc and I think it's not a bad idea to be inspired by it. ![]() I started adding proper JS interface here: I guess that's a good moment for me to document it. Hey that would be awesome! The code doesn't include any docstrings at the moment so some parts may need some explanation from my side. Or like our stuff we implemented here for example:įrom asciinema-player. remisharrock commented on J want to have audio synchronized with asciinema even if you click pause and play or even if you shuffle in time like a video actually. bad héhé :-)Īnyway, let me know if you are by KRK this summer so that we can meet !įrom asciinema-player. Let me know if you think I will be able to do that this summer otherwise I have to do a screencast. I wanted to record some Linux command line classes with audio for a massive open online course. remisharrock commented on J Hey Marcin, I will be in KRK starting the 15 of august, let's meet !Īlso, where are you now with audio recording / playing ? Juste push the play button and put the sound up !Īnd here is the open source tool to do this:įrom asciinema-player. remisharrock commented on J Hi Marcin, here is a small demo for you -) If it goes well it should land in next few weeks □įrom asciinema-player. sickill commented on J I'm actually working now on native audio support in the player. If it looks good I'll make a new release (2.4.0).įrom asciinema-player. Please take a look at this and let me know what you think. It's in master now, and you can see the docs for these in the README:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |