[vlc-devel] jvlc: Getting any response from VLM
Alexander Bethke
abethke at oamk.fi
Mon Feb 23 11:15:33 CET 2009
Heippa,
Ok, with latest HEAD from git it works better.
I got exceptions forwarded from VLM class now. The tests from VLMTest
run for broadcasts, but when running the VOD tests in sequence, it
throws an Exception about not being able to create the vod media. If you
run the vod tests one-by-one, it works though.
So there seems to be something leaking with destructing the vlm instances?
In addition I debugged the showMedia method, libvlc throws an exception
every time that is called. I digged into the c code, and it turns out
that this function has been crippled in the public libvlc_vlm api. There
seems to have been a refactoring step within VLM's internal API that
does not directly expose the show command any more. There's some few
newer functions that allow to ask for position and length, but that does
not provide a lot of information. There's some struct stub commented out
in vlm.c that seems to be intended to carry extensive status information
for a media... I gonna write a mail with a different subject to the list
to see if someone VLM-involved can give me a hint on how that's supposed
to go.
Anyway, I try to refactor the jvlc-VLM class as much as it is possible
to reflect the latest changes in VLM, to get things a bit more
compelling. Gonna report back with a patch as soon as I am satisfied
with how it works.
Regards, Alex
Filippo Carone wrote:
> Alexander Bethke ha scritto:
>
>> Hi everybody,
>>
>> I am trying to implement a live transcoding controller that wraps VLM
>> via jvlc. Sending a command to VLM works fine, but it seems there is no
>> way to get information back from jvlc. I understand that there is no
>> fancy playback event handling with jvlc>VLM like when using jvlc as a
>> player with MediaDescriptor. But what I don't understand is why no VLM
>> method throws a VLCException. showMedia has return type void and I don't
>> get any console logging from any VLM command (apart from actual VLC
>> logging, when VLM triggered it right).
>> Am I getting something wrong? Or is that just unimplemented?
>>
>>
>
> Hi Alexander,
> VLM methods in JVLC should throw exceptions just like other JVLC
> methods. The current implementation throws exceptions away, but if you
> need exceptions now you may consider using
> org.videolan.jvlc.internal.LibVlc.libvlc_vlm_* methods which fill the
> libvlc_exception_t class correctly.
>
> The best would be to check the status of the libvlc_exception_t class in
> VLM.java and throw the VLCException accordingly. Any patch will be
> kindly accepted ;)
>
> Cheers,
> Filippo
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
>
More information about the vlc-devel
mailing list