<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.1" -->
<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/"
	>

<channel>
	<title>mobvcasting</title>
	<link>http://www.mobvcasting.com/wp</link>
	<description>Mobile Video (and other media) Casting</description>
	<pubDate>Mon, 10 Nov 2008 15:31:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1</generator>
	<language>en</language>
			<item>
		<title>Waiting</title>
		<link>http://www.mobvcasting.com/wp/?p=464</link>
		<comments>http://www.mobvcasting.com/wp/?p=464#comments</comments>
		<pubDate>Mon, 10 Nov 2008 15:31:02 +0000</pubDate>
		<dc:creator>vcast</dc:creator>
		
		<category><![CDATA[VCast]]></category>

		<guid isPermaLink="false">http://www.mobvcasting.com/wp/?p=464</guid>
		<description><![CDATA[\n\n
]]></description>
			<content:encoded><![CDATA[<p>\n<a><img /></a>\n</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mobvcasting.com/wp/?feed=rss2&amp;p=464</wfw:commentRss>
		</item>
		<item>
		<title>Britney</title>
		<link>http://www.mobvcasting.com/wp/?p=463</link>
		<comments>http://www.mobvcasting.com/wp/?p=463#comments</comments>
		<pubDate>Fri, 11 Jul 2008 17:46:03 +0000</pubDate>
		<dc:creator>vcast</dc:creator>
		
		<category><![CDATA[VCast]]></category>

		<guid isPermaLink="false">http://www.mobvcasting.com/wp/?p=463</guid>
		<description><![CDATA[\n\n
]]></description>
			<content:encoded><![CDATA[<p>\n<a><img /></a>\n</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mobvcasting.com/wp/?feed=rss2&amp;p=463</wfw:commentRss>
		</item>
		<item>
		<title>Sad  Ben and Jerry\&#8217;s always closed</title>
		<link>http://www.mobvcasting.com/wp/?p=462</link>
		<comments>http://www.mobvcasting.com/wp/?p=462#comments</comments>
		<pubDate>Sat, 28 Jun 2008 21:31:02 +0000</pubDate>
		<dc:creator>vcast</dc:creator>
		
		<category><![CDATA[VCast]]></category>

		<guid isPermaLink="false">http://www.mobvcasting.com/wp/?p=462</guid>
		<description><![CDATA[I fear the worst \n\n
]]></description>
			<content:encoded><![CDATA[<p>I fear the worst \n<a><img /></a>\n</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mobvcasting.com/wp/?feed=rss2&amp;p=462</wfw:commentRss>
		</item>
		<item>
		<title>Multimedia message</title>
		<link>http://www.mobvcasting.com/wp/?p=461</link>
		<comments>http://www.mobvcasting.com/wp/?p=461#comments</comments>
		<pubDate>Tue, 20 May 2008 03:46:03 +0000</pubDate>
		<dc:creator>vcast</dc:creator>
		
		<category><![CDATA[VCast]]></category>

		<guid isPermaLink="false">http://www.mobvcasting.com/wp/?p=461</guid>
		<description><![CDATA[\n
















]]></description>
			<content:encoded><![CDATA[<p>\n
<script type="text/javascript">
<!--
var ourTags='';
ourTags+='<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="320" HEIGHT="257" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">';
ourTags+='<PARAM name="HREF" VALUE="http://www.mobvcasting.com/a/attachment_1211255163_26.3gp" />';
ourTags+='<PARAM name="SRC" VALUE="http://mobvcasting.com/a/reference.mov" />';
ourTags+='<PARAM name="TARGET" VALUE="myself" />';
ourTags+='<PARAM name="CONTROLLER" VALUE="false" />';
ourTags+='<PARAM name="AUTOPLAY" VALUE="false" />';
ourTags+='<PARAM name="SCALE" VALUE="ASPECT" />';
ourTags+='<EMBED ';
ourTags+='SRC="http://mobvcasting.com/a/reference.mov" HREF="http://www.mobvcasting.com/a/attachment_1211255163_26.3gp" TARGET="myself" CONTROLLER="false"';
ourTags+=' type="video/quicktime" WIDTH="320" HEIGHT="257" AUTOPLAY="false" SCALE="ASPECT" PLUGINSPAGE="http://www.apple.com/quicktime/download/"></EMBED>';
ourTags+='</OBJECT>';
if (typeof writeTags == "undefined") { document.write(ourTags);} else {writeTags(ourTags);
}//-->
</script>
<noscript>
<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="320" HEIGHT="257" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<PARAM name="HREF" VALUE="http://www.mobvcasting.com/a/attachment_1211255163_26.3gp" />
<PARAM name="SRC" VALUE="http://mobvcasting.com/a/reference.mov" />
<PARAM name="TARGET" VALUE="myself" />
<PARAM name="CONTROLLER" VALUE="false" />
<PARAM name="AUTOPLAY" VALUE="false" />
<PARAM name="SCALE" VALUE="ASPECT" />
<EMBED 
SRC="http://mobvcasting.com/a/reference.mov" HREF="http://www.mobvcasting.com/a/attachment_1211255163_26.3gp" TARGET="myself" CONTROLLER="false"
 type="video/quicktime" WIDTH="320" HEIGHT="257" AUTOPLAY="false" SCALE="ASPECT" PLUGINSPAGE="http://www.apple.com/quicktime/download/"></EMBED>
</OBJECT>

</noscript>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mobvcasting.com/wp/?feed=rss2&amp;p=461</wfw:commentRss>
<enclosure url='http://www.mobvcasting.com/a/attachment_1211255163_26.3gp' length='288243' type='video/3gpp'/>
<enclosure url='http://mobvcasting.com/a/reference.mov' length='35968' type='video/quicktime'/>
		</item>
		<item>
		<title>MPhotoCapture</title>
		<link>http://www.mobvcasting.com/wp/?p=460</link>
		<comments>http://www.mobvcasting.com/wp/?p=460#comments</comments>
		<pubDate>Fri, 18 Apr 2008 03:19:22 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
		<category><![CDATA[Mobile Processing Libraries]]></category>

		<guid isPermaLink="false">http://www.mobvcasting.com/wp/?p=460</guid>
		<description><![CDATA[Hi Folks,
I put together yet another library for mobile processing.  This time for photo capture.
You can download it here.
Example coming soon..
Here is an example:


]]></description>
			<content:encoded><![CDATA[<p>Hi Folks,</p>
<p>I put together yet another library for mobile processing.  This time for photo capture.</p>
<p>You can download it <a href="http://www.walking-productions.com/mphotocapture/mphotocapture.zip">here</a>.</p>
<p><strong>Example coming soon..</strong></p>
<p>Here is an example:<br />
<code></p>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mobvcasting.com/wp/?feed=rss2&amp;p=460</wfw:commentRss>
		</item>
		<item>
		<title>MSoundCapture and MSoundPlayback</title>
		<link>http://www.mobvcasting.com/wp/?p=459</link>
		<comments>http://www.mobvcasting.com/wp/?p=459#comments</comments>
		<pubDate>Thu, 27 Mar 2008 00:02:45 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
		<category><![CDATA[Mobile Processing Libraries]]></category>

		<guid isPermaLink="false">http://www.mobvcasting.com/wp/?p=459</guid>
		<description><![CDATA[Some of my students (and myself) were having trouble with the Mary Jane Soft MSound library so I put together very quick and dirty style libraries: MSoundCapture and MSoundPlayback 
Download them: MSoundCapture, MSoundPlayback
Here is some example code:

import processing.core.*;
import com.mobvcasting.msoundcapture.*;
import com.mobvcasting.msoundplayback.*;
public class MSoundCaptureTest extends PMIDlet
{
	MSoundPlayback sndplay;
	MSoundCapture sndcap;
	byte[] soundData;
	String mimeType;
	String captureKey = "Capture";
	String stopCaptureKey = "Stop Capture";
	String [...]]]></description>
			<content:encoded><![CDATA[<p>Some of my students (and myself) were having trouble with the <a href="http://mjs.darkgreenmedia.com/site/?service=Sections&#038;task=showSection&#038;sectionID=3&#038;contentID=25">Mary Jane Soft MSound library</a> so I put together very quick and dirty style libraries: MSoundCapture and MSoundPlayback </p>
<p>Download them: <a href="http://www.walking-productions.com/msoundcapture/msoundcapture.zip">MSoundCapture</a>, <a href="http://www.walking-productions.com/msoundplayback/msoundplayback.zip">MSoundPlayback</a></p>
<p>Here is some example code:<br />
<code><br />
import processing.core.*;<br />
import com.mobvcasting.msoundcapture.*;<br />
import com.mobvcasting.msoundplayback.*;</p>
<p>public class MSoundCaptureTest extends PMIDlet<br />
{<br />
	MSoundPlayback sndplay;<br />
	MSoundCapture sndcap;<br />
	byte[] soundData;</p>
<p>	String mimeType;</p>
<p>	String captureKey = "Capture";<br />
	String stopCaptureKey = "Stop Capture";<br />
	String playKey = "Play Sound";</p>
<p>	public void setup()<br />
	{<br />
		softkey(captureKey);</p>
<p>		sndcap = new MSoundCapture((PMIDlet)this);<br />
	}</p>
<p>	public void draw()<br />
	{<br />
	}</p>
<p>	public void softkeyPressed(String label)<br />
	{<br />
		if (label.equals(captureKey))<br />
		{<br />
			sndcap.startCapture();<br />
			softkey(stopCaptureKey);<br />
		}<br />
		else if (label.equals(stopCaptureKey))<br />
		{<br />
			mimeType = sndcap.getCapturedType();<br />
			sndcap.stopCapture();<br />
		}<br />
		else if (label.equals(playKey))<br />
		{<br />
			sndplay = new MSoundPlayback(this,soundData,mimeType);<br />
			sndplay.playSound();<br />
		}<br />
		redraw();<br />
	}</p>
<p>	public void libraryEvent(Object library, int event, Object data)<br />
	{<br />
		if (library.getClass().isInstance(sndcap) &#038;&#038; event ==<br />
MSoundCapture.CAPTURE_COMPLETE)<br />
		{<br />
			soundData = (byte[])data;<br />
			mimeType = sndcap.getCapturedType();<br />
			softkey(playKey);<br />
			redraw();<br />
		}<br />
	}<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mobvcasting.com/wp/?feed=rss2&amp;p=459</wfw:commentRss>
		</item>
		<item>
		<title>MMMSMessaging Library</title>
		<link>http://www.mobvcasting.com/wp/?p=458</link>
		<comments>http://www.mobvcasting.com/wp/?p=458#comments</comments>
		<pubDate>Thu, 06 Mar 2008 05:07:28 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
		<category><![CDATA[Mobile Processing Libraries]]></category>

		<guid isPermaLink="false">http://www.mobvcasting.com/wp/?p=458</guid>
		<description><![CDATA[In my ongoing series of libraries for Mobile Processing, I put together a library for sending MMS Messages.  You can download the library and the source.
Here is a quick example using it (this example also uses my MVideoCapture library):

import processing.core.*;
import com.mobvcasting.mmmsmessaging.*;
import com.mobvcasting.mvideocapture.*;
public class MMMSMessagingTest extends PMIDlet
{
	MMMSMessaging mms;
	MVideoCapture vidcap;
	String captureKey = "Capture Video";
	String stopKey = [...]]]></description>
			<content:encoded><![CDATA[<p>In my ongoing series of libraries for <a href="http://mobile.processing.org/">Mobile Processing</a>, I put together a library for sending MMS Messages.  You can download the <a href="http://www.walking-productions.com/mmmsmessaging/mmmsmessaging.zip">library</a> and the <a href="http://www.walking-productions.com/mmmsmessaging/mmmsmessaging_src.zip">source</a>.</p>
<p>Here is a quick example using it (this example also uses my <a href="http://www.mobvcasting.com/wp/?p=455">MVideoCapture library</a>):<br />
<code><br />
import processing.core.*;</p>
<p>import com.mobvcasting.mmmsmessaging.*;<br />
import com.mobvcasting.mvideocapture.*;</p>
<p>public class MMMSMessagingTest extends PMIDlet<br />
{<br />
	MMMSMessaging mms;</p>
<p>	MVideoCapture vidcap;</p>
<p>	String captureKey = "Capture Video";<br />
	String stopKey = "Stop Capture";<br />
	String sendMessageKey = "Send Message";<br />
	String statusMessage = "";</p>
<p>	byte[] outputArray;</p>
<p>	//public static int MAX_MESSAGE_SIZE = 307200;<br />
	public static int MAX_MESSAGE_SIZE = 305000;</p>
<p>	public void setup()<br />
	{<br />
		mms = new MMMSMessaging(this);<br />
		vidcap = new MVideoCapture(this);</p>
<p>	    softkey(captureKey);</p>
<p>		noLoop();<br />
	}</p>
<p>	public void draw()<br />
	{<br />
		background(255);<br />
	}</p>
<p>	public void softkeyPressed(String label)<br />
	{<br />
		if (label.equals(sendMessageKey))<br />
		{<br />
			if (outputArray.length < MAX_MESSAGE_SIZE)<br />
			{<br />
				mms.sendMMS("youremailorphonenumber","subject","body",outputArray,"video/3gpp","avideo.3gp");<br />
			}<br />
			else<br />
			{<br />
				// Too big, divide up<br />
				int numSegments = (int)Math.ceil((double)((double)outputArray.length/(double)MAX_MESSAGE_SIZE));<br />
				for (int i = 0; i < numSegments; i++)<br />
				{<br />
					byte[] newOutputArray;</p>
<p>					if (i < numSegments - 1)<br />
					{<br />
						newOutputArray = new byte[MAX_MESSAGE_SIZE];<br />
						System.arraycopy(outputArray, i*MAX_MESSAGE_SIZE, newOutputArray, 0, MAX_MESSAGE_SIZE);<br />
					}<br />
					else<br />
					{<br />
						newOutputArray = new byte[outputArray.length - i*MAX_MESSAGE_SIZE];<br />
						System.arraycopy(outputArray, i*MAX_MESSAGE_SIZE, newOutputArray, 0, newOutputArray.length);<br />
					}<br />
					mms.sendMMS("youremailorphonenumber","subject part " + (i+1) + " of " + numSegments,"body",newOutputArray,"video/3gpp","avideo_part_" + i + ".3gp");<br />
				}<br />
			}<br />
		}<br />
		else if (label.equals(captureKey))<br />
		{<br />
			softkey(stopKey);<br />
			vidcap.showCamera();<br />
			vidcap.startCapture();<br />
		}<br />
        else if (label.equals(stopKey))<br />
        {<br />
        	softkey(sendMessageKey);<br />
        	vidcap.stopCapture();<br />
        	vidcap.hideCamera();<br />
        	outputArray = vidcap.getCapturedVideo();<br />
        }<br />
	}<br />
}<br />
</code></p>
<p>You can find more examples and a discussion on using this library from my course <a href="http://itp.nyu.edu/~sve204/mobilemedia/week7.html">Mobile Media Week 7 notes</a><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mobvcasting.com/wp/?feed=rss2&amp;p=458</wfw:commentRss>
		</item>
		<item>
		<title>MHTTPFilePoster Library</title>
		<link>http://www.mobvcasting.com/wp/?p=457</link>
		<comments>http://www.mobvcasting.com/wp/?p=457#comments</comments>
		<pubDate>Thu, 06 Mar 2008 04:28:07 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
		<category><![CDATA[Mobile Processing Libraries]]></category>

		<guid isPermaLink="false">http://www.mobvcasting.com/wp/?p=457</guid>
		<description><![CDATA[Along with my MVideoCapture and MVideoPlayback libraries, I needed to develop a means to post those files to the web through standard HTTP.  For this reason, I put together this library.
You can download the library and source.
Here is an example which also uses the MVideoCapture library:

import processing.core.*;
import com.mobvcasting.mhttpfileposter.*;
import com.mobvcasting.mvideocapture.*;
public class MHTTPFilePosterTest extends PMIDlet
{
	MVideoCapture vidcap;
	MHTTPFilePoster [...]]]></description>
			<content:encoded><![CDATA[<p>Along with my <a href="http://www.mobvcasting.com/wp/?p=455">MVideoCapture</a> and <a href="http://www.mobvcasting.com/wp/?p=456">MVideoPlayback</a> libraries, I needed to develop a means to post those files to the web through standard HTTP.  For this reason, I put together this library.</p>
<p>You can download the <a href="http://www.walking-productions.com/mhttpfileposter/mhttpfileposter.zip">library</a> and <a href="http://www.walking-productions.com/mhttpfileposter/mhttpfileposter_src.zip">source</a>.</p>
<p>Here is an example which also uses the <a href="http://www.mobvcasting.com/wp/?p=455">MVideoCapture library</a>:<br />
<code><br />
import processing.core.*;</p>
<p>import com.mobvcasting.mhttpfileposter.*;<br />
import com.mobvcasting.mvideocapture.*;</p>
<p>public class MHTTPFilePosterTest extends PMIDlet<br />
{<br />
	MVideoCapture vidcap;<br />
	MHTTPFilePoster poster;</p>
<p>	String captureKey = "Capture Video";<br />
	String stopKey = "Stop Capture";<br />
	String uploadKey = "Upload Video";<br />
	String uploadStatus = "Check Upload";</p>
<p>	String statusMessage = "Not Captured";</p>
<p>	byte[] outputArray;</p>
<p>	PFont font;</p>
<p>	public void setup()<br />
	{<br />
		vidcap = new MVideoCapture(this);</p>
<p>	    softkey(captureKey);<br />
	    font = loadFont("ArialMT-12.mvlw");<br />
	    textFont(font);<br />
	}</p>
<p>	public void draw()<br />
	{<br />
          background(255);<br />
          text(statusMessage,10,15);<br />
	}</p>
<p>	public void softkeyPressed(String label)<br />
	{<br />
		if (label.equals(captureKey))<br />
		{<br />
			softkey(stopKey);<br />
			vidcap.showCamera();<br />
			vidcap.startCapture();<br />
		}<br />
        else if (label.equals(stopKey))<br />
        {<br />
        	softkey(uploadKey);<br />
        	vidcap.stopCapture();<br />
        	vidcap.hideCamera();<br />
        	outputArray = vidcap.getCapturedVideo();<br />
        	//outputArray = new byte[]{(byte)0xff,(byte)0xff,(byte)0xff,(byte)0xff};<br />
        }<br />
        else if (label.equals(uploadKey))<br />
        {<br />
    		poster = new MHTTPFilePoster(this, "http://your.server/upload.php", "avideofile", "bytes", outputArray);<br />
    		poster.startUpload();<br />
        	statusMessage = "Uploading Video";<br />
        	softkey(uploadStatus);<br />
        }<br />
        else if (label.equals(uploadStatus))<br />
        {<br />
        	statusMessage = poster.getStatus() + " " + poster.getServerResponse();<br />
        }<br />
	}</p>
<p>	public void libraryEvent(Object library, int event, Object data)<br />
	{</p>
<p>	}<br />
}</p>
<p></code></p>
<p>Here is the PHP that this posts to (PHP is not required, any language can be used to receive the standard HTTP file upload that comes from the example):<br />
<code></p>
<p></code> </p>
<p>You can find more examples and a discussion on using this library from my course <a href="http://itp.nyu.edu/~sve204/mobilemedia/week7.html">Mobile Media Week 7 notes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mobvcasting.com/wp/?feed=rss2&amp;p=457</wfw:commentRss>
		</item>
		<item>
		<title>MVideoPlayback Library</title>
		<link>http://www.mobvcasting.com/wp/?p=456</link>
		<comments>http://www.mobvcasting.com/wp/?p=456#comments</comments>
		<pubDate>Thu, 06 Mar 2008 04:18:37 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
		<category><![CDATA[Mobile Processing Libraries]]></category>

		<guid isPermaLink="false">http://www.mobvcasting.com/wp/?p=456</guid>
		<description><![CDATA[I recently needed to develop a library for Mobile Processing for video playback that works with my MVideoCapture library.  You can download the library and source.
Here is a quick example for using it (this example also uses my MVideoCapture library):

import processing.core.*;
import com.mobvcasting.mvideocapture.*;
import com.mobvcasting.mvideoplayback.*;
public class MVideoCaptureTest extends PMIDlet
{
	MVideoPlayback vidplay;
	MVideoCapture vidcap;
	byte[] videoData;
	String captureKey = "Capture";
	String stopCaptureKey [...]]]></description>
			<content:encoded><![CDATA[<p>I recently needed to develop a library for <a href="http://mobile.processing.org/">Mobile Processing</a> for video playback that works with my <a href="http://www.mobvcasting.com/wp/?p=455">MVideoCapture library</a>.  You can <a href="http://www.walking-productions.com/mvideoplayback/mvideoplayback.zip">download the library</a> and <a href="http://www.walking-productions.com/mvideoplayback/mvideoplayback_src.zip">source</a>.</p>
<p>Here is a quick example for using it (this example also uses my <a href="http://www.mobvcasting.com/wp/?p=455">MVideoCapture library</a>):<br />
<code><br />
import processing.core.*;<br />
import com.mobvcasting.mvideocapture.*;<br />
import com.mobvcasting.mvideoplayback.*;</p>
<p>public class MVideoCaptureTest extends PMIDlet<br />
{<br />
	MVideoPlayback vidplay;<br />
	MVideoCapture vidcap;<br />
	byte[] videoData;</p>
<p>	String captureKey = "Capture";<br />
	String stopCaptureKey = "Stop Capture";<br />
	String playKey = "Play Video";</p>
<p>	public void setup()<br />
	{<br />
		softkey(captureKey);</p>
<p>		vidcap = new MVideoCapture((PMIDlet)this);<br />
		vidcap.showCamera();		</p>
<p>		noLoop();<br />
	}</p>
<p>	public void draw()<br />
	{<br />
	}</p>
<p>	public void softkeyPressed(String label)<br />
	{<br />
		if (label.equals(captureKey))<br />
		{<br />
			//vidcap.timedCapture(20);<br />
			vidcap.startCapture();<br />
			softkey(stopCaptureKey);<br />
		}<br />
		else if (label.equals(stopCaptureKey))<br />
		{<br />
			vidcap.stopCapture();<br />
		}<br />
		else if (label.equals(playKey))<br />
		{<br />
			vidplay = new MVideoPlayback(this,videoData,"video/3gpp");<br />
			vidplay.showPlayer(0, 0, width, height);<br />
			vidplay.playVideo();<br />
		}<br />
		redraw();<br />
	}</p>
<p>	public void libraryEvent(Object library, int event, Object data)<br />
	{<br />
		if (library.getClass().isInstance(vidcap) &#038;&#038; event == MVideoCapture.CAPTURE_COMPLETE)<br />
		{<br />
			videoData = (byte[])data;<br />
			vidcap.hideCamera();<br />
			vidcap.closeCamera();</p>
<p>			softkey(playKey);<br />
			redraw();<br />
		}<br />
	}<br />
}<br />
</code></p>
<p>You can find more examples and a discussion on using this library from my course <a href="http://itp.nyu.edu/~sve204/mobilemedia/week7.html">Mobile Media Week 7 notes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mobvcasting.com/wp/?feed=rss2&amp;p=456</wfw:commentRss>
		</item>
		<item>
		<title>MVideoCapture Library</title>
		<link>http://www.mobvcasting.com/wp/?p=455</link>
		<comments>http://www.mobvcasting.com/wp/?p=455#comments</comments>
		<pubDate>Thu, 06 Mar 2008 03:58:17 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
		
		<category><![CDATA[Mobile Processing Libraries]]></category>

		<guid isPermaLink="false">http://www.mobvcasting.com/wp/?p=455</guid>
		<description><![CDATA[I recently needed to develop a library for Mobile Processing for video capture.  You can download the library and source.
Here is a quick example for using it (this example also uses my MVideoPlayback library):

import processing.core.*;
import com.mobvcasting.mvideocapture.*;
import com.mobvcasting.mvideoplayback.*;
public class MVideoCaptureTest extends PMIDlet
{
	MVideoPlayback vidplay;
	MVideoCapture vidcap;
	byte[] videoData;
	String captureKey = "Capture";
	String stopCaptureKey = "Stop Capture";
	String playKey = "Play [...]]]></description>
			<content:encoded><![CDATA[<p>I recently needed to develop a library for <a href="http://mobile.processing.org/">Mobile Processing</a> for video capture.  You can <a href="http://www.walking-productions.com/mvideocapture/mvideocapture.zip">download the library</a> and <a href="http://www.walking-productions.com/mvideocapture/mvideocapture_src.zip">source</a>.</p>
<p>Here is a quick example for using it (this example also uses my <a href="http://www.mobvcasting.com/wp/?p=456">MVideoPlayback library</a>):<br />
<code><br />
import processing.core.*;<br />
import com.mobvcasting.mvideocapture.*;<br />
import com.mobvcasting.mvideoplayback.*;</p>
<p>public class MVideoCaptureTest extends PMIDlet<br />
{<br />
	MVideoPlayback vidplay;<br />
	MVideoCapture vidcap;<br />
	byte[] videoData;</p>
<p>	String captureKey = "Capture";<br />
	String stopCaptureKey = "Stop Capture";<br />
	String playKey = "Play Video";</p>
<p>	public void setup()<br />
	{<br />
		softkey(captureKey);</p>
<p>		vidcap = new MVideoCapture((PMIDlet)this);<br />
		vidcap.showCamera();		</p>
<p>		noLoop();<br />
	}</p>
<p>	public void draw()<br />
	{<br />
	}</p>
<p>	public void softkeyPressed(String label)<br />
	{<br />
		if (label.equals(captureKey))<br />
		{<br />
			//vidcap.timedCapture(20);<br />
			vidcap.startCapture();<br />
			softkey(stopCaptureKey);<br />
		}<br />
		else if (label.equals(stopCaptureKey))<br />
		{<br />
			vidcap.stopCapture();<br />
		}<br />
		else if (label.equals(playKey))<br />
		{<br />
			vidplay = new MVideoPlayback(this,videoData,"video/3gpp");<br />
			vidplay.showPlayer(0, 0, width, height);<br />
			vidplay.playVideo();<br />
		}<br />
		redraw();<br />
	}</p>
<p>	public void libraryEvent(Object library, int event, Object data)<br />
	{<br />
		if (library.getClass().isInstance(vidcap) &#038;&#038; event == MVideoCapture.CAPTURE_COMPLETE)<br />
		{<br />
			videoData = (byte[])data;<br />
			vidcap.hideCamera();<br />
			vidcap.closeCamera();</p>
<p>			softkey(playKey);<br />
			redraw();<br />
		}<br />
	}<br />
}<br />
</code></p>
<p>You can find more examples and a discussion on using this library from my course <a href="http://itp.nyu.edu/~sve204/mobilemedia/week7.html">Mobile Media Week 7 notes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mobvcasting.com/wp/?feed=rss2&amp;p=455</wfw:commentRss>
		</item>
	</channel>
</rss>
