airvideo_如何免费获取Android中的AirVideo功能

airvideo

airvideo

AirVideo makes it possible for iPhone, iPad, or iPod Touch users to stream any video format on their devices. If you’re an Android user, then you are in luck, because you can get AirVideo’s features for free with VLC-Share.

AirVideo使iPhone,iPad或iPod Touch用户可以在其设备上流式传输任何视频格式。 如果您是Android用户,那么您会很幸运,因为您可以通过VLC-Share免费获得AirVideo的功能。

In today’s tutorial, we will start off by giving you an instruction on how to install VLC-Share, followed by configuring firewall and port forwarding, and we complete the tutorial with a walk through of VLC-Share features.

在今天的教程中,我们将首先向您提供有关如何安装VLC-Share的说明,然后配置防火墙和端口转发,并通过逐步介绍VLC-Share功能来完成本教程。

Wallpaper available from our Naruto Customization set.

可从我们的《火影忍者》定制集中获得壁纸。

安装VLC-Share (Installing VLC-Share)

To start off, grab a copy of VLC-Share and install the required packages

首先,获取VLC-Share副本并安装所需的软件包

sudo apt-get install apache2 libapache2-mod-php5 php5 zend-framework zend-framework-bin vlc php5-sqlite php5-cli vlc

sudo apt-get install apache2 libapache2-mod-php5 php5 zend-framework zend-framework-bin vlc php5-sqlite php5-cli vlc

Install the FFMPEG, and the extra codecs for VLC.

安装FFMPEG和用于VLC的其他编解码器。

sudo apt-get install ffmpeg; sudo apt-get install libavcodec-extra-52 libavcodec-unstripped-52

sudo apt-get install ffmpeg; sudo apt-get install libavcodec-extra-52 libavcodec-unstripped-52

Enable the apache’s mod_rewrite

启用apache的mod_rewrite

sudo a2enmod rewrite

sudo a2enmod rewrite

Open the Zend framework config file : “/etc/php5/apache2/conf.d/zend-framework.ini”, and remove the semicolon from this line: “include_path=${include_path}:/usr/share/php/libzend-framework-php”

打开Zend框架配置文件:“ / etc / php5 / apache2 / conf.d / zend-framework.ini”,然后从此行中删除分号:“ include_path = $ {include_path}:/ usr / share / php / libzend -framework-php”

Open the Apache’s default site configuration “sudo gedit /etc/apache2/sites-enabled/000-default”, and search for this line:

打开Apache的默认站点配置“ sudo gedit / etc / apache2 / sites-enabled / 000-default”,然后搜索以下行:

<Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
</Directory>
<Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
</Directory>

Change that line into:

将该行更改为:

<Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
</Directory>

Unpack vlc-shares package inside the /var/www/ directory, and change permissions and owner for vlc-shares directory:

解压缩/ var / www /目录中的vlc-shares软件包,并更改vlc-shares目录的权限和所有者:

sudo chown -R www-data:www-data /var/www/vlc-shares;sudo chmod a+rwx -R /var/www/vlc-shares/data

sudo chown -R www-data:www-data /var/www/vlc-shares;sudo chmod a+rwx -R /var/www/vlc-shares/data

Once you are done configuring the apache, restart the server.

完成配置Apache之后,重新启动服务器。

sudo /etc/init.d/apache2 restart

sudo /etc/init.d/apache2 restart

Open your browser and you should be able to VLC-Share’s dashboard. Make sure to check VLC-Share Linux installation instruction – or Windows, if you are running Windows – for any updates on the installation process.

打开浏览器,您应该能够访问VLC-Share的仪表板 。 确保检查VLC-Share Linux安装说明(或Windows ,如果您正在运行Windows)以获取安装过程中的任何更新。

image

You should not need to change any of the configurations, except for the Android streaming option. Open the configuration page, by clicking the “VLCShares Configure” button. You should ensure that the WiiMC Support is enabled, and go back to the home page.

除了Android流式传输选项外,您无需更改任何配置。 单击“ VLCShares配置”按钮,打开配置页面。 您应该确保已启用WiiMC支持 ,然后返回主页。

Wiimc_configuration

Open the WiimcPlxRenderer configuration page and turn on the force rendering, and fancy templates, but not the “Show Raw” option.

打开WiimcPlxRenderer配置页面,然后打开强制渲染和精美模板,但不要打开“ Show Raw”选项。

image

That’s all the configurations that you should need to do. Up next, we’ll show you how to change your network settings so that you can stream your movies not only through WiFi, but also from the Internet.

这就是您需要做的所有配置。 接下来,我们将向您展示如何更改网络设置,以便您不仅可以通过WiFi,还可以通过Internet流式传输电影。

防火墙和端口转发 (Firewall and Port Forwarding)

We install Firestarter to add extra security on our Linux box. If you’re a Firestarter user like us, add your Android phone IP address to it’s inbound policy rule.

我们安装了Firestarter,以在Linux机器上增加额外的安全性。 如果您是像我们这样的Firestarter用户,请将您的Android手机IP地址添加到其入站策略规则中。

firestarted

If you’re using windows, make sure to turn on your network discovery. Head to the control panel and open the “Network and Sharing Center” menu.

如果您使用的是Windows,请确保打开网络发现功能。 转到控制面板并打开“网络和共享中心”菜单。

Go to the advanced settings.

转到高级设置。

