<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>فواصل &#187; درس،عمل،تصميم،اتش،تي،ام،ال،5،html5،فيديو،تصميم،دروس،برمجه</title>
	<atom:link href="http://portal.fwasl.com/tag/%d8%af%d8%b1%d8%b3%d8%8c%d8%b9%d9%85%d9%84%d8%8c%d8%aa%d8%b5%d9%85%d9%8a%d9%85%d8%8c%d8%a7%d8%aa%d8%b4%d8%8c%d8%aa%d9%8a%d8%8c%d8%a7%d9%85%d8%8c%d8%a7%d9%84%d8%8c5%d8%8chtml5%d8%8c%d9%81%d9%8a%d8%af/feed/" rel="self" type="application/rss+xml" />
	<link>http://portal.fwasl.com</link>
	<description></description>
	<lastBuildDate>Wed, 16 Oct 2019 18:49:35 +0000</lastBuildDate>
	<language>ar</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>درس عمل الفيديو الخاص بك بـ html5</title>
		<link>http://portal.fwasl.com/%d8%af%d8%b1%d8%b3-%d8%b9%d9%85%d9%84-%d8%a7%d9%84%d9%81%d9%8a%d8%af%d9%8a%d9%88-%d8%a7%d9%84%d8%ae%d8%a7%d8%b5-%d8%a8%d9%83-%d8%a8%d9%80-html5/</link>
		<comments>http://portal.fwasl.com/%d8%af%d8%b1%d8%b3-%d8%b9%d9%85%d9%84-%d8%a7%d9%84%d9%81%d9%8a%d8%af%d9%8a%d9%88-%d8%a7%d9%84%d8%ae%d8%a7%d8%b5-%d8%a8%d9%83-%d8%a8%d9%80-html5/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 00:40:52 +0000</pubDate>
		<dc:creator><![CDATA[مدهش]]></dc:creator>
				<category><![CDATA[html & css]]></category>
		<category><![CDATA[درس،عمل،تصميم،اتش،تي،ام،ال،5،html5،فيديو،تصميم،دروس،برمجه]]></category>

		<guid isPermaLink="false">http://www.portal.fwasl.com/?p=6870</guid>
		<description><![CDATA[سوف نتعلم اليوم كيفية عمل الفيديو بملامح html5 ولكي تستطيع أن ترى لوحة التحكم في التشغيل، فإنه من الضروري تعيين سمة الضوابط. [html] &#60;video src=&#34;trailer_480p.mp4&#34; width=&#34;480&#34; height=&#34;270&#34; poster=&#34;poster.gif&#34; controls /&#62; [/html] وطبعا تختلف من تبعا لإختلاف المتصفح API للتحكم في التشغيل HTML5 للفيديو تقدم واجهة جديدة هي DOM &#8212; HTMLVideoElement، الذي بدوره يرث من واجهة HTMLMediaElement. واجهة ...]]></description>
				<content:encoded><![CDATA[<p style="text-align: center;">سوف نتعلم اليوم كيفية عمل الفيديو بملامح html5 ولكي تستطيع أن ترى لوحة التحكم في التشغيل، فإنه من الضروري تعيين سمة الضوابط.</p>
[html]
&lt;video src=&quot;trailer_480p.mp4&quot; width=&quot;480&quot; height=&quot;270&quot; poster=&quot;poster.gif&quot; controls /&gt;</p>
[/html]
<p style="text-align: center;">وطبعا تختلف من تبعا لإختلاف المتصفح</p>
<h2 style="text-align: center;">API للتحكم في التشغيل</h2>
<div id="tts_button" style="text-align: center;"></div>
<p style="text-align: center;">HTML5 للفيديو تقدم واجهة جديدة هي DOM &#8212; HTMLVideoElement، الذي بدوره يرث من واجهة HTMLMediaElement.</p>
<h2 style="text-align: center;">واجهة HTMLMediaElement</h2>
<div style="text-align: center;">
<form id="gt-form" action="http://webdesign.portal.fwasl.com/wp-admin/post.php?post=638&amp;action=edit" method="get" name="text_form" target="">
<div id="gt-res-c">
<div dir="rtl">
<p>هذه هي واجهة مشتركة لعناصر الوسائط (الصوت والفيديو) الذي يصف الوصول إلى المزايا الأساسية للعمل مع مضمون وسائل الإعلام : السيطرة على مصدر المحتوى ، التحكم في التشغيل، وتغيير مستوى الصوت ومعالجة الأخطاء. الخصائص الرئيسية والأساليب التي سنحتاج :</p>
<p>SRC &#8212; الارتباط (URL) للعب محتوى<br />
مخزنة &#8212; قطع مخزنة من الفيديو</p>
<p><strong>التشغيل والتحكم</strong></p>
</div>
<div>
<ul dir="rtl">
<li>
<div>currentTime</div>
</li>
<li>
<div>المدة &#8211;</div>
</li>
<li>
<div>توقف &#8211;</div>
</li>
<li>
<div>انتهى &#8211;</div>
</li>
<li>
<div>كتم الصوت &#8211;</div>
</li>
<li>
<div>سعة</div>
</li>
<li>
<div>مسرحية ()</div>
</li>
<li>
<div>وقفة ()</div>
</li>
<li>
<div>أحداث<br />
oncanplay &#8212; يمكنك البدء في اللعب<br />
تغير الموقف من اللعب &#8212; ontimeupdate<br />
onplay &#8212; وسائل الاعلام</div>
</li>
<li>
<div>onpause &#8212; مؤقتا<br />
onended &#8212; هو أكثر من اللعبالمهم : أنه ليس كل الأساليب والخصائص التي يمكن تنفيذها مع واجهة HTMLMediaElement.</div>
</li>
</ul>
</div>
<h2>واجهة HTMLVideoElement</h2>
<p>الفيديو يختلف عن الصوت في عدة خصائص إضافية :<br />
وال</p>
<p>العرض والارتفاع &#8212; العرض والارتفاع من الحاوية لتشغيل الفيديو؛<br />
وvideoWidth videoHeight &#8212; العرض والارتفاع الداخلية للفيديو، إذا كنت لا تعرف أبعادها،</p>
<p>ملصق &#8212; ربط الصورة التي يمكن أن تظهر حتى الآن لا يتوفر الفيديو (​​عادة واحدة من الإطارات غير فارغة الأول).</p>
<p>الفرق بين العرض / الارتفاع وvideoWidth / videoHeight هو آخر واحد وخصائصها الخاصة من الفيديو ، وعلى وجه الخصوص ، نسبة الارتفاع وغيرها من الخصائص، في حين أن الحاويات لشريط الفيديو يمكن أن تكون ذات أي حجم (أكبر وأصغر ، من نسبة أخرى.)</p>
<h2>للتشغيل والتوقيف</h2>
[html]
&lt;div&gt;     &lt;video id=&quot;myvideo&quot; width=&quot;480&quot; height=&quot;270&quot; poster=&quot;poster.gif&quot; &gt;         &lt;source src=&quot;trailer_480p.mp4&quot; type=&#8217;video/mp4;codecs=&quot;avc1.42E01E, mp4a.40.2&quot;&#8217; /&gt;         &lt;source src=&quot;trailer_480p.webm&quot; type=&#8217;video/webm; codecs=&quot;vorbis,vp8&quot;&#8217;/&gt;     &lt;/video&gt; &lt;/div&gt; &lt;div id=&quot;controls&quot;&gt;     &lt;span id=&quot;playpause&quot; &gt;Play&lt;/span&gt; &lt;/div&gt;   #controls span {     display:inline-block; }   #playpause {     background:#eee;     color:#333;     padding:0 5px;     font-size:12pt;     text-transform:uppercase;     width:50px; }</p>
[/html]
<p>والأن يمكننا إضافه بعض أكواد الجافا سكريبت</p>
[html]
$(document).ready(function(){     var controls = {         video: $(&quot;#myvideo&quot;),         playpause: $(&quot;#playpause&quot;)     };       var video = controls.video[0];       controls.playpause.click(function(){         if (video.paused) {             video.play();             $(this).text(&quot;Pause&quot;);         } else {             video.pause();             $(this).text(&quot;Play&quot;);         }           $(this).toggleClass(&quot;paused&quot;);     }); });<br />
[/html]
</div>
</form>
</div>
<p style="text-align: center;">التشغيل مرة أخرى من البداية<br />
أولا ، نحن بحاجة الى التعامل بالشكل الملائم مع نهاية تشغيل الفيديو وعند هذه النقطة لتبديل الأزرار بحيث بدلا من الحاله «وقفة» مشيرا الى ان الحاله«التشغيل» :</p>
[html]
video.addEventListener(&quot;ended&quot;, function() {     video.pause();     controls.playpause.text(&quot;Play&quot;);     controls.playpause.toggleClass(&quot;paused&quot;); });<br />
[/html]
<h2 style="text-align: center;">قائمة المحتوي</h2>
<p style="text-align: center;">يمكن للمستخدم عموما إجراء تغييرات تجاوز الضوابط لدينا. وينبغي أيضا ذكر هذه النقطة وينبغي تطبيق التغييرات الضرورية لظهور الضوابط أيضا. هذا يكفي للاشتراك في onplay onpause والأحداث.</p>
[html]
video.addEventListener(&quot;play&quot;, function() {     controls.playpause.text(&quot;Pause&quot;);     controls.playpause.toggleClass(&quot;paused&quot;); });   video.addEventListener(&quot;pause&quot;, function() {     controls.playpause.text(&quot;Play&quot;);     controls.playpause.toggleClass(&quot;paused&quot;); });<br />
[/html]
<p style="text-align: center;">لدينا تغييرات كثيرة جدا في المظهر ، والأن نريد إنهاء الرجوع للنمط الأصلي عن طريق الشروط التاليه :</p>
[html]
var controls = {     &#8230;     togglePlayback: function() {         (video.paused) ? video.play() : video.pause();     }     &#8230; };   controls.playpause.click(function(){     controls.togglePlayback(); });<br />
[/html]
<h2 style="text-align: center;">نقر الفيديو</h2>
<p style="text-align: center;">بالتأكيد، كنت ترغب في التبديل بين التشغيل والتوقف عن طريق النقر على شريط الفيديو في حد ذاته، لذلك ستحتاج إلى إضافة بضعة سطور :</p>
[html]
23 controls.video.click(function() {     controls.togglePlayback(); });</p>
[/html]
<div style="text-align: center;">
<dl id="attachment_641">
<dt><a href="http://www.portal.fwasl.com/wp-content/uploads/113.png"><img class="alignnone size-thumbnail wp-image-6872" title="1" src="http://www.portal.fwasl.com/wp-content/uploads/113-150x150.png" alt="" width="150" height="150" /></a></dt>
</dl>
</div>
<div style="text-align: center;"></div>
<h2 style="text-align: center;">العرض</h2>
<p style="text-align: center;">. أولا نحن بحاجة إلى إضافة بعض البنود التي سيتم استخدامها لعرض الوضع الحالي وإدارة الوضع الحالي :</p>
[html]
&lt;span id=&quot;progress&quot;&gt;     &lt;span id=&quot;total&quot;&gt;         &lt;span id=&quot;buffered&quot;&gt;&lt;span id=&quot;current&quot;&gt;​&lt;/span&gt;&lt;/span&gt;     &lt;/span&gt; &lt;/span&gt; &lt;span id=&quot;time&quot;&gt;     &lt;span id=&quot;currenttime&quot;&gt;00:00&lt;/span&gt; /     &lt;span id=&quot;duration&quot;&gt;00:00&lt;/span&gt; &lt;/span&gt;</p>
[/html]
<p style="text-align: center;">وهذا هو الستايل المناسب</p>
[html]
#progress {     width:290px; }   #total {     width:100%;     background:#999; }   #buffered {     background:#ccc; }   #current {     background:#eee;     line-height:0;     height:10px; }   #time {     color:#999;     font-size:12pt; }<br />
[/html]
<h2 style="text-align: center;">الصوت</h2>
<p style="text-align: center;">أخيرا، دعونا نضيف لمسة علي شريط فيديو لدينا &#8212; القدرة على تمكين أو تعطيل الصوت.</p>
[html]
34567891011121314 &lt;span id=&quot;volume&quot;&gt;     &lt;svg id=&quot;dynamic&quot; version=&quot;1.0&quot; id=&quot;Layer_1&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; x=&quot;0px&quot; y=&quot;0px&quot;      width=&quot;16px&quot; height=&quot;16px&quot; viewBox=&quot;0 0 95.465 95.465&quot;&gt;         &lt;g &gt;             &lt;polygon points=&quot;39.323,20.517 22.705,37.134 0,37.134 0,62.865 22.705,62.865 39.323,79.486 &quot;/&gt;             &lt;path d=&quot;M52.287,77.218c14.751-15.316,14.751-39.116,0-54.436c-2.909-3.02-7.493,1.577-4.59,4.59                         c12.285,12.757,12.285,32.498,0,45.254C44.794,75.645,49.378,80.241,52.287,77.218L52.287,77.218z&quot;/&gt;             &lt;path d=&quot;M62.619,89.682c21.551-22.103,21.551-57.258,0-79.36c-2.927-3.001-7.515,1.592-4.592,4.59                         c19.08,19.57,19.08,50.608,0,70.179C55.104,88.089,59.692,92.683,62.619,89.682L62.619,89.682z&quot;/&gt;             &lt;path d=&quot;M75.48,99.025c26.646-27.192,26.646-70.855,0-98.051c-2.936-2.996-7.524,1.601-4.592,4.59                         c24.174,24.674,24.174,64.2,0,88.871C67.956,97.428,72.545,102.021,75.48,99.025L75.48,99.025z&quot;/&gt;         &lt;/g&gt;         &lt;/svg&gt; &lt;/span&gt;</p>
[/html]
<p style="text-align: center;">وهذا هو الستايل</p>
[html]
#dynamic {     fill:#333;     padding:0 5px; }   #dynamic.off {     fill:#ccc; }<br />
[/html]
<p style="text-align: center;">و لتغيير الحاله نحتاج الي اضافة mute :</p>
[html]
 controls.dynamic.click(function() {     var classes = this.getAttribute(&quot;class&quot;);       if (new RegExp(&#8216;\\boff\\b&#8217;).test(classes)) {         classes = classes.replace(&quot; off&quot;, &quot;&quot;);     } else {         classes = classes + &quot; off&quot;;     }       this.setAttribute(&quot;class&quot;, classes);       video.muted = !video.muted; });</p>
[/html]
<p><a href="http://www.portal.fwasl.com/wp-content/uploads/210.png"><img class="size-thumbnail wp-image-6871 aligncenter" title="2" src="http://www.portal.fwasl.com/wp-content/uploads/210-150x150.png" alt="" width="150" height="150" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://portal.fwasl.com/%d8%af%d8%b1%d8%b3-%d8%b9%d9%85%d9%84-%d8%a7%d9%84%d9%81%d9%8a%d8%af%d9%8a%d9%88-%d8%a7%d9%84%d8%ae%d8%a7%d8%b5-%d8%a8%d9%83-%d8%a8%d9%80-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
