473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to display .mov files in VB.NET

Hi, the question explains my problem. How do you display a .mov video/audio file in a .net application using vb.net.

I have figured out how to display the video in asp.net with the following code

Code:
Expand|Select|Wrap|Line Numbers
  1. <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
  2.             codebase="http://www.apple.com/qtactivex/qtplugin.cab" 
  3.             style="height: 372px; width: 392px">
  4.             <param name="SRC" value="video.mov">
  5.             <param name="AUTOPLAY" value="true">
  6.             <param name="CONTROLLER" value="true">
  7.             <param name="LOOP" value="false">
  8.             <embed src="video.mov" width="160" height="180" autoplay="true"    controller="true" id="File" runat="server" 
  9.                 loop="false" pluginspage="http://www.apple.com/quicktime/download/">
  10.             </embed>
  11.  </object>
  12.  
/Code:

This works great, however i am collection the video files from a database and diaplaying them during certain conditions.

Therefore, I am using VB.NET as a code behind page. Either how do I change the file format to equal the correct file in VB.NET or is there somthing else i can use that will help me display a video/audio file via VB.NET

Thanks in advance

altaafhussein
Aug 14 '09 #1
4 5882
Frinavale
9,735 Expert Mod 8TB
Have you considered using Silverlight instead of an ActiveX to display your video.

Silverlight has a MediaElement that you can use to display videos. Apparently you can do some pretty cool stuff with a MediaElement in Silverlight.

I've never used it myself, and I'm not sure if it supports .MOV files, but I think it'd be worth checking out :)
Aug 14 '09 #2
Plater
7,872 Expert 4TB
I think if you give the embed tag an ID and say runat="server" in it. You can access its proeprty from the code file, where you should be able to set the src attribute to whatever filename you want
Aug 17 '09 #3
Hi thanks for your replies i tried adding runat="server" but the src attribute cannot be accessed by the code behind page. Instaed i cheated. I created a literal control and built but the html embed tag.

Thanks for your replies in trying to help me get this sorted
altaafhussein
Aug 18 '09 #4
Plater
7,872 Expert 4TB
Yeah you might have had to use like setAttribute(name, value) (or whatever its called)
Aug 18 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: hoke | last post by:
I want to display plain text files in the browser. The files contain html and javascript and have a .txt extension. This works fine with files with just html. Unfortunately when showing files with...
10
by: Mathias Mink | last post by:
hello ng, i need your help. how can i display ftp-content (files which lies on a ftp-server) on an asp-site? do there anybody have an idea, how can i solve this? at the moment we list the...
0
by: MikeY | last post by:
Hopefully someone can help, I have a listview box where I display my desired files. I single click on the desired file to be renamed and I rename it with a new name. My problem arises when the...
6
by: Sandman | last post by:
I'm having some problem here... I have a javascript I've downloaded that goes through all PNG files and enables the transparency channel in them for IE5.5+ by converting them to SPAN layers with...
3
by: jiayanxiang | last post by:
Is there any sample code to use Javascript to load and display a text file? It will be best if the user can select files using some kind of explorer. If that's complex, a text box to specify the...
1
by: nafogel | last post by:
Hi, I am kinda familiar with html, but i am having a problem. I am working on a menu system for a handheld gaming device (PSP). I want the menu to be able to display all files with a certain...
3
by: active | last post by:
I have a mainmenu menuitem that contains a Recently Used Files menuitem If at design time I include a menuitem in the Recently Used Files menuitem collection it will display OK If I...
1
by: dearprasan | last post by:
I have a custom browser application built in C#. I want to access the Internet Explorer's Cache to display contents on this custom browser application. For example: If the user types "www.msn.com"...
9
by: tomhawkins1 | last post by:
Hi I currently have a site where users can upload files. These files can be doc, wmv, jpeg, xls, dwf, dwf and dwg. These files are uploaded to /home/**user**/uploads and not /home/...
9
by: kkhan5000 | last post by:
Hello, I am new to PHP and have put together the following code just by copying other examples from the web. Now I am stuck and would like to sort and display files alphabetically, and also filter...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.