You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 .
The text was updated successfully, but these errors were encountered:
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 .
The text was updated successfully, but these errors were encountered: