jaruba / wcjs-player

Node Player made for WebChimera.js (libVLC wrapper)
http://webchimera.org/
GNU Lesser General Public License v2.1
178 stars 46 forks source link

vlcMedia.duration returns 0 after vlcMedia.parse() but still plays it #54

Closed Chayemor closed 8 years ago

Chayemor commented 8 years ago

I have encountered a problem with ".mpg" videos. Files are parsed and only after vlcMedia.parsed is true do I try to access vlcMedia.duration. It works great with all file formats except ".mpg" (MPEG codec). If I open the video with VLC Player, the duration shows fine, it's when I try to get it through code that it doesn't work. The duration always returns 0 even if I do _setTimeOuts _ after parsing. Here is the thing, when played, the duration shows up on the WCJS-PLAYER just fine.

mpgerror

jaruba commented 8 years ago

That's part of the WebChimera.js official JS API, so only @RSATom can help with it. :/