Cloud API - JSBridge - Live Streaming Module - liveshareSetConfig error
CompletedHello,
i'm try to start RTMP streamming fron drone to our server. I prepared a page on our server and the needed js commands (window.djiBridge.platformVerifyLicense, window.djiBridge.platformIsVerified() is ok, etc.).
I loaded "thing" componentand "liveshare" component. All warks but if i try to enable this:
var register_params_live_rtmp = JSON.stringify({
url: "rtmp://79.11.3.142:1935/living/drone1"
});
window.djiBridge.liveshareSetConfig(type: 2, params: register_params_live_rtmp);
the last command doesn't works. I'm not able to get the error i tryed with this too but no success:
try {
window.djiBridge.liveshareSetConfig(type: 2, params: register_params_live_rtmp);
} catch (error) {
log("Error: "+error);
}
Thanks for your help.
regards
Giovanni
-
Hello,
yes, I confirm that the url rtmp://79.11.3.142:1935/living/drone1 is correct because if I set it manually on remote app it works. Also, if I set it manually, stop the stream, left the url setted and after that I modify the login page replacing the commad
var register_params_live_rtmp = JSON.stringify({
url: "rtmp://79.11.3.142:1935/living/drone1"
});
window.djiBridge.liveshareSetConfig(type: 2, params: register_params_live_rtmp);with:
window.djiBridge.liveshareStartLive();
and return in login page, it works.
As I wrote, this command doesn't return me an error:try {
window.djiBridge.liveshareSetConfig(type: 2, params: register_params_live_rtmp);
} catch (error) {
log("Error: "+error);
}I don't know why, siply stop and doesn't go haead. Do you confirm the sintax of liveshareSetConfig method?
As futher information, if i send this command:{
"tid": "1c37e92d-2866-45b7-bebf-529c32e18e4437",
"bid": "6370eff0-7986-4733-92ad-f539cb1e44e719",
"method": "live_start_push",
"data": {
"url_type": 1,
"url": "rtmp://79.11.3.142:1935/living/drone1",
"video_id": "1ZNBJAU00C000V/39-0-7/normal-0",
"video_quality": 0
}
}on mqtt server on topic thing/product/4LFCL9F006L3K3/services, a voice on remote controller side warn me that the streamming is started but it doesn't really start.
Thanks for your help.regards
Giovanni -
Dear developer, Hello, thank you for contacting DJI. on mqtt server on topic thing/product/4LFCL9F006L3K3/services, a voice on remote controller side warn me that the streamming is started but it doesn't really start. ——> 1. After sending the request to start the live broadcast, the result was successful, right? For example, result=0. However, the live broadcast content cannot be seen on the platform? 2. Could you please provide the firmware version and parameters used? Best Regards, DJI SDK Technical Support
Please sign in to leave a comment.
Comments
3 comments