• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 165
  • Last Modified:

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

0
lrbrister
Asked:
lrbrister
  • 3
  • 3
1 Solution
 
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
 
lrbristerAuthor Commented:
Yes...but that messages stays on the screen.  I need it to dissappear
0
 
Faheem ShaikhCommented:
The CheckLoading() function in the code snippet attached does that for you.
0
Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

 
lrbristerAuthor 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
 
Faheem ShaikhCommented:
Check if this helps your case:
http://forums.asp.net/t/1384535.aspx
 
0
 
lrbristerAuthor Commented:
Sorry for the late reply.  Worked like a charm.
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now