<?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>Funcoder Technology Blog &#187; Coding for Fun</title>
	<atom:link href="http://www.funcoder.com/tag/coding-for-fun/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.funcoder.com</link>
	<description>A UK Based Developer, Living and Breathing Technology</description>
	<lastBuildDate>Thu, 12 Aug 2010 08:04:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Montpellier Webcam Project</title>
		<link>http://www.funcoder.com/montpellier-webcam-project/</link>
		<comments>http://www.funcoder.com/montpellier-webcam-project/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 09:01:50 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[WinDev]]></category>
		<category><![CDATA[Coding for Fun]]></category>
		<category><![CDATA[Montpellier]]></category>
		<category><![CDATA[Webcam]]></category>

		<guid isPermaLink="false">http://www.funcoder.com/2009/01/29/montpellier-webcam-project/</guid>
		<description><![CDATA[As you WINDEV folks may know the lovely people at PC Soft have their offices based in Montpellier, France. Wouldn’t it be fun to see Montpellier while you are coding away in your favourite IDE? I did a bit of hacking this morning after finding a good quality webcam in the centre of Montpellier. Click [...]]]></description>
			<content:encoded><![CDATA[<blockquote style="margin-right: 0px" dir="ltr"><p>As you WINDEV folks may know the lovely people at PC Soft have their offices based in Montpellier, France.</p>
<p>Wouldn’t it be fun to see Montpellier while you are coding away in your favourite IDE?</p>
<p>I did a bit of hacking this morning after finding a good quality webcam in the centre of Montpellier. <a href="http://www.montpellier.fr/150-voir-montpellier-en-direct-grace-aux-webcams.htm" target="_blank">Click here</a> to view the website.</p>
<p>The webcam is Flash based and I wanted to create a little app where I can view the webcam and maybe in future include some other bits of information like news from the <a href="http://www.pcsoft.fr/" target="_blank">PC Soft website</a>.</p>
<p>So the first thing to do is dig into the HTML code. Looking at the page code I can spot the embedded flash object as it starts with:</p>
<pre class="csharpcode">&lt;<span class="kwrd">object</span> type=<span class="str">&quot;application/x-shockwave-flash&quot;</span></pre>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<p>The WINVDEV application is a very simple window with an ActiveX component.</p>
<p align="center"><a href="http://www.funcoder.com/wp-content/uploads/2009/01/image9.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.funcoder.com/wp-content/uploads/2009/01/image-thumb9.png" width="384" height="315" /></a> </p>
<p>You will need to configure the ActiveX component and select the <strong>Shockwave Flash Object</strong> as the host.</p>
<p><a href="http://www.funcoder.com/wp-content/uploads/2009/01/image10.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.funcoder.com/wp-content/uploads/2009/01/image-thumb10.png" width="423" height="130" /></a> </p>
<p>Finally all you have to add is a bit of code to tell the ActiveX where the movie is, which be the flash file ending in <strong>.swf</strong>.</p>
<p>Usually this is enough to show the video but the website does something slightly different. It uses the <strong>FlashVars</strong> paramter to pass information about what to play.</p>
<p>So here’s the code which you can add to a button or the Window initialisation:</p>
<p><font color="#009797">AX_ActiveX1</font>&gt;&gt;<font color="#009797">Movie</font> =<font color="#800000"> “</font><a href="http://java.viewsurf.com/manager/Player.swf"><font color="#800000">http://java.viewsurf.com/manager/Player.swf</font></a><font color="#800000">”<br />
      <br /></font><font color="#800000"><font color="#009797">AX_ActiveX1</font><font color="#000000">&gt;&gt;</font><font color="#009797">FlashVars</font> = &quot;playlist=%3Cplaylist%3E%3Citem type=&#8217;video&#8217; source=&#8217;%2Fmontpellier%2Ffilm1_HQ%2F%2Flast&#8217;%2F%3E%3C%2Fplaylist%3E&quot;</p>
<p><font color="#009797">AX_ActiveX1</font><font color="#000000">&gt;&gt;</font><font color="#009797">Play</font></font></p>
<p><font color="#800000"><font color="#000000">Hey presto:</font></font></p>
<p><a href="http://www.funcoder.com/wp-content/uploads/2009/01/image11.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.funcoder.com/wp-content/uploads/2009/01/image-thumb11.png" width="437" height="363" /></a>&#160;<font color="#800000"></font></p>
<p><font color="#800000"><font color="#000000">Have fun with this….</font></font></p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.funcoder.com/montpellier-webcam-project/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
