473,667 Members | 2,568 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to display .mov files in VB.NET

9 New Member
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 5903
Frinavale
9,735 Recognized Expert Moderator Expert
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 Recognized Expert Expert
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
altaafhussein
9 New Member
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 Recognized Expert Expert
Yeah you might have had to use like setAttribute(na me, 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
4123
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 javascript, I get an "error on page" warning and the page is not displayed. I suppose that when Internet Explorer discovers a <script> tag he starts to interpret it. This is not what I want. After all Internet Explorer is a browser and not an...
10
1841
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 files per webfolder in our web. i use for handling the filesystemobject. my environment:
0
1968
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 new name gets displayed through refreshing of my loop and display function. The problem is that when, if I rename the last file entry, everything appears to display fine. If I rename a file above the last entry (bottom entry), two of the new file...
6
6195
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 the image as background. This works great until I put one of these PNG files inside a display:none block and later sets the block to display:block - then the SPAN (that was the PNG <img>) remains hidden.
3
3888
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 file name will be fine as well. Once a text file is selected, I just need to display it in a text box. Thanks for the help.
1
1623
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 extention (.swf to be precise) from a specific folder. The menu system I am working on allows users to easily access their flash games (.swf) stored on their psp. In previous releases the user had to manually edit the html to get the menu to link...
3
1382
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 programmatically add more menuitems to the Recently Used Files menuitem they show ok However, if I clear the Recently Used Files menuitem collection and then add more menuitems they do not display. What is weird is that even though they do not display the...
1
2135
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" in my custom browser, I look into the local cache folder for "www.msn.com" and display its contents. A not-so-good idea to achieve this is to iterate through the 'Temporary Internet Files' folder contents, one by one, until I find the correct...
9
2069
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/ **user**/public_html/uploads to prevent any old user from browsing them. I then use a general showDoc page with the following function (from
9
4317
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 what file type to display or not display. Thank you for your help. -kkhan5000 <?php /* ABOUT: This snippet will list all the files in the directory of your
0
8457
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8883
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8788
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8563
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8646
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7390
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4200
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1778
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.