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?