hii , i want show RTSP stream video using SignalR and show it in web view using broadway , i already have the data from SignalR but onPictureDecode not firing my callback , please correct me if i wrong ?
Data After convert :
Data Before Convert :
CCTV Config :
is my NAL Units is correct and my CCTV encode is support broadway decoder ?
var connection = new signalR.HubConnectionBuilder().withUrl("/VideoStreamHub").build();
var decoder = new Decoder({
rgb: true,
sliceMode: 0
})
decoder.onPictureDecoded = function (buffer, width, height) {
console.log("onPictureDecoded")
};
connection.on("ReceiveFrame", function (frameData) {
try {
var data = toUint8Array(frameData);
console.log(data);
decoder.decode(data);
} catch (error) {
console.log(error)
}
});
var toUint8Array = function (parStr) {
var raw = window.atob(parStr);
var rawLength = raw.length;
var array = new Uint8Array(new ArrayBuffer(rawLength));
var i;
for (i = 0; i < rawLength; i++) {
array[i] = raw.charCodeAt(i);
}
return array;
};
can someone help me , i have stuck with this more than 1 week .
hii , i want show RTSP stream video using SignalR and show it in web view using broadway , i already have the data from SignalR but onPictureDecode not firing my callback , please correct me if i wrong ?
Data After convert :
Data Before Convert :
CCTV Config : is my NAL Units is correct and my CCTV encode is support broadway decoder ?
can someone help me , i have stuck with this more than 1 week .