Skip to content

C++ media player library which use chromium media module

License

Notifications You must be signed in to change notification settings

shenyute/chromium_media_lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is the C++ library which wrapper chromium media module to create media player. Now we use chromium version 62.0.3002.84.

Features

  • Support playing local file
  • Normal media player API (ex: play, pause, seek, set volume, set play rate)
  • Not coupling with chromium multi-process architecture

How to build

  1. Please reference https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_instructions.md#Update-your-checkout to sync chromium code base. And install necessary library for build chromium:

    $ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
    $ export PATH="$PATH:/path/to/depot_tools"
    $ mkdir ~/chromium && cd ~/chromium
    $ fetch --nohooks chromium
    $ cd src
    
  2. Checkout to the tag we use and sync relative repository.

    $ cd src
    $ git checkout tags/62.0.3002.84 -b 62.0.3002.84
    $ gclient sync
    
  3. Sync chromium_media_lib.

    $ cd src
    $ git clone https://github.com/shenyute/chromium_media_lib.git
    $ cd chromium_media_lib
    $ ./setup.sh
    
  4. Build media example.

    $ cd src
    $ ./chromium_media_lib/setup.sh
    
  5. Now you can execute basic sample as following.

    $ ./out/Default/media_example --media-file=<local media file path>
    
or
$ ./out/Default/media_example --resource-file=<HTTP URI>

Reference

TODO

  • Add GTK to media_example

About

C++ media player library which use chromium media module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published