And turn on the network discovery option.

并打开网络发现选项。

Now, if you want to connect to VLC-Share remotely, you need to add a port forwarding rule in your router. A port forwarding means that you are opening up a port on your router firewall so that outsiders can connect to your VLC-Share server.

现在,如果要远程连接到VLC-Share,则需要在路由器中添加端口转发规则。 端口转发意味着您正在路由器防火墙上打开一个端口,以便外部人员可以连接到您的VLC-Share服务器。

Different routers have their own administration page. Our router is a DLink model number: DSL-2730B, and this is what it looks like:

不同的路由器具有自己的管理页面。 我们的路由器是DLink型号:DSL-2730B,看起来是这样的:

image

You need to know your computer IP address, and VLC-Share port – by default its port 80.

您需要知道计算机的IP地址和VLC-Share端口-默认情况下为端口80。

image

All the computers on your internal network have an IP address which looks something like 192.168.0.XXX.  Linux network tool will tell you your IP address.

内部网络上的所有计算机都有一个IP地址,看起来像192.168.0.XXX。 Linux网络工具会告诉您您的IP地址。

image

If you are using windows, type ipconfig in the command prompt, and Windows will give you your IP Configuration. Take note of your IPv4 address, you’ll need this information for setting up your port forwarding.

如果您使用的是Windows,请在命令提示符下键入ipconfig,Windows会为您提供IP配置。 记下您的IPv4地址,您将需要此信息来设置端口转发。

image

Head to YouGetSignal.com, and click the check button to test that your port forwarding works.

前往YouGetSignal.com ,然后单击检查按钮以测试您的端口转发是否有效。

yougetsignal

Port 80 should be open, if not, review your firewall configuration one more time.

端口80应该打开,否则请再次检查防火墙配置。

从Android流式传输 (Streaming from Android)

So far we’ve learned how to install VLC-Share, configure your home network for local and remote video streaming, and now we’ll look into how to stream your movies from Android.

到目前为止,我们已经学习了如何安装VLC-Share,配置本地网络以进行本地和远程视频流传输,现在,我们将研究如何从Android传输电影。

VLC-Share take care most of the heavy-duty work for us. All you need to do is make sure that you have a good video player in your Android. We recommend VPlayer, because it works best with vlc-share in our HTC Desire HD Phone, but if you prefer a cheaper alternative, you can install mVideo Player or Rock Player – both work reasonably well with VLC-share.

VLC-Share会为我们处理大部分繁重的工作。 您需要做的就是确保您的Android设备具有出色的视频播放器。 我们建议使用VPlayer ,因为它最适合与HTC Desire HD Phone中的vlc-share一起使用,但是如果您希望使用更便宜的替代品,则可以安装mVideo PlayerRock Player-两者都可以与VLC-share很好地兼容。

Open VLC-Share dashboard from your Android web browser by typing your computer IP address, followed by the full path to VLC-Share’s home page. For example, our VLC-Share server IP address is 192.168.1.2,  so the URL to access the dashboard is http://192.168.1.2/vlc-share/public/

通过键入您的计算机IP地址,然后输入到VLC-Share主页的完整路径,从您的Android Web浏览器打开VLC-Share仪表板。 例如,我们的VLC-Share服务器IP地址为192.168.1.2,因此访问仪表板的URL为http://192.168.1.2/vlc-share/public/

Hit the browse button, and VLC-Share gives you options to watch movies from your hard drive, mega video, and some really cool anime channels on the net.

点击浏览按钮,VLC-Share为您提供了从硬盘驱动器观看电影,大型视频以及网络上一些非常酷的动漫频道的选项。

image

VLC-Share pulls each anime episode, and organize them for in an easy to navigate folder-like structure.

VLC-Share提取每个动画片段,并以易于浏览的文件夹状结构组织它们。

image

设置共享文件夹 (Setting Up a Shared Folder)

When we’re not watching anime, we use VLC-Share to watch movie on our file server. Click the share new folder to add videos for VLC-Share.

当我们不观看动画时,我们使用VLC-Share在我们的文件服务器上观看电影。 单击共享新文件夹以添加VLC-Share的视频。

Specify the full path to your videos directory.

指定视频目录的完整路径。

image

Once you have shared your folders, head back to the dashboard in your android phone. Tap the shared folder button, and you should be able to stream videos from your computer.

共享文件夹后,请回到Android手机中的信息中心。 点击共享文件夹按钮,您应该可以从计算机流式传输视频。

image

The files and folders are arranged as per what you will see from your computer.

文件和文件夹的排列方式与您在计算机上看到的内容相同。

image

Tap the file name, and you’ll be able to choose a suitable transcode profile and mode to watch your movie, but don’t worry VLC-Share automatically detects the best transcoding profile for the movie that you want to watch.

点按文件名,您将能够选择合适的转码配置文件和模式来观看电影,但是不用担心,VLC-Share会自动为您要观看的电影检测最佳的转码配置文件。

image

Now plug in your earphone, sit back, and enjoy your movies anytime, anywhere.

现在,插入耳机,坐下来,随时随地欣赏电影。

Feel free to share your experience with VLC-Share in the comments section with the other fellow readers.

随时在评论部分与其他读者分享您使用VLC-Share的经验。

翻译自: https://www.howtogeek.com/howto/43484/how-to-get-airvideo-features-in-android-for-free/

airvideo

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值