Html production simple framework webpage 2: implement the operation steps and source file download of your audio and video station (you can play the video playback code of mp4, avi, mpg, asx, and swf files ),
The new video playback function is as follows:
The left.html code of the left-side webpage is as follows:
A definition list
Playing videos in right6.html
SWF files cannot access local resources. Only SWF files in the file system and trusted local SWF files can access local resources. [reprint]
Article category: Flash ProgrammingError message: securityerror: Error #2148:
Error message: securityerror: Error #2148: SWF file D:/demo/test/index.swf cannot access local resources D:/demo/test/bin-Debug/textlayout_4.0.0.10485.swf. Only the SWF files of the file system and trusted local SWF files can acce
problem affects all FLV files placed on Windows 2003 servers, including those made with earlier versions of the Flash authoring tool (Macromedia Flash video kits for Dreamweaver MX 2004). If you test these files on a different operating system, the files work correctly.
For information about configuring Microsoft
Visual c ++ for Flash Animation playback
Langgrui, Qingdao branch of Electronic 22nd Research Institute, Ministry of Information Industry
Abstract: By embedding an external SWF file in VC as an internal resource of VC, this article enables it to dynamically release resources to temporary files during program running, in this way, VC can play the Flash animation.
ArticleDirectory
Description
Complete example
Related Topics
Important APIs
Mediaelement
Fileopenpicker
Openasync
Step 1:
In Windows App Store applications that use C ++, C #, or Visual BasicMediaelement Class for audio and video playback.SourceAttribute specifies the media file to be played. It can be files and applications on the network.ProgramAttached
program running, you need to delete it before exiting the program. It is generally implemented through the deletefile () function in the response function of message wm_destory.
Summary
In this paper, the dynamic release of chtmlview and embedded resources is used to play the Flash Animation in the VC program, and the dynamic release of resources is clearly described. By using a similar method, program modules such as dynamic link library and HTML
Embedded media player on the webpage is simple. You can complete a simple player with the following code:
HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > Xmlns = Http://www.w3.org/1999/xhtml" > Content = "Text/html; charset = UTF-8" HTTP-equiv = "Content-Type" /> Audio Player Height = "200" Type = "Video/X-MS-WMV" Width = "200" > Name = "FILENAME" Value = "C: \ Users \ skyd \ music \ Groov
(LPWAVEHDR); GlobalFree (HWAVEHDR);If successful you can go into the loop and play until you know the data is playing, as follows while(Waveoutunprepareheader (hwaveout) hwaveout, LPWAVEHDR,sizeof(WAVEHDR))! =mmsyserr_noerror) { //Loop Clear Buffer If successful means playback is complete//Loop The following statement if it has not finished playing if(bexit) Break;//let loops also respond to messagesMSG message; if(::
For many users, SWF files are generally used to play on the Web page, generally we are in the Win7 32-bit pure version is rarely used in the SWF file to play, but we downloaded on the Internet is generally the SWF format, then in
delete the scripts. In order to play, it must provide these map data. Of course, it can pick up the map data from the data cached in the Temp folder and provide it to the SWF to activate the game.3. Place the SWF or variable on the serverThis is the second technology extension, extension, the technology has been widely used. The original game (
[Overview]Sometimes the video file cannot be played normally.[Method or answer]Some files require additional multimedia digital signal codecs, such as AVI, ASF, and DivX files, which may not play normally.If an error message is displayed in Windows Media Player, or you can only hear the sound and cannot see the screen,
);}}}So we know how to do swf file playback, very simple.Then, we'll use the macro to turn the project into HTML5. But when you're done with your browser , you'll see nothing , because your SWF hasn't turned into a usable HTML file , which we use with Layabox softwareThen copy all the files and folders under the output directory to the HTML5 directory and open it
;Errorcode: Provides the code value related to this type of error;Errordescription: Provide the error description;Errorcorrection: Specifies the media player to correct errors of this type;Play CDMedia players regard CD as a single audio stream (marked at the beginning of each audio track. To use CD in a webpage, you must set the filename attribute to cdaudi with a colon as follows:CLASSID = "CLSID: 22d6f312-b0f6-11d0-94ab-0080c74c7e95"WIDTH = "320"HE
Development of the customer site encountered a demand, customer requests backstage upload PDF file, front desk can be in the form of book direct access.The first thought is the use of JS solution, the user access to the front-end page, PHP will file path to JS, so that JS presents the effect of the book. Baidu on the Internet a circle also did not find ready-made plug-ins.As a result of the flash done by someone, it is necessary to convert the PDF file uploaded by the client into a
share bitmap resources and reduce memory overhead. However, you need to manually specify which displayobjects need to share bitmapdata. In this case, if the same SWF file is loaded twice, flash will not automatically share the bitmap resources for us.
Memory usage after loading a SWF file containing a desktop wallpaper image multiple times
After all, Adobe believes that most of the art resources used in
Several Popular encryption methods:The first is to use "SWF encrypt" or doswf Software Encryption. I personally think that SWF encrypt encryption is not very good, not because it is not powerful enough algorithms or something, but the hacker and other cracking software will specifically crack its encryption algorithm. This will cause your soon-encrypted SWF to be
Tags: play AC read bin Lin soft new. com videoLook at the SWF file on Linux, originally want to use Gnash to see, but some computer see only sound, no imageSo use the page to view, recommend GoogleWe are in the same directory as the Flash file to create a new file named: index.htmlNote: The name can be arbitrary, but the suffix must be HTML page fileUsing Gedit to open the file, copy the following HTML tag:
Statement:Several methods are derived from the network, I only responsible for the summary of a sudden, because from the multi-reprint, also can not find the original source, need to be free to collect, make the most use, good ^_^For a similar error message:Securityerror:error #2148: SWF file file:///F:/work2010/tiger/rmpublisher.air/bin-debug/index.swf cannot access local resources file:///F:/ Work2010/tiger/rmpublisher.air/bin-debug/plugins/plugins.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.