关闭

关于Android视频直播

标签: androidfeaturesplaybackencodingopensourceoptimization
1751人阅读 评论(1) 收藏 举报

最近做视频直播方面的软件,以前没做过这方面的东西,google了一下,搜索出来基本没有有用的信息,最多的就是视频直播软件还有就是外包信息。搜索半天无果后,下了几个“android播放网络视频”的demo试了一下,发现还是不行,将url改成电视直播的url以后不能播放。

后来只能去下了各种电视直播的软件,来看别人是怎么实现的,最后发现了一个第三方的多媒体方面的类库。vitamio,其官方地址:http://vov.io/

 

以下内容摘自官方网站的描述:

What's Vitamio

Vitamio is a multimedia framework for all Android devices. Vitamio works like the Android's default MediaPlayer except that it includes much more powerful features. And it's absolutely free !

Network Protocols

The following network protocols are supported for audio and video playback:

  • MMS
  • RTSP (RTP, SDP)
  • HTTP progressive streaming
  • HTTP live streaming (M3U8), for Android 2.1+

Media formats

Many audio and video codecs are packed into Vitamio beside the default media format built in Android platform, some of them are listed below.

  • divx/xvid
  • wmv
  • flv
  • ts
  • rmvb
  • mkv
  • mov
  • m4v
  • avi
  • mp4
  • 3gp

Subtitles

Vitamio support the display of many external and embedded subtitle formats.

  • SubRip(.srt)
  • Sub Station Alpha(.ssa) / Advanced Sub Station Alpha(.ass)
  • SAMI(.smi/.sami)
  • MicroDVD(.sub/.txt)
  • SubViewer2.0(.sub)
  • MPL2(.mpl/.txt)
  • Matroska (.mkv) Subtitle Track

More features

There are more wonderful features available in Vitamio.

  • Background playback
  • Multiple audio tracks support
  • Mutitiple subtitles support, including external and embedded ones
  • Processor optimization for many platforms
  • Buffering when streaming
  • Adjustable aspect ratio
  • Automatically text encoding detection

And many other features are waiting for you !

Where to get Vitamio

You can grab Vitamio from any sources, but the recommended sources are listed below.

Vitamio plugin for multimedia users

Vitamio plugin is a simple Android APP, e.g. an APK file. It's recommended to install the Vitamio plugin when the app in your device are guiding you to do this. However, you can install it from below sources if you know your device's features:

  • ARMv6: for some low end devices (, VOV)
  • VFP: for some low end devices with VFP support (, VOV)
  • ARMv7: for ARMv7 devices without NEON support, such as Tegra 2 powered devices(, VOV)
  • NEON: for ARMv7 devices with NEON support (, VOV)

Vitamio SDK for Android developers

You can download the jar file to use with your project here. (Vitamio-SDK.7z)

How to use Vitamio

When you installed Vitamio according to guidelines above, you can enjoy it.

For multimedia users

Vitamio is not an APP which can run by itself, it's a plugin for many other multimedia apps you're using. Those apps will work seamlessly when you accomplish the installation of Vitamio.

For Android developers

Here is a demo project which uses the vitamio.jar. (Vitamio-Demo.7z)

Vitamio provides the similiar interfaces with Android default MediaPlayer framework. If you're using android.media.MediaPlayer in your project, just grab the vitamio.jar from above, then add it to your project's libs, and replace the import of android.media.MediaPlayer with io.vov.vitamio.MediaPlayer.

Besides the default interfaces from Android MediaPlayer, Vitamio provides more APIs, please refer the javadoc in the library.

Please don't hesitate to contact us if you have any problems. ()

Privacy

We must notify you that Vitamio will collect those information to improve itself when you using it.

UniqueID generated from Device identifier

Vitamio reads your device identifier to generate an unique ID and collect the generated one instead of your device identifier. Most important, this generation can't be reversed. So don't worry about this, as it's not harmful.

Device's CPU features and screen size.

Vitamio will work on many different Android devices, different CPU architectures, different screen sizes and so on, so it needs to know the environment.

The app's package name which is using Vitamio

There're many apps which may use Vitamio, so Vitamio should know which process is using it to allocate proper resources.

The media's metadata

Vitamio may collect the media's metadata including but not limited to codecs, bitrates, samplerates and resolutions.

Licenses

Vitamio uses sevral opensource projects, thanks to them.

FFmpeg

FFmpeg provides the software codecs and demuxers. Vitamio uses code of FFmpeg licensed under the LGPLv2.1 and its source can be downloaded here

Universalchardet

Universalchardet is the encoding detector library of Mozilla. Vitamio uses the code of universalchardet licensed under MPL to detect the encoding of subtitle texts.

The original code of universalchardet is available at Mozilla.

The code of universalchardet used by Vitamio is available at here.

 

………………………………………………………………

如果也有做这方面的同学可以尝试一下。

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:9433次
    • 积分:192
    • 等级:
    • 排名:千里之外
    • 原创:11篇
    • 转载:0篇
    • 译文:0篇
    • 评论:2条
    最新评论