airvideo_如何免费获取Android中的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 MultiViewsAllowOverride NoneOrder allow,denyallow from all </Directory> <Directory /var/www/>Options Indexes FollowSymLinks MultiViewsAllowOverride NoneOrder allow,denyallow from all </Directory>Change that line into:
將該行更改為:
<Directory /var/www/>Options Indexes FollowSymLinks MultiViewsAllowOverride AllOrder allow,denyallow 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)以獲取安裝過程中的任何更新。
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支持 ,然后返回主頁。
Open the WiimcPlxRenderer configuration page and turn on the force rendering, and fancy templates, but not the “Show Raw” option.
打開WiimcPlxRenderer配置頁面,然后打開強制渲染和精美模板,但不要打開“ Show Raw”選項。
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地址添加到其入站策略規則中。
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,看起來是這樣的:
You need to know your computer IP address, and VLC-Share port – by default its port 80.
您需要知道計算機的IP地址和VLC-Share端口-默認情況下為端口80。
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地址。
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地址,您將需要此信息來設置端口轉發。
Head to YouGetSignal.com, and click the check button to test?that your port forwarding works.
前往YouGetSignal.com ,然后單擊檢查按鈕以測試您的端口轉發是否有效。
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 Player或Rock 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為您提供了從硬盤驅動器觀看電影,大型視頻以及網絡上一些非常酷的動漫頻道的選項。
VLC-Share pulls each anime episode, and organize them for in an easy to navigate folder-like structure.
VLC-Share提取每個動畫片段,并以易于瀏覽的文件夾狀結構組織它們。
設置共享文件夾 (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.
指定視頻目錄的完整路徑。
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手機中的信息中心。 點擊共享文件夾按鈕,您應該可以從計算機流式傳輸視頻。
The files and folders are arranged as per what you will see from your computer.
文件和文件夾的排列方式與您在計算機上看到的內容相同。
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會自動為您要觀看的電影檢測最佳的轉碼配置文件。
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
總結
以上是生活随笔為你收集整理的airvideo_如何免费获取Android中的AirVideo功能的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 阿里云服务器突发性能型和共享型哪个好
- 下一篇: oracle12c 重启服务,OBIEE