Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,519 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,772 people online right now. Registration is fast and FREE... Join Now!




Embed WMV/MOV video file for multiple browsers

 
Reply to this topicStart new topic

Embed WMV/MOV video file for multiple browsers

houston_00
14 Aug, 2008 - 06:56 PM
Post #1

New D.I.C Head
*

Joined: 14 Aug, 2008
Posts: 2

Hello everyone -

I am working with a survey company to create an online survey that will incorporate videos. My work is primarily based around making call center programs and not online web based surveys. The survey invites will be sent to hundreds of people who of course may have different internet browsers. They will have the option of either viewing an WMV file or MOV file. I will set the WMV file to play with media player and the MOV with quick time. Below is the code I am using for each. I want to avoid compadibilty issues with different browsers so I hope the code below will have what it I need so that no one has issues viewing the videos. So i basically want my embedded videos to work on multiple types of browsers.

MEDIA PLAYER CODE

{DIV align="center"}{OBJECT ID="MediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject" width="425" height="355"}{PARAM NAME="FileName" VALUE="XXXXXXX"}{PARAM NAME="AnimationatStart" VALUE="false"}{PARAM NAME="TransparentatStart" VALUE="true"}{PARAM NAME="AutoStart" VALUE="true"}{PARAM NAME="ShowControls" VALUE="0"}{PARAM NAME="ShowDisplay" VALUE="0"}{PARAM NAME="ShowStatusBar" VALUE="0"}{PARAM NAME="AutoSize" VALUE="0"}{PARAM NAME="EnableContextMenu" VALUE="false"}{embed TYPE="application/x-mplayer2" pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&" SRC="XXXXXXX" HEIGHT="355" WIDTH="425" Name="MediaPlayer" AUTOSTART="1" SHOWCONTROLS="0" EnableContextMenu="0"}{/embed}{/OBJECT}{/div}

QUICK TIME CODE

{DIV align="center"}{object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="425" height="355" codebase="http://www.apple.com/qtactivex/qtplugin.cab"}{param name="src" value="XXXXXX"}{param name="autoplay" value="true"}{param name="controller" value="false"}{embed src="XXXXXX[code]" width="425" height="355" autoplay="true" controller="false" pluginspage="http://www.apple.com/quicktime/download/"}{/embed}{/object}{/div}
User is offlineProfile CardPM
+Quote Post

BenignDesign
RE: Embed WMV/MOV Video File For Multiple Browsers
14 Aug, 2008 - 11:21 PM
Post #2

Bubble wrapped for your safety.
Group Icon

Joined: 28 Sep, 2007
Posts: 956



Thanked: 2 times
Dream Kudos: 150
My Contributions
code.gif

so it looks like this:

CODE

{DIV align="center"}
{OBJECT ID="MediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject" width="425" height="355"}{PARAM NAME="FileName" VALUE="XXXXXXX"}
{PARAM NAME="AnimationatStart" VALUE="false"}
{PARAM NAME="TransparentatStart" VALUE="true"}
{PARAM NAME="AutoStart" VALUE="true"}
{PARAM NAME="ShowControls" VALUE="0"}
{PARAM NAME="ShowDisplay" VALUE="0"}
{PARAM NAME="ShowStatusBar" VALUE="0"}
{PARAM NAME="AutoSize" VALUE="0"}
{PARAM NAME="EnableContextMenu" VALUE="false"}
{embed TYPE="application/x-mplayer2" pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&" SRC="XXXXXXX" HEIGHT="355" WIDTH="425" Name="MediaPlayer" AUTOSTART="1" SHOWCONTROLS="0" EnableContextMenu="0"}
{/embed}
{/OBJECT}
{/div}


CODE

{DIV align="center"}
{object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="425" height="355" codebase="http://www.apple.com/qtactivex/qtplugin.cab"}
{param name="src" value="XXXXXX"}
{param name="autoplay" value="true"}
{param name="controller" value="false"}
{embed src="XXXXXX[code]" width="425" height="355" autoplay="true" controller="false" pluginspage="http://www.apple.com/quicktime/download/"}
{/embed}
{/object}
{/div}


Makes it infinitely easier for those of us digging through it to sort it all out.

Anyway, I'm not seeing any major problems with your code. What issues are you having??

This post has been edited by BenignDesign: 14 Aug, 2008 - 11:23 PM
User is online!Profile CardPM
+Quote Post

houston_00
RE: Embed WMV/MOV Video File For Multiple Browsers
14 Aug, 2008 - 11:31 PM
Post #3

New D.I.C Head
*

Joined: 14 Aug, 2008
Posts: 2

My issue was that the videos were not playing when I would test them in a firefox or safari browser. I have since found that i might have been having issues because i was working on our servers and using our secure site. I tried from an external internet connection and the videos did play under the secure site so that is not an issue anymore. Another issue i noticed is that that some of the options i wanted executed would work in internet explorer but not in firefox/safari. When i play the videos in internet explorer the menu's are removed and right click does not work, this is what i want. In firefox/safari the menus are gone for the quicktime file but not the Media player file. I will continue to play with some of the tags and see if I can remove the menus from showing up in firefox/safari. I appreciate your response and any help with this

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 09:24PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month