I knew not doing it was smarter, or how HTML5 and Qt do my work for me.
I wrote a while ago a RSS program called uRSSus. I expect I am the only user of it because it has some problems (all of them my fault ;-) but I really like it.
For a while now I have wanted it to have podcast support. The thing is... that always seemed like a lot of work. Sure, using phonon I can create an audio player and everything, but...
I am using a HTML widget to display the posts, so I would have to find a way to add the audio player to the UI and ... too much work.
So, today I woke up and thought... wait a minute... Qt's HTML widget is based on Webkit. And Webkit supports HTML5. And HTML5 has an "audio" tag.
So, if I fixed uRSSus to fetch the enclosure links, and added them in the database, and then added this to the post template:
<?py for enclosure in post.enclosures: ?> <audio autobuffer="Yes" controls="controls" src=#{enclosure.href}></audio><br> <?py #end ?>
Wouldn't that actually work? Well, yeah!
So there you have it, I was right not to implement it, because the easiest way is to let Qt do it ;-)
Groso e ingenioso! :-)
Lástima que Webkit (ni HTML5) soporta todos los códecs/contenedores de audio/video (sólo Ogg y Mkv o algo así); se me viene a la mente que la mayoría de los podcasts me parece que son en mp3.
Saludos!
Groso e ingenioso! :-)
Lástima que Webkit (ni HTML5) soporta todos los códecs/contenedores de audio/video (sólo Ogg y Mkv o algo así); se me viene a la mente que la mayoría de los podcasts me parece que son en mp3.
Saludos!
Por lo menos para MP3 funciona. Bah, funciona el primero que probé: http://www.thelinuxlink.net...
Creo que esta es la explicación de porqué funciona: en realidad Qt Webkit hace esto via Phonon.
Como el backend de Phonon es Xine (o gstreamer o lo que sea) a menos que Qt verifique el tipo de archivo, debería fucionar para cualquier tipo de audio.
Capaz que algunos no funcionen muy bien como streaming, capaz que no se pueda avanzar o retroceder.
Para esos capaz que implemento descarga y cache de los archivos.
How about embed mplayer? Is it a good idea??
@barthus: it surely is a lot more work.
I found some examples in a qt french blog... (sadly I don't speak french)
but you are correct, it seems a lot of work.. ;)
http://forum.qtfr.org/viewt...
this is really interesting viewpoint on the subject i might add
Man ... Beautiful . Amazing ... I will bookmark your website and use the your RSS feed also