The Drive API documentation is not very straight forward when it comes to uploading files when you don't know the size of the file. In this post I'll explain a way to do a chunked file upload when the file length is unknown.
Saturday, October 3, 2015
Sunday, September 27, 2015
Uploading a file with the Google Drive API
This post describes how to upload a file in Google Drive using the REST API from C++, with cURL.
Sunday, September 6, 2015
Sending a custom video stream through WebRTC
WebRTC is used to create video call enabled p2p applications. By default it supports only local webcam and audio input to be sent to a peer. However, it might be useful to send a remote video stream to a peer - for example a RTSP stream from an IP camera.
In this post I'll focus on modifying the peerconnection_client example to send a remote RTSP stream to another peer.
In this post I'll focus on modifying the peerconnection_client example to send a remote RTSP stream to another peer.
Saturday, September 5, 2015
Building libjingle for Android
Libjingle is a C++ library used to create peer-to-peer connections for voice-chat applications. It is included in WebRTC and bundled inside the Chromium source repository.
There are a couple of web pages with instructions out there about how to build the library for Android, but none of them seem complete.
This is where this post comes in.
There are a couple of web pages with instructions out there about how to build the library for Android, but none of them seem complete.
This is where this post comes in.
Friday, July 17, 2015
Unit tests: How to access private members in C++
In order to write unit tests sometimes one needs to access private class members or methods.
Tuesday, July 14, 2015
Building GStreamer-1.0-SDK for Android MIPS
GStreamer is a nice SDK with which you can create multimedia applications for a multitude of systems. My concern is primarily Android with RTSP and video playback.
The SDK is already available for Android for a couple of architectures (arm, armv7a and x86). No MIPS support though.
In this post I'll describe the steps needed to get a GStreamer-1.0 SDK for Android MIPS.
The SDK is already available for Android for a couple of architectures (arm, armv7a and x86). No MIPS support though.
In this post I'll describe the steps needed to get a GStreamer-1.0 SDK for Android MIPS.
Tuesday, June 16, 2015
Integration with Amazon SNS for push notifications
Pseudocode for Android integration with Amazon SNS:
This should work for iOS-SNS integration, but I haven't had the chance to test.
server call to register for push notifications with registration token and DeviceId
if DeviceId is already stored then
call DeleteEndpoint
else
call CreatePlatformEndpoint to create new ARN for this device
store new ARN, Token and DeviceId
endif
I know there are other algorithms for working with Amazon’s SNS (like this one) but this seems to be the simplest, and it also solves the problem with Amazon not disabling the ARNs when applications are re-installed.This should work for iOS-SNS integration, but I haven't had the chance to test.
Subscribe to:
Posts (Atom)