[vlc-devel] [PATCH] lua: input: Expose tracks through lua bindings
Rémi Denis-Courmont
remi at remlab.net
Wed Jan 4 15:17:38 CET 2017
Le mercredi 4 janvier 2017, 11:33:27 Hugo Beauzée-Luyssen a écrit :
> diff --git a/share/lua/README.txt b/share/lua/README.txt
> index d726fcf095..be8929336f 100644
> --- a/share/lua/README.txt
> +++ b/share/lua/README.txt
> @@ -132,6 +132,36 @@ input.item(): Get the current input item. Input item
> methods are: .send_bitrate
> .played_abuffers
> .lost_abuffers
> + :tracks(): Get information about the current tracks. This is a table with
> the following fields: + .codec
> + .original_fourcc
> + .id
> + .profile
> + .level
> + .bitrate
> + .language
> + .description
> + .type ("video", "audio", "spu" or "unknown")
> + .video (when type == "video")
> + .width
> + .height
> + .sar_num
> + .sar_den
> + .framerate
> + .framerate_den
> + .orientation
> + .projection
> + .yaw
> + .pitch
> + .roll
> + .fov
> + .audio (when type == "audio")
> + .channels
> + .rate
> + .spu (when type == "spu")
> + .encoding
> + :current_track(type): Get an object representing the current track ID
> + :set_track(type, id): Set the current track type to the provided track ID
Nit picking but I think select or enable/disable track is more logical than
set here.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list