Quantcast
Viewing all articles
Browse latest Browse all 7205

Object type manual detection

This demo shows how to display or play back a file in a multimedia format (flash, audio, video) when the file's filename extension is not specified. In this case, you need to know the file’s MIME type and manually set the ASPxObjectContainer.ObjectType property to a corresponding value (Audio, Video, Flash, or Image).

 

In this example, you can see Flash loaded in ASPxObjectContainer. The flash file is placed in the server file system, but you can use any form of data distribution: files from a database, files from the file system, etc. In ASPxObjectContainer.ObjectUrl, you specify the Embed.emb URL with query parameters, which a custom EmbedHttpHandler will process and load a corresponding object (for example, ~/Embed.emb?flash=true will load a flash file).


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>