Incorrect charset in method MediaPreferencePanel.scanDevices on Windows 2000(CHN)

MediaPreferencePanel.scanDevices

It can fixed by code below:

private String convertSysString(String src){
        String res = src;          try {
            res = new String(src.getBytes("ISO-8859-1"),Charset.defaultCharset());
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return res;
    }
        public void scanDevices()
    {
        // Remove all Items
        audioDevice.removeAllItems();
        videoDevice.removeAllItems();
                // FMJ
        RegistryDefaults.registerAll(RegistryDefaults.FMJ | RegistryDefaults.FMJ_NATIVE);         // Add Device
        GlobalCaptureDevicePlugger.addCaptureDevices();         // LOG ALL Devices
        final Vector<CaptureDeviceInfo> vectorDevices = CaptureDeviceManager.getDeviceList(null);
        for ( CaptureDeviceInfo infoCaptureDevice : vectorDevices )
        {
            System.err.println(convertSysString(infoCaptureDevice.getName()));
            for (Format format : infoCaptureDevice.getFormats())
            {
                System.err.println(format);
            }                }
                vectorAudioDevices = CaptureDeviceManager.getDeviceList(new AudioFormat(AudioFormat.LINEAR));            for ( CaptureDeviceInfo infoCaptureDevice : vectorAudioDevices)
        {                             audioDevice.addItem(convertSysString(infoCaptureDevice.getName()));
        }
                vectorVideoDevices = CaptureDeviceManager.getDeviceList(new VideoFormat(VideoFormat.RGB));
        for (  CaptureDeviceInfo infoCaptureDevice : vectorVideoDevices )
        {
            videoDevice.addItem(convertSysString(infoCaptureDevice.getName()));                }
    }


真的不错,我也在二次开发spark,里面问题还真多。不知道您遇到下面的错误没,怎么解决的谢谢。

Caused by: java.util.MissingResourceException: Can’t find bundle for base name i18n/flashing_i18n, locale zh_CN

it cause by missing resource file,

put the atached file to spark\src\plugins\flashing\resources\i18n

Please, admin,** add it to svn**
flashing_i18n_zh_CN.properties.zip (367 Bytes)

and this file to spark\src\plugins\jingle\src\resources\i18n
jingle_i18n_zh_CN.properties.zip (542 Bytes)

传输离线文件问题:

一台机子登录两个spark账号,进行离线文件传输时,接收方登录时接收不到离线传输文件请求。

不知道朋友遇到这样的问题没?

如何解决?

谢谢,救命恩人啊

加个好友

Hi, yujiaao.Could you please attach your patch in diff format? I will then attach it to SPARK-1109

Translations SPARK-1110

Update. Patch is not needed anymore. cstux has already applied your changes

thanks for response. the patch below was created by eclipse plugin subversive, the format is “patch”, not diff, is it the same?
MediaPreferencePanel.java.patch.zip (956 Bytes)

What i meant is what format is inside the patch (diff - difference). Your patch is ok, but as i said, cstux has already applied your code from the first post.