The amazing outdoor lounge at Singapore airport. (For some silly reason Gu's flying in, so I had to meet him there - i's quite a trek from the beach! I's wonderful being so close to where I grew up, breathing in this familiar warm air.
Aral on Flash, SWX, Flex, ActionScript, and life.
Decided to take a rest in Singapore and bumped into Guy!
Note: You will need a recent version of QuickTime installed in order to view the mobile video entries.
MXDU may still be a over a week away but this is Australia we're talking about... it'll take some time to get there, surely!
One of the biggest problems with troubleshooting a gateway like this is seeing the responses being sent (since they're being sent to the phone.) I had hacked in a few debug messages yesterday that were getting emailed to me but I still couldn't see the actual response being sent back to the phone. I knew instinctively that there was a problem with the response string and I knew it was probably due to a runtime error in the PHP code but I couldn't see what it was.
Enter the poster.php file to save the day.
This little file lets you call the MMS gateway with an MMS message from your computer and so any responses that are sent by the gateway are also sent to your computer. Five minutes after running it for the first time, the two dependency-related bugs that had arisen during the b2 integration were fixed and the gateway was purring like a kitten!
The Moblog will be put through its paces in Australia as I will be posting pictures and videos live from MXDU.
I started out by integrating Stefan Hellkvist's excellent MMS Diary module into the site -- initially thinking I'd have the Moblog as a separate section. I got that working (you can see it here) but quickly realized that it would be a shame that my posts wouldn't show up in the FlashAnt RSS and that users couldn't comment on them. I could have hacked said functionality into the new module but I didn't want to duplicate what b2 already does (or create a Frankenstein's monster of sorts) so I decided to full integrate the MMS/moblog feature into b2. It was actually not too difficult.
I had it working (at around 2am last night) to the point where I posted a test video (don't ask -- it was late!) and a test image and then hit the sack... Only to wake up to six posts (or was it eight?) this morning. Apparently, there's something wrong with the response my phone is getting that makes it think that the MMS was unsuccessful and the phone queues these unsuccessful attempts for resend. In effect, my phone kept spamming the site every so often, throughout the night!
My apologies to any aggregators this may have messed with. I should have the response message working correctly this morning so that won't happen again!
In the process of integrating MMS Diary into b2, I was able to add a few neat features to it. In the Moblog-as-separate section version, I added paging and in general I hacked it so it can now show 3gpp Video correctly (you need the Quicktime plugin to view it) instead of just saving it out as an unknown ".bin" file. Also, I implemented a primitive form of security, whereby you need to send a passcode with your message so that not anyone can use your gateway to post to your blog.
All this, so I can post live updates from MXDU starting in about a week's time ![]()
Bad Behavior has blocked 0 access attempts in the last 7 days.
Recent Comments