Showing posts with label other. Show all posts
Showing posts with label other. Show all posts

Wednesday, May 9, 2012

[FLASH] Video Streaming แบบ flv -Scrubber กันเถอะ

Jun 18, '08 5:03 AM
สำหรับ ทุกคน
เริ่มต้นเขียนต้องการอะไรมั่ง
ฝั่ง Server ต้องมี
1. Web Server ได้ทั้ง IIS และ Apache แต่ทางผู้พัฒนาแนะนำ lighttpd ซึ่งไม่รู้คืออะไร ผมไม่เคยใช้ เอาเป็นว่าใช้ IIS 6.0 ก็ได้ละกัน
2. Flash Video Player ตอนนี้จะใช้ flv -Scrubber เพราะใช้ง่ายแต่ที่สำคัญฟรี ดาวน์โหลด ->>  Download latest version of FLV-Scrubber 3.0
3. ไฟล์ flv ซึ่งเป็น file ที่จะเอามาทำ streaming

เอาทั้ง 2 ไฟล์ไปไว้ที่เดียวกัน แล้วก็เขียน code html มาซักตัวทดสอบดูครับ

ส่วนของ Code  Html

<object id="FLVScrubber" width="450" height="253" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0">
    <param name="movie" value="FLVScrubber.swf"/>
    <param name="bgcolor" value="#000000"/>
    <!--<param name="allowScriptAccess" value="sameDomain"/> -->
    <param name="allowFullScreen" value="true"/>
    <param name="flashVars" value="file=TPBS.flv"/> 
    <embed src="FLVScrubber.swf" bgcolor="#000000" width="450" height="253" name="FLVScrubber" allowScriptAccess="sameDomain" allowFullScreen="true"flashVars="file=TPBS.flv" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"></object>
</body>
</html>

ในที่นี้ file flv ของผมชื่อ TPBS.flv ซึ่งเก็บอยู่ใน path เดียวกะ flash video player ครับ เวลาเรียกก็เรียกได้ตรง ๆ ถ้าทำสำเร็จก็จะขึ้นหน้าตาดังรูปข้างล่าง..จบ

ปล. ไม่ต้องไปกดปุ่มเล่น ให้มันเล่นเด้อ กดยังไงก็ไม่เล่นเพราะ cap เอารูปมาโชว์เฉย ๆ

Sunday, April 29, 2012

How to enable Hibernate in Windows XP

Hibernate option is not available by default in Windows XP. Follow this instructions to make Hibernate option available in your Turn Off Computer dialog.

Please note that in order to use Hibernate,  the S4 System State (Hibernation) must be supported by your computer's ACPI implementation, othewise you cannot do anything about it.

Go to Start → Settings → Control Panel. Make sure to open the Classic View, and open Power Options:

control-panel.jpg


When the Power Options Properties dialog appears, check if there is a tab labeled Hibernate. It should be the last one:
power-options.jpg


If you are not able to see the Hibernate tab, then Hibernation is probably not supported in your computer...

On the other hand, if you have a Hibernate tab, that's good news. Open the Hibernate tab and make sure to check the Enable Hibernation checkbox:
hibernate-tab.jpg


Click the Apply or OK button to make the changes take effect.

Now, the next time you want hibernate, in the Turn Off Computer dialog, press and hold down the Shift Key. The Stand By option will change to Hibernate whilst you hold the Shift Key pressed:
standby-hibernate.gif


With the Shift Key down click on Hibernate.