Mozilla VLC plugin does not respect ':rtsp-kasenna' option
I try to play video stream from Kasenna server with Mozilla VLC plugin and can not do it.
VLC versions: 1.0.4 and 1.0.5 (reproduced on both). OS: Linux dmorosenko 2.6.32-zen3 #1 (closed) ZEN SMP Fri Dec 25 16:15:21 MSK 2009 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux and Windows XP.
JavaScript code:
// Create player var _playerEl.innerHTML = '<embed type="application/x-vlc-plugin"' + ' id="VLCPlayerPlugin"' + ' autoplay="no" loop="no" width="600" height="450" />'; var _player = document.getElementById('VLCPlayerPlugin');
// Add asset and play it _player.playlist.add('rtp://server:port/path/to/file', 'EntryName', ':rtsp-kasenna'); _player.playlist.play();
Asset's address is correct. I have tried to play it with VLC player and can do it with following command line: vlc rtp://server:port/path/to/file :rtsp-kasenna
So the problem is in plugin.
I have sniffed the traffic and found following. Then plugin communicates with Kasenna server it sends incorrect describe request:
==================== DESCRIBE rtsp://172.20.1.192:554/SD_MPEG2/I,Robot RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: VLC media player (LIVE555 Streaming Media v2009.11.12)
RTSP/1.0 415 Unsupported Media Type
CSeq: 2
Message: Date: Wed, 03 Mar 2010 14:22:27 GMT
====================
But the VLC player with ":rtsp-kasenna" option sends another (and correct) request:
==================== DESCRIBE rtsp://172.20.1.192/SD_MPEG2/I,Robot RTSP/1.0
CSeq: 2
Accept: application/x-rtsp-mh, application/sdp
User-Agent: VLC_MEDIA_PLAYER_KA
RTSP/1.0 200 OK
CSeq: 2
Date: Thu, 04 Mar 2010 08:54:36 GMT
Server: Kasenna MediaBase version 8.3
Content-type: application/x-rtsp-mh
Content-Length: 453
[body skipped]
As I can see the main difference is in Accept header.
So I think that Mozilla plugin does not respect ':rtsp-kasenna' option and not modify its behavior to satisfy Kasenna RTSP protocol.