!!! RDKM Confluence(wiki) Now Migrated from LDAP to SSO Authentication !!!
For more information, including FAQs and resources, please visit the link below:
RDKM-SSO
Any questions or comments please feel free to contact RDK Support team support@rdkcentral.com . Thank you. ***
For more information, including FAQs and resources, please visit the link below:
RDKM-SSO
Any questions or comments please feel free to contact RDK Support team support@rdkcentral.com . Thank you. ***
6 Comments
Unknown User (gprasad)
Hi Pierce Wang,
From your query it seems you are looking to play any content from gateway (attached via a USB device) in a client device. Please elaborate more on this if this assumption is not correct.
Thanks
Ganesh
Unknown User (pwang01)
Your assumption is correct,I am looking to play content from gateway via USB device to any client device like VLC,Windows Media Player.In RMF_MediaStream.cpp::createSource this function,It define QAM ,TUNE,
DVB,DVR_Locator,etc,but I can't see it defines File_locator inside it.
Unknown User (pwang01)
Hi,get any update?
Unknown User (gprasad)
File locators can't be directly streamed, however in test environments we can map a file to Source ID and stream using HN Source. Let's take following scenario in a Raspberry Pi Hybrid platform where a MPEG2 transport stream is streamed.
modulation:8 frequency:252 /opt/www/received_spts1.ts 2007
<program sourceid="4701" carrier_frequency="252" modulation_mode="8" program_number="-1" virtual_channel_number="3"></program>
http://<IP_OF_RASPBERRYPI_GATEWAY>:8080/hnStreamStart?live=ocap://0x125d
Note: We need to have a MPEG2 licence for playing the content in Raspberry Pi.
Unknown User (pwang01)
Thanks for your reply !!!
Unknown User (jlin)
Hi Ganesh:
Our environment is different from your instruction, so please refer to our successful live link and comment later. Thanks.
1. RDK (A Yocto Project 1.6 based Distro) 2.0 brcm97271ip-refboard ttyS0
brcm97271ip-refboard login: root (automatic login)
2, ,/
,'/___, BOLT v1.27 TTI BLS0 (STB-3771) version 1.0.0.1
.'__ ,' (2017-10-31 09:57:01 root@william-VirtualBox)
/,'
Board: BCM97271WLAN3771
SYS_CTRL: product=7271, family=7271b0, strap=00000c18,00000000
3.CPU: 4x B53 (64-bit) [420f1000] 1656 MHz
SCB: 486 MHz
SYSIF: 1104 MHz
DDR0 @ 1856MHz
4.
rdkv2.1_b17.1_20170504_moca2_docsis3.tgz
refsw_release_unified_20170329_3pip_tti.tgz
refsw_release_unified_20170329.tgz
5. no /usr/bin/tune.config or /opt/www/received_spts1.ts
6. one similar file which not provided by RDK
TunerConfigStart
name=BCMcommon
i2c_addr=0x68
type=DVBC
i2c_bus=3
gpio=56
inputband=1
parallel=0
use_spi=1
spi_index=1
TunerConfigEnd
7. Our live channel setup as below
(a) /etc/sidb.xml
<program sourceid="700" carrier_frequency="333" modulation_mode="32" program_number="700" bandwidth="6" symbol_rate="6900000" tuner_type="2" ca_pid1="0" ca_pid2="0" ca_pid3="0" />
(b) 700=HEX2BC & the code in DLNAServerMain.cpp
DLNAServerPrivate::on_Browse( GUPnPService *service, GUPnPServiceAction *action, gpointer user_data )
char *tempsourceid[] = { "3B9", "3BA", "32A", "2FB", "246", "2BC" };
for( int i= 0; i < 6; ++i )
{
http://127.0.0.1:8081/vldms/tuner?ocap_locator=ocap://0x1" (
sprintf( url, "http://%s:%s/vldms/tuner?ocap_locator=ocap://0x%s", g_ipAddrBuffer,
streamingPort.c_str(), tempsourceid[i]);
(c) Media player, VLC, smplayer can play content by using the following url.
http://192.168.100.101:8081/vldms/tuner?ocap_locator=ocap://0x2BC
################################################################
How should we create similar codes basing on your instructions and our environment? and only ts format can be used as streaming??
Open /usr/bin/tune.config and edit following line to point to desired file. (we can map multiple files in similar manner)
modulation:8 frequency:252 /opt/www/received_spts1.ts 2007
################################################################
Best regards
Jack