aboutsummaryrefslogtreecommitdiff
path: root/files/pt-pt/plugins/flash_to_html5/index.html
blob: 8a525f39ae1e8749a8c685b5446cd7d92dacdbdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
title: Guia de migração de Flash para HTML5
slug: Plugins/Flash_to_HTML5
tags:
  - Complementos
  - Flash
  - HTML5
  - Jogos
  - Plug-ins
  - Publicidade
  - Sockets
  - Video
  - anuncios
  - Área de transferência
translation_of: Plugins/Flash_to_HTML5
original_slug: Plugins/Flash_para_HTML5
---
<p class="summary">Este conjunto de artigos fornece informação sobre como migrar o conteúdo e a funcionalidade do Flash existente para HTML e JavaScript.</p>

<h2 id="Background">Background</h2>

<p>Flash became very popular in the late 1990s to early 2000s because it provided an effective way to create rich content on the web — such as animations, games, and video players. However, it has a number of issues; the Flash Player causes security and performance problems, and leads to bloated pages. In addition, the modern web platform has feature parity with Flash, so you no longer need to rely on plugins to implement rich content.</p>

<p>Browsers are working together to move carefully towards a plugin-free web (see our <a href="/en-US/docs/Plugins/Roadmap">Plugin Roadmap</a>), so developers should start migrating their Flash-based functionality to open web technologies as soon as possible.</p>

<div class="row topicpage-table">
<div class="section">
<h2 id="Vídeo">Vídeo</h2>

<p>All you need to know to move your video requirements over from Flash to HTML5 (see the <a href="/en-US/docs/Plugins/Flash_to_HTML5/Video">Flash video to HTML5 video</a> landing page also).</p>

<h3 dir="ltr" id="Planeamento">Planeamento</h3>

<dl>
 <dt><a href="/en-US/docs/Plugins/Flash_to_HTML5/Video/Planning">Planning your transition from Flash video to HTML5 video</a></dt>
 <dd>Transitioning from Flash to HTML5 can take several months and may require new skills and software. This guide shows you how to plan for that transition, and contains two main parts, <a href="/en-US/docs/Plugins/Flash_to_HTML5/Video/Planning#Auditing_What_You_Have">Content audit</a> and <a href="/en-US/docs/Plugins/Flash_to_HTML5/Video/Planning#Decision_Points">Decision points</a>.</dd>
</dl>

<h3 id="Processo">Processo</h3>

<dl>
 <dt><a href="/en-US/docs/Plugins/Flash_to_HTML5/Video/Converting_File_Formats">File format conversion</a></dt>
 <dd>Once you've planned out what you want to do, the first step is to convert your video files into formats compatible with HTML embedding.</dd>
 <dt><a href="/en-US/docs/Plugins/Flash_to_HTML5/Video/DRM_and_authentication">DRM and authentication</a></dt>
 <dd>If your media requires authentication/rights to access, you'll need to work out how to hook up the necessary DRM and authentication mechanisms.</dd>
 <dt><a href="/en-US/docs/Plugins/Flash_to_HTML5/Video/Advertising">Video advertising</a></dt>
 <dd>You may also want to incorporate advertising into your video delivery system, via an ad network.</dd>
 <dt><a href="/en-US/docs/Plugins/Flash_to_HTML5/Video/Distribution">Distribution</a></dt>
 <dd>A CDN is a popular choice for effective delivery of media content.</dd>
 <dt><a href="/en-US/docs/Plugins/Flash_to_HTML5/Video/Players">Video and audio players</a></dt>
 <dd>There are a number of ways to play back web media depending on the scale of your needs and whether you need ad integration and digital rights management.</dd>
 <dt><a href="/en-US/docs/Plugins/Flash_to_HTML5/Video/Subtitles_captions">Subtitles and captions</a></dt>
 <dd>Just as audio and video may need transcoding for the web, subtitles and captions may also need to be converted and made available.</dd>
</dl>
</div>

<div class="section">
<h2 id="Outros_tópicos">Outros tópicos</h2>

<p>Other common Flash use cases that should now be migrated to HTML5.</p>

<dl>
 <dt><a href="/en-US/docs/Games">Open web games</a></dt>
 <dd>Flash games used to be very common, but the open web is now a viable platform for creating and distibuting games.</dd>
 <dt><a href="/en-US/docs/Web/API/WebSockets_API">Real-time apps with WebSockets</a></dt>
 <dd>Flash TCP sockets have been commonly used to create real-time multiuser apps such as chat apps, but they can be replaced with WebSockets.</dd>
 <dt><a href="/en-US/docs/Plugins/Flash_to_HTML5/Clipboard">Clipboard access</a></dt>
 <dd>Flash's clipboard API used to be the only available means for creating advanced clipboard functionality, but this is now available in web standards.</dd>
 <dt><a href="/en-US/docs/Web/API/Intersection_Observer_API">Content and advertising visibility with Intersection Observer</a></dt>
 <dd>Flash used to be a simple but slow way to detect content and advertising visibility on the page. The web platfom now has the Intersection Observer API to do this better and faster.</dd>
 <dt><a href="/en-US/docs/Learn/CSS/CSS_layout">Flexible user interfaces with CSS</a></dt>
 <dd>Adobe Flex used to provide a way to effectively create flexible user interfaces on the web, but the open web platform now boasts powerful CSS layout systems like Grid and Flexbox to close the gap.</dd>
 <dt><a href="/en-US/docs/Web/API/WebRTC_API">Camera/Microphone access with WebRTC</a></dt>
 <dd>Developers used to rely exclusively on Flash for accessing the user's camera and microphone, but this can now be achieved with WebRTC and related technologies. See also <a href="/en-US/docs/Web/API/Media_Streams_API">Media Capture and Streams API</a> and <a href="/en-US/docs/Web/API/MediaDevices/getUserMedia">getUserMedia</a> for useful starting points.</dd>
 <dt><a href="https://developer.mozilla.org/en-US/docs/Web/API/File">File selection using the File API</a></dt>
 <dd>The web platform has functionality accessing files on the user's file system, e.g. for upload or display. See <a href="/en-US/docs/Web/HTML/Element/input/file">&lt;input type="file"&gt;</a> and <a href="/en-US/docs/Using_files_from_web_applications">Using files from web applications</a> for useful resources.</dd>
</dl>
</div>
</div>

<h2 id="Obter_ajuda">Obter ajuda</h2>

<p>If you find that our migration guide leaves you with any questions unanswered, please don't hesitate to visit our <a href="https://discourse.mozilla-community.org/c/mdn">MDN Discourse page</a> and ask them there.</p>