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
Explicit device list with realtime streaming features
-
- Posts: 6
- Joined: Mon May 27, 2013 8:25 am
-
- Posts: 294
- Joined: Mon Jun 20, 2011 5:04 pm
Re: Explicit device list with realtime streaming features
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
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
-
- Posts: 6
- Joined: Mon May 27, 2013 8:25 am
Re: Explicit device list with realtime streaming features
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
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
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:
You can, of course, extend it to check for other streaming capabilities as well.
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";
}
}
Thanks,
Steve Kamerman
ScientiaMobile
Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!
Steve Kamerman
ScientiaMobile
Make sure you check out our WURFL Cloud, WURFL InSight and WURFL InFuze products!
-
- Posts: 6
- Joined: Mon May 27, 2013 8:25 am
Re: Explicit device list with realtime streaming features
Hi Steve,
Thanks for your reply, it worked.
Regards,
DJ
Thanks for your reply, it worked.
Regards,
DJ
Who is online
Users browsing this forum: No registered users and 6 guests