U2b 本地测试:

u2b_entry.c

extern char *ip_addr;
//sprintf(url, "%s%s%s%d%d%s","http://",ip_addr,":8080/youtube/xml/" ,s_country_id,s_city_id, ".xml");
//libc_printf("-----6------weather_ip_addrshuzu = :%s\n ",url);
//#define U2B_TEST_URL "http://192.168.31.1:8080/youtube/xml/"


#define U2B_TEST_URL "http://192.168.58.253:8080/youtube/xml/"
//sprintf (url,"%s%d%s",U2B_TEST_URL,list_type,".xml");
//sprintf (url,"%s%s%s%d%s","http://",ip_addr,":8080/youtube/xml/",list_type,".xml");

u2b_download_xmlfile (UINT8 list_type, UINT16 *key_search)
{
libc_printf("list_type = %d\n", list_type);

……

if (u2b_operation_mode == 2)
{
//

// sprintf (url,"%s%d%s",U2B_TEST_URL,list_type,".xml");
// libc_printf("-----------1----url = :%s\n ",url);


sprintf (url,"%s%s%s%d%s","http://",ip_addr,":8080/youtube/xml/",list_type,".xml");
libc_printf("-----------2----url = :%s\n ",url);


// sprintf (url,"%s%d%s",U2B_TEST_URL,list_type,".xml");
// libc_printf("-----------1----url = :%s\n ",url);


sprintf (url,"%s%s%s%d%s","http://",ip_addr,":8080/youtube/xml/",list_type,".xml");
libc_printf("-----------2----url = :%s\n ",url);


u2b_list.c


extern char *ip_addr;
//sprintf(url, "%s%s%s%d%d%s","http://",ip_addr,":8080/youtube/" ,s_country_id,s_city_id, ".xml");
//libc_printf("-----6------weather_ip_addrshuzu = :%s\n ",url);


#define U2B_HTML_URL "http://www.youtube.com/watch?v="
#define U2B_TEST_URL "http://192.168.58.253:8080/youtube/"
//#define U2B_TEST_URL "http://192.168.31.1:8080/youtube/"


//sprintf(path, "%s%s%d%s",U2B_TEST_URL,"picture/",id,".jpg");
//sprintf(path, "%s%s%d%s","http://",ip_addr,":8080/youtube/","picture/",id,".jpg");

if(u2b_operation_mode == 2)
{
sprintf(path, "%s%s%s%s%d%s","http://",ip_addr,":8080/youtube/","picture/",id,".jpg");
}

sprintf (url, "%s%s%s%s%d%s", "http://",ip_addr,":8080/youtube/", "html/", id, ".html");

ret= u2b_get_video_url_ex(u2b_video_info.video_info, url, U2B_FULL_URL_MAX_LEN);
// sprintf(url, "%s", U2B_TEST_VIDEO_URL);
sprintf (url,"%s%s%s%s%d%s","http://",ip_addr,":8080/youtube/", "video/",id, ".mp4");
libc_printf ("\n\n-U2B_TEST_MP4_URL=[%s]\n", url);
}




U2b 本地测试:


HFS设置:1、专家模式

2、菜单|限制|将防止反复下载去掉还有连接超时清空

代码中将libnet  



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值