Hi, everyone,
Our group is developing a plugin for android browser recently. We
found that in the case that demonstrated in the following figures, the
display of the plugin is abnormal in android browser. The same problem
also happens to other types of plugin.
Two frame elements are set in <frameset> tag.
Webpage:
__________________________
UpFrame
______________________
| Plugin's Display Area |
| _________________ |
| | Display | |
| | | |
| |________________| |
|_____________________|
__________________________
DownFame
Button
__________________________
After clicking the button in the DownFrame, the “src” of the DownFrame
changes to a plugin object and the display is supposed to change
correspondingly.
Webpage:
__________________________
UpFrame
______________________
| Plugin's Display Area |
| _________________ |
| | Display | |
| | | |
| |________________| |
|_____________________|
__________________________
DownFame
______________________
| Plugin's Display Area |
| |
| |
| |
| ________________ |
|___|_______________|__|
| Display |
|_______________| <------------------------------------ !!
offset !!
___________________________
However, the display of the plugin always deviates from the position
it should be.
Here are the codes to reproduce the problem. In order to prove that
the problem is not due to our plugin, we use another plugin whose type
is application/x-mplayer2 here. Since android browser has no plugin
supporting application/x-mplayer2 objects, it will only show a
question icon in the corresponding location. (In Chrome on PC, the
example works well).
==========================main.html==============================
<html>
<head>
<title>Main</title>
<meta>
</head>
<frameset rows="208,*" frameborder="YES" border="1" framespacing="0"
cols="*">
<frame name="topFrame" src="m_up.html" frameborder="YES"
scrolling="NO">
<frame name="bottomFrame" src="m_bottom.html" scrolling="NO" >
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</noframes>
</html>
------------------------------------------------------------------------------------------------------------------------------
==========================upframe.html============================
<html>
<head>
<title>UpFrame</title>
</head>
<body bgcolor="#ffffff">
<object id="MediaPlayer" width="192" height="90">
<param name="FileName" value="love.mp4">
<param name="ShowControls" value="true">
<param name="ShowStatusBar" value="false">
<param name="ShowDisplay" value="false">
<param name="autostart" value="false">
<embed type="application/x-mplayer2" src="a.wmv" name="MediaPlayer"
width="132" height="88" showcontrols="1" showstatusbar="0"
showdisplay="0" autostart="0"> </embed>
</object>
</body>
</html>
------------------------------------------------------------------------------------------------------------------------------
==========================bottomframe.html=========================
<head>
<title>BottomFrame_1</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script type="text/javascript">
function changeSource()
{
parent.bottomFrame.location = "m_bottom2.html";
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<input type="button" onclick="changeSource()" value="Change source of
the bottom frames">
<p> </p>
</body>
</html>
------------------------------------------------------------------------------------------------------------------------------
==========================bottomframe2.html========================
<html>
<head>
<title>BottomFrame_2</title>
</head>
<body bgcolor="#ffffff">
<object id="MediaPlayer" width="192" height="90">
<param name="FileName" value="b.wmv">
<param name="ShowControls" value="true">
<param name="ShowStatusBar" value="false">
<param name="ShowDisplay" value="false">
<param name="autostart" value="false">
<embed type="application/x-mplayer2" src="b.wmv" name="MediaPlayer"
width="132" height="88" showcontrols="1" showstatusbar="0"
showdisplay="0" autostart="0"> </embed>
</object>
</body>
</html>
------------------------------------------------------------------------------------------------------------------------------
Does anyone can explain why this problem happens and testify that it
is caused by android browser? Thanks a lot!
Conica
--
You received this message because you are subscribed to the Google Groups
"Android Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/android-discuss?hl=en.