Embedded Media

I have a large quicktime movies embedded in a .NET page and loaded from code behind.

ANyone know how I can get the "Please Wait...loading" message to display for this?
<object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width="480" height="375"
                                                        codebase='http://www.apple.com/qtactivex/qtplugin.cab'>
                                                        <param name='src' value="media/files/whywait.mov" />
                                                        <param name='autoplay' value="true" />
                                                        <param name='controller' value="true" />
                                                        <param name='loop' value="false" />
                                                        <embed src="media/files/whywait.mov" width="480" height="375"
                                                            autoplay="true" controller="true" loop="false" pluginspage='http://www.apple.com/quicktime/download/'>
        </embed>
                                                    </object>

Open in new window

Larry Bristersr. DeveloperAsked:
Who is Participating?
 
Faheem ShaikhConnect With a Mentor Commented:
Check if this helps your case:
http://forums.asp.net/t/1384535.aspx
 
0
 
Faheem ShaikhCommented:
This should solve your problem:
http://forums.asp.net/t/1146095.aspx
 

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <script type="text/javascript">
        function CheckLoading()
        {
            var position = document.getElementById('WMPlay').currentPosition;
            if (position > 0)
            {
                document.getElementById('loading').style.display = 'none';
            }
            else
            {
                setTimeout("CheckLoading()",500);
            }
        }
    </script>
</head>
<body onload="CheckLoading()">
    <form id="form1" runat="server">
    <div>
        <object id="WMPlay" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95">
            <param name="FILENAME" value="http://download.microsoft.com/download/3/1/b/31bc6707-4f00-4232-9e31-7800373e9fdd/HDI-AJAX-P-IncremantalPageFetch-AWS.wmv">
        </object>
    </div>
    <div id="loading" style="float:left; width:100%; height:100%; text-align:center;">
        <span style="background-color:Yellow; font-size:xx-large">Please Wait while loading</span>
    </div>
    </form>
</body>
</html>

Open in new window

0
 
Larry Bristersr. DeveloperAuthor Commented:
Yes...but that messages stays on the screen.  I need it to dissappear
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
Faheem ShaikhCommented:
The CheckLoading() function in the code snippet attached does that for you.
0
 
Larry Bristersr. DeveloperAuthor Commented:
faheem29484:

Sorry...I should have explained better.  I don't have a body tag...that's in the MasterFile.
Attached is what I have built.  The Java is at the top of the page
<table border="0" cellspacing="0" cellpadding='0' align="center">
                                            <!-- begin video window... -->
                                            <tr>
                                                <td>
                                                    <div id="loading" style="float: left; width: 100%; height: 100%; text-align: center;">
                                                        <span style="background-color: Yellow; font-size: xx-large">Please Wait while loading</span>
                                                    </div>
                                                    <object id="qtPlay" classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width="480"
                                                        height="375" codebase='http://www.apple.com/qtactivex/qtplugin.cab'>
                                                        <param name='src' value="media/files/whywait.mov" />
                                                        <param name='autoplay' value="true" />
                                                        <param name='controller' value="true" />
                                                        <param name='loop' value="false" />
                                                        <embed src="media/files/whywait.mov" width="480" height="375" autoplay="true" controller="true"
                                                            loop="false" pluginspage='http://www.apple.com/quicktime/download/'>
        </embed>
                                                    </object>
                                                </td>
                                            </tr>
                                            <!-- ...end embedded QuickTime file -->

Open in new window

0
 
Larry Bristersr. DeveloperAuthor Commented:
Sorry for the late reply.  Worked like a charm.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.