antirek / hugu

Collective music player for VK.com on node.js
51 stars 14 forks source link

Web interface shows that music is playing but in fact no #6

Open pavelsr opened 9 years ago

pavelsr commented 9 years ago

In Hugu log i have:

debug - websocket writing 5:::{"name":"currentTrack","args":[{"url":"https://cs1-41v4.vk-cdn.net/p22/560058ea4ec825.mp3?extra=qKlJo3uS7zzJKcl3m_wjxoujBPr8um2HQd5uj81ni7wbbvdHzEQDFn_PTNSxvJSg47BqY14NLYpqnRcTLDn-s1fIT0FLw9E","artist":"Семён Слепаков","title":"ред хот чили пеперс","owner_id":4485606,"aid":239639878,"addByUserAvatar":"https://pp.vk.me/c629220/v629220606/11f70/pjAIMBcbozg.jpg","addByUserId":"4485606","duration":187,"playing_time":0}]}
player start play
   debug - websocket writing 5:::{"name":"playlist","args":[[]]}
   debug - websocket writing 5:::{"name":"playlist","args":[[]]}
   debug - websocket writing 5:::{"name":"currentTrack","args":[null]}
   debug - emitting heartbeat for client VoAKQLNKAtlJZjVH-f4w
   debug - websocket writing 2::
   debug - set heartbeat timeout for client VoAKQLNKAtlJZjVH-f4w
   debug - got heartbeat packet
   debug - cleared heartbeat timeout for client VoAKQLNKAtlJZjVH-f4w
   debug - set heartbeat interval for client VoAKQLNKAtlJZjVH-f4w
   debug - emitting heartbeat for client VoAKQLNKAtlJZjVH-f4w
   debug - websocket writing 2::
   debug - set heartbeat timeout for client VoAKQLNKAtlJZjVH-f4w

mplayer is installed and working. tested:

pavel@homeserver:/nas/music$ mplayer 0bab66e623be.mp3 
MPlayer 1.1-4.8 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing 0bab66e623be.mp3.
libavformat version 54.20.4 (external)
Mismatching header version 54.20.3
Audio only file format detected.
Clip info:
 Title: La Valse D'Amelie (Orchestra V
 Artist: Yann Tiersen
 Album: Amelie Soundtrack
 Year: 2001
 Comment: 
 Genre: Soundtrack
Load subtitles in ./
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 54.35.0 (external)
AUDIO: 44100 Hz, 2 ch, floatle, 192.0 kbit/6.80% (ratio: 24000->352800)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [pulse] 44100Hz 2ch floatle (4 bytes per sample)
Video: no video
Starting playback...
A:  10.4 (10.4) of 119.0 (01:59.0)  1.1% 

MPlayer interrupted by signal 2 in module: play_audio
A:  10.7 (10.6) of 119.0 (01:59.0)  1.1% 

What could be the problem?

antirek commented 9 years ago

I don't know.

Try play use mplayer from url "https://cs1-41v4.vk-cdn.net/p22/560058ea4ec825.mp3?extra=qKlJo3uS7zzJKcl3m_wjxoujBPr8um2HQd5uj81ni7wbbvdHzEQDFn_PTNSxvJSg47BqY14NLYpqnRcTLDn-s1fIT0FLw9E" on machine with hugu.

pavelsr commented 9 years ago

Doesn't work.

I think problem could be: 1) mplayer doesn't support https (man mplayer | grep https - > nothing) 2) extra parameter after .mp3 in url (though it also doesn't work without it)

wget for this link is working.

What do you think?

antirek commented 9 years ago

mplayer work with https fine.

extra contain session data from VK. Also VK don't get mp3 file to other IP address, which is not assosiated with session.