VLC Web Plugin and jQuery
Posted: 21 Jul 2014 10:52
I have wrote an jQuery script for my VLC Plugin, that will hold the link from JSON formated code and past it in the plugin for the rtsp link. But I have a problem.
here the code, Mozilla Firefox Firebug show me:
uncaught exception: No such method or arguments mismatch.
How can I fix this?
Code: Select all
$.ajax({
type: "GET",
url: "/api/stream",
processData: true,
dataType: 'text',
cache: false,
success: function (data, textStatus, request) {
stream = jQuery.parseJSON(data);
var vlc = vlcEmb;
var link = stream.rtsp;
vlc.playlist.clear();
vlc.playlist.add(link);
vlc.playlist.play();
}
});
here the code, Mozilla Firefox Firebug show me:
uncaught exception: No such method or arguments mismatch.
How can I fix this?