Page 1 of 1

Explicit device list with realtime streaming features

Posted: Mon May 27, 2013 8:28 am
by dilip.joshi@qubecell.com
Hi Guys,

I was wondering if there is any way to extract devices which support realtime streaming video/audio.

If you have implemented the same pls do let me know.

Regards,
DJ

Re: Explicit device list with realtime streaming features

Posted: Mon May 27, 2013 9:22 am
by sm_support2
Hi there, can you expand a bit on what you mean by 'real time streaming''?

most modern (and also less modern) devices support streaming in one way or another through a variety of protocols (RTSP, HLS,...) and there are WURFL properties for that (look at the 'streaming' group capabilities for example)

Thanks

Re: Explicit device list with realtime streaming features

Posted: Mon May 27, 2013 11:43 pm
by dilip.joshi@qubecell.com
Hi,

Thanks for the revert.

Basically I have a customer who wants to launch some streaming video/audio services in India where smart phone penetration is limited mostly to cities.

Hence we want a list of devices which we can target while marketing or doing ad campaigns which will support real time streaming of video/audio.

Is there any way I can get this data from tera-wurfl?

Pls do let me know.

Regards,
DJ

Re: Explicit device list with realtime streaming features

Posted: Tue May 28, 2013 11:28 am
by kamermans
Hi DJ,

Here is a script that will use the Database API (Tera-WURFL) to generate a list of devices that have "streaming_video" set to true:

Code: Select all

<?php
require_once '../Tera-WURFL/TeraWurfl.php';

$wurfl = new TeraWurfl();
$devices = $wurfl->db->getFullDeviceList(TeraWurflConfig::$TABLE_PREFIX.'Merge');

foreach ($devices as $id => $user_agent) {
	// Manually clear old data
	$wurfl->capabilities = array();
	
	// Get capabilities for device
	$wurfl->getFullCapabilities($id);
	
	// Filter out devices that are revisions
	if (!isset($wurfl->capabilities['actual_device_root']) || !$wurfl->capabilities['actual_device_root']) {
		continue;
	}
	
	// Check if this device has the requested capabilities
	$info = (object)$wurfl->capabilities['product_info'];
	$stream = (object)$wurfl->capabilities['streaming'];
	if ($stream->streaming_video) {
		echo "$id\t$info->brand_name\t$info->model_name\t$info->model_extra_info\n";
	}
}
You can, of course, extend it to check for other streaming capabilities as well.

Re: Explicit device list with realtime streaming features

Posted: Fri May 31, 2013 12:57 am
by dilip.joshi@qubecell.com
Hi Steve,

Thanks for your reply, it worked.

Regards,
DJ