我有一个Flash代码,可以向用户显示网络摄像头。用户可以从相机和麦克风列表中进行选择。一旦向用户显示,用户就选择他想要的网络摄像头和麦克风。但是在我将小部件附加到另一个div后,用户选择的网络摄像头和麦克风将被重置,用户必须再次选择它们。
我必须在不同的时间在不同的html div中显示flash小部件,但它不应该总是可见。
像:
1. Initially it is on the page body with css(display:none);
2. I move it to a pop-up div using .append(), and change css(display:block), the camera initialises, and user chooses his desired webcam and microphone;
3. Again I append it to body from pop-up div, but this time it again reinitialises itself, and user has to again choose the webcam and microphone as his selected one's get reset in the list.
虽然我不希望它重新初始化,但只是继续提前设置
因为当显示变为阻止时已经初始化了 弹出窗口。
这主要发生在Chrome和Opera上。在Firefox中,事情很好。
在将其附加到其他div之后,有什么方法可以保持flash初始化。