navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Determining video format?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Determining video format?
Page: [1]
 
sentinel

 

Posts: 568
Joined: 5/4/2005
From: Chicago, Illinois
Status: offline

 
Determining video format? - 7/15/2007 12:56:19   
Hey all...

I have a page on a site that I want to determine the video format then display the appropriate viewer.

If a user chooses a video with an .FLV extension then I want a flash viewer to display. If a user chooses a .WMV file then I want windows media player to pop up.

My code so far:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>....:</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
</head>

<body>
<div id="mainContainer">
	<div id="header">
		  <img src="untitled-1.gif" width="1000" height="120">
		<h3> </h3>
	</div>
	<!--#include file="topnavi.asp" -->	<div id="topShadow">	</div>
	<div id="sidebar" style="left: 0px; top: 0px; height: 219px;">
		
		
	
		
	  <div class="box">
		Welcome, <%=Session(appName&"x_Firstname")%>
		<!--#include file="navigation.asp" -->		</div>
	</div>
    
	<div class="box">
      
     <!--#include file="_fpclass/fpdblib.inc"-->
<% if 0 then %>
<script type="text/javascript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</script>
<% end if %>
<%
fp_sQry="SELECT * FROM Videos where VideoID = ' " & request.querystring("VideoID") & " '"
fp_sDefault=""
fp_sNoRecords="No records returned."
fp_sDataConn="dja-passive"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=False
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes=""
fp_iDisplayCols=2
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<%varUpload = FP_FieldVal(fp_rs,"Upload")%>


<!--#include file="_fpclass/fpdbrgn2.inc"-->
     
<object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" width="720" height="540" id="mediaplayer1">
    <param name="FileName" value="uploads/<%=varUpload%>" />
    <param name="AutoStart" value="True" />
    <param name="ShowControls" value="True" />
    <param name="StatusBar" value="True" />
    <param name="Display" value="True" />
    <param name="AutoRewind" value="True" />

    <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" height="720" width="540" src="uploads/<%=varUpload%>" autostart="True" filename="uploads/<%=varUpload%>" showcontrols="True" statusbar="True" display="True" autorewind="True"></embed> 
  </object>

     
     
     
     
     
     
     
     
     </div>
    <div class="spacer"> 
    
    </div>
    <div class="box">
      </div>

	<div id="bottomShadow"> </div>
  	<div id="footer">
		<div class="box">
		<i>
		i><br />
		</div>
	</div>
</div>
</body>
</html>


Is there a proper way to do this?

Thanks

_____________________________

No matter where you go, there you are.
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Determining video format?
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts