---
title: "如何修改VLC中默认的User agent"
author: "yanwt"
date: "2014-12-22T17:05:42Z"
tags: []
categories: ["移动开发"]
slug: "vlc-user-agent"
draft: false
lastmod: "2014-12-22T17:17:01Z"
id: 2169296
url: "https://yanwt.iteye.com/blog/2169296"
---

修改vlc/lib/core.c文件中libvlc\_set\_user\_agent方法

 

设置默认User agent

\[\[VLCLibrary sharedLibrary] setHumanReadableName:@"TVPlayer 1.2.3" withHTTPUserAgent:@"TVPlayer/1.0.1 "];