Explicit device list with realtime streaming features

Are you absolutely, positively sure that your question does not fit anywhere else?
dilip.joshi@qubecell.com
Posts: 6
Joined: Mon May 27, 2013 8:25 am

Explicit device list with realtime streaming features

Postby dilip.joshi@qubecell.com » Mon May 27, 2013 8:28 am

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

sm_support2
Posts: 294
Joined: Mon Jun 20, 2011 5:04 pm

Re: Explicit device list with realtime streaming features

Postby sm_support2 » Mon May 27, 2013 9:22 am

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

dilip.joshi@qubecell.com
Posts: 6
Joined: Mon May 27, 2013 8:25 am

Re: Explicit device list with realtime streaming features

Postby dilip.joshi@qubecell.com » Mon May 27, 2013 11:43 pm

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

kamermans
Posts: 393
Joined: Mon Jun 06, 2011 9:50 am

Re: Explicit device list with realtime streaming features

Postby kamermans » Tue May 28, 2013 11:28 am

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.
Thanks,

Steve Kamerman
ScientiaMobile

Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!

dilip.joshi@qubecell.com
Posts: 6
Joined: Mon May 27, 2013 8:25 am

Re: Explicit device list with realtime streaming features

Postby dilip.joshi@qubecell.com » Fri May 31, 2013 12:57 am

Hi Steve,

Thanks for your reply, it worked.

Regards,
DJ


Who is online

Users browsing this forum: Google [Bot] and 1 guest