Anychat for Web SDK supports setting local picture for interface background

Source: Internet
Author: User

Starting with the Anychat r4092 version, the anychat for Web SDK supports setting the local picture as the interface background.
<ignore_js_op style= "Word-wrap:break-word" >
If you need to change the default "Anychat" background, you can use the API interface: SetBkImage to set, reference: Http://bbs.anychat.cn/forum.php? ... =172&extra=page%3d2

Earlier versions supported only network paths (for example, Http://www.anychat.cn/images/main/supervideo.jpg), and on some computers found that an HTTPS path could cause an exception, a possible solution would be to increase support for local picture files:
1, put the background image in the plugin directory, such as:
<ignore_js_op style= "Word-wrap:break-word" >
2, call the API to set up, only need to pass the file name parameter, and do not need to pass the files path, the plug-in will automatically load the plugin installation directory under the background image:
  1. Set Local video display location
  2. Brac_setvideopos (Mselfuserid, GetID ("Anychatlocalvideodiv"), "anychat_video_local");
  3. Brac_getdmoobject ("Anychat_video_local"). SetBkImage ("videobk.jpg");
Copy Code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.