DISKTREE.NET // PANZERKUNST

Avatar

PANZER Schokolade3

PANZER Schokolade2

HTML5 audio/video .ogg extension quirks

While adding support for wrapping media files into the according html5 tag (audio or video) to my realtime microblogging application at roar.disktree.net i discovered a nasty situation as follows:
How to know if a file with the ‘.ogg’ extension is video rather than audio from within javascript ?

Possible workarounds to distinguish (in case of my application):

  • Read the file header serverside and save the result somewhere.
    Ok, but requires extra work.
  • Try to discover filetype from the ID3 tag.
    Not save.
  • Read the file header in flash (which is able to read data at byte level).
    Ok for files served from same domain only.

Anyhow, no solution for javascript, so it would be good to agree on:

Name audio files ‘ogg’, video files ‘.ogv’ and tell everybody to do so!

Or am i overlooking something ?

DJ mix on air

A fresh electro-house dj-mix of mine will be aired at the substral show on radio helsinki tonight (starting 22:00 CET).
Listen 92,6FM (graz/austria only),  internet stream or download.

Playlist:
Soulwax - Most Of The Remixes - Gravity’s Rainbow
? - Leisure - Armageddon_Edit
Soulwax - Most Of The Remixes - Lovelight
Boys Noize - Lava Lava - My Head (Para One Remix)
D.I.M. - Is You (JFK Remix)
Teenage Bad Girl - Cocotte - Cocotte
Teenage Bad Girl - Cocotte - Hands of a stranger
Justice - Waters of Nazareth (Erol Alkan’s Durrr Durrr Durrrrrr Re-Edit)
Fake Blood - Little Boots - Stuck on Repeat
Masterkrft - Goose - Bring It On (JFK)
Shadow Dancer - Landlines Original Mix
Buraka Som Sistema - Kurum (Dj Manaia Remix)
Shadow Dancer - Lower Left
Guns n Bombs - Riddle Of Steel
? - Unstoppable - Tom Wrecks Remix

Enjoy.

HXMPP example - account registration

Based on HXMPP i’ve created a simple example of a web based jabber account registration form. Intention for this is to get used on any user registration where an (additional) jabber account should get created too. The application compiles seamlessly to flash9+ and javascript (flash plugin required for the socket connection) and got tested against openfire and ejabberd.

Note: UI is pretty rough, just for testing purposes.
Note: A list of free jabber services.
Note: Use firebug to show the transfered XMPP.

[ view haXe source code ]
[ download haXe source code ]

BTW: HXMPP 0.3 got released some days ago and is available at code.google.

Sperrplan on Superposition

Follow this link for listening to audio tracks produced by myself in between somthing about 2004- 2006. The flash audio player is experimental work providing a basic mediaplayer framework for controlling av media content in flash via an external interface.

From the project description:
WMPE ( short for web media player enviroment ) is a javascript framework written in haXe to provide connectivity to and from mediaplayers emebed in websites.

It provides external interface connections:
* to flash9+ mediaplayers.
* from mediaplayers to controls ( flash or html )

The pros of this approach:
* less loading, no need to embed multiple swf-playback engines.
* centralized audio playback.
* centralized configuration.
* centralized playlist management.
( * sidebar player )

To the title of this blog post: The tracks were produced under the (inactive) music-label sperrplan. Superposition is an upcoming music project from a friend of mine ( for which the player engine gets developed ).

,

Twitter



haXe

Get Linux



Spread Firefox Affiliate Button

CNXS game