VLC 4.0.0-dev
Loading...
Searching...
No Matches
libvlc_media.h
Go to the documentation of this file.
1/*****************************************************************************
2 * libvlc_media.h: libvlc external API
3 *****************************************************************************
4 * Copyright (C) 1998-2009 VLC authors and VideoLAN
5 *
6 * Authors: Clément Stenac <zorglub@videolan.org>
7 * Jean-Paul Saman <jpsaman@videolan.org>
8 * Pierre d'Herbemont <pdherbemont@videolan.org>
9 *
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU Lesser General Public License as published by
12 * the Free Software Foundation; either version 2.1 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this program; if not, write to the Free Software Foundation,
22 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
24
25#ifndef VLC_LIBVLC_MEDIA_H
26#define VLC_LIBVLC_MEDIA_H 1
27
28#include <vlc/libvlc_picture.h>
30
31# ifdef __cplusplus
32extern "C" {
33# else
34# include <stdbool.h>
35# endif
36#include <stddef.h>
37
38/** \defgroup libvlc_media LibVLC media
39 * \ingroup libvlc
40 * @ref libvlc_media_t is an abstract representation of a playable media.
41 * It consists of a media location and various optional meta data.
42 * @{
43 * \file
44 * LibVLC media item/descriptor external API
45 */
46
48
49/** Meta data types */
80
81/**
82 * libvlc media or media_player state
83 */
94
95enum
96{
99};
100
102{
103 /* Input */
104 uint64_t i_read_bytes;
106
107 /* Demux */
112
113 /* Decoders */
116
117 /* Video Output */
121
122 /* Audio output */
126
127/**
128 * Media type
129 *
130 * \see libvlc_media_get_type
131 */
140
141/**
142 * Type of a media slave: subtitle or audio.
143 */
150
151/**
152 * A slave of a libvlc_media_t
153 * \see libvlc_media_slaves_get
154 */
161
162/**
163 * Type of stat that can be requested from libvlc_media_get_filestat()
164 */
165#define libvlc_media_filestat_mtime 0
166#define libvlc_media_filestat_size 1
167
168/**
169 * struct defining callbacks for libvlc_media_new_callbacks()
170 */
172{
173 /**
174 * Version of struct libvlc_media_open_cbs
175 */
176 uint32_t version;
177
178 /**
179 * Callback prototype to open a custom bitstream input media.
180 *
181 * The same media item can be opened multiple times. Each time, this callback
182 * is invoked. It should allocate and initialize any instance-specific
183 * resources, then store them in *datap. The instance resources can be freed
184 * in the @ref close callback.
185 *
186 * \param cbs_opaque private pointer as passed to libvlc_media_new_callbacks()
187 * \param datap storage space for a private data pointer [OUT]
188 * \param sizep byte length of the bitstream or UINT64_MAX if unknown [OUT]
189 *
190 * \note For convenience, *datap is initially NULL and *sizep is initially 0.
191 *
192 * \note Optional (can be NULL),
193 * available since version 0
194 *
195 * \note If NULL, the opaque pointer will be passed to read_cb,
196 * seek_cb and close_cb, and the stream size will be treated as unknown.
197 *
198 * \return 0 on success, non-zero on error. In case of failure, the other
199 * callbacks will not be invoked and any value stored in *datap and *sizep is
200 * discarded.
201 */
202 int (*open)(void *cbs_opaque, void **datap, uint64_t *sizep);
203
204 /**
205 * Callback prototype to read data from a custom bitstream input media.
206 *
207 * \param data private pointer as set by the @ref open callback
208 * \param buf start address of the buffer to read data into
209 * \param len bytes length of the buffer
210 *
211 * \note Mandatory (can't be NULL),
212 * available since version 0
213 *
214 * \return strictly positive number of bytes read, 0 on end-of-stream,
215 * or -1 on non-recoverable error
216 *
217 * \note If no data is immediately available, then the callback should sleep.
218 * \warning The application is responsible for avoiding deadlock situations.
219 */
220 ptrdiff_t (*read)(void *data, unsigned char *buf, size_t len);
221
222 /**
223 * Callback prototype to seek a custom bitstream input media.
224 *
225 * \note Optional (can be NULL if seeking is not supported),
226 * available since version 0
227 *
228 * \param data private pointer as set by the @ref open callback
229 * \param offset absolute byte offset to seek to
230 * \return 0 on success, -1 on error.
231 */
232 int (*seek)(void *data, uint64_t offset);
233
234 /**
235 * Callback prototype to close a custom bitstream input media.
236 *
237 * \note Optional (can be NULL),
238 * available since version 0
239 *
240 * \param data private pointer as set by the @ref open callback
241 */
242 void (*close)(void *data);
243};
244
245/**
246 * Create a media with a certain given media resource location,
247 * for instance a valid URL.
248 *
249 * \note To refer to a local file with this function,
250 * the file://... URI syntax <b>must</b> be used (see IETF RFC3986).
251 * We recommend using libvlc_media_new_path() instead when dealing with
252 * local files.
253 *
254 * \see libvlc_media_release
255 *
256 * \param psz_mrl the media location
257 * \return the newly created media or NULL on error
258 */
260
261/**
262 * Create a media for a certain file path.
263 *
264 * \see libvlc_media_release
265 *
266 * \param path local filesystem path
267 * \return the newly created media or NULL on error
268 */
270
271/**
272 * Create a media for an already open file descriptor.
273 * The file descriptor shall be open for reading (or reading and writing).
274 *
275 * Regular file descriptors, pipe read descriptors and character device
276 * descriptors (including TTYs) are supported on all platforms.
277 * Block device descriptors are supported where available.
278 * Directory descriptors are supported on systems that provide fdopendir().
279 * Sockets are supported on all platforms where they are file descriptors,
280 * i.e. all except Windows.
281 *
282 * \note This library will <b>not</b> automatically close the file descriptor
283 * under any circumstance. Nevertheless, a file descriptor can usually only be
284 * rendered once in a media player. To render it a second time, the file
285 * descriptor should probably be rewound to the beginning with lseek().
286 *
287 * \see libvlc_media_release
288 *
289 * \version LibVLC 1.1.5 and later.
290 *
291 * \param fd open file descriptor
292 * \return the newly created media or NULL on error
293 */
295
296/**
297 * Create a media with custom callbacks to read the data from.
298 *
299 * \param cbs callback to setup the media (can't be NULL). The pointed
300 * struct must be kept alive (and not modified) by the caller until all
301 * player instances that were supplied this media item are stopped.
302 * \param cbs_opaque opaque pointer for the open callback
303 *
304 * \return the newly created media or NULL on error
305 *
306 * \note The callbacks may be called asynchronously (from another thread).
307 * A single stream instance need not be reentrant. However the open_cb needs to
308 * be reentrant if the media is used by multiple player instances.
309 *
310 * \warning The callbacks may be used until all or any player instances
311 * that were supplied the media item are stopped.
312 *
313 * \warning The function prototype changed between LibVLC 3.0.0 and LibVLC 4.0.0
314 *
315 * \see libvlc_media_release
316 *
317 * \version LibVLC 3.0.0 and later
318 */
321 void *cbs_opaque);
322
323/**
324 * Create a media as an empty node with a given name.
325 *
326 * \see libvlc_media_release
327 *
328 * \param psz_name the name of the node
329 * \return the new empty media or NULL on error
330 */
332
333/**
334 * Add an option to the media.
335 *
336 * This option will be used to determine how the media_player will
337 * read the media. This allows to use VLC's advanced
338 * reading/streaming options on a per-media basis.
339 *
340 * \note The options are listed in 'vlc --longhelp' from the command line,
341 * e.g. "--sout-all". Keep in mind that available options and their semantics
342 * vary across LibVLC versions and builds.
343 * \warning Not all options affects libvlc_media_t objects:
344 * Specifically, due to architectural issues most audio and video options,
345 * such as text renderer options, have no effects on an individual media.
346 * These options must be set through libvlc_new() instead.
347 *
348 * \param p_md the media descriptor
349 * \param psz_options the options (as a string)
350 */
352 libvlc_media_t *p_md,
353 const char * psz_options );
354
355/**
356 * Add an option to the media with configurable flags.
357 *
358 * This option will be used to determine how the media_player will
359 * read the media. This allows to use VLC's advanced
360 * reading/streaming options on a per-media basis.
361 *
362 * The options are detailed in vlc --longhelp, for instance
363 * "--sout-all". Note that all options are not usable on medias:
364 * specifically, due to architectural issues, video-related options
365 * such as text renderer options cannot be set on a single media. They
366 * must be set on the whole libvlc instance instead.
367 *
368 * \param p_md the media descriptor
369 * \param psz_options the options (as a string)
370 * \param i_flags the flags for this option
371 */
373 libvlc_media_t *p_md,
374 const char * psz_options,
375 unsigned i_flags );
376
377
378/**
379 * Retain a reference to a media descriptor object (libvlc_media_t). Use
380 * libvlc_media_release() to decrement the reference count of a
381 * media descriptor object.
382 *
383 * \param p_md the media descriptor
384 * \return the same object
385 */
387
388/**
389 * Decrement the reference count of a media descriptor object. If the
390 * reference count is 0, then libvlc_media_release() will release the
391 * media descriptor object. If the media descriptor object has been released it
392 * should not be used again.
393 *
394 * \param p_md the media descriptor
395 */
397
398
399/**
400 * Get the media resource locator (mrl) from a media descriptor object
401 *
402 * \param p_md a media descriptor object
403 * \return string with mrl of media descriptor object
404 */
406
407/**
408 * Duplicate a media descriptor object.
409 *
410 * \warning the duplicated media won't share forthcoming updates from the
411 * original one.
412 *
413 * \param p_md a media descriptor object.
414 */
416
417/**
418 * Read the meta of the media.
419 *
420 * Note, you need to parse using libvlc_parser_queue() or play the media
421 * at least once before calling this function.
422 * If the media has not yet been parsed this will return NULL.
423 *
424 * \param p_md the media descriptor
425 * \param e_meta the meta to read
426 * \return the media's meta
427 */
429 libvlc_meta_t e_meta );
430
431/**
432 * Set the meta of the media (this function will not save the meta, call
433 * libvlc_media_save_meta in order to save the meta)
434 *
435 * \param p_md the media descriptor
436 * \param e_meta the meta to write
437 * \param psz_value the media's meta
438 */
440 libvlc_meta_t e_meta,
441 const char *psz_value );
442
443/**
444 * Read the meta extra of the media.
445 *
446 * If the media has not yet been parsed this will return NULL.
447 *
448 * \see libvlc_parser
449 *
450 * \param p_md the media descriptor
451 * \param psz_name the meta extra to read (nonnullable)
452 * \return the media's meta extra or NULL
453 */
455 const char *psz_name );
456
457/**
458 * Set the meta of the media (this function will not save the meta, call
459 * libvlc_media_save_meta in order to save the meta)
460 *
461 * \param p_md the media descriptor
462 * \param psz_name the meta extra to write (nonnullable)
463 * \param psz_value the media's meta extra (nullable)
464 * Removed from meta extra if set to NULL
465 */
467 const char *psz_name,
468 const char *psz_value );
469
470/**
471 * Read the meta extra names of the media.
472 *
473 * \param p_md the media descriptor
474 * \param pppsz_names the media's meta extra name array
475 * you can access the elements using the return value (count)
476 * must be released with libvlc_media_meta_extra_names_release()
477 * \return the meta extra count
478 */
480 char ***pppsz_names );
481
482/**
483 * Release a media meta extra names
484 *
485 * \param ppsz_names meta extra names array to release
486 * \param i_count number of elements in the array
487 */
489 unsigned i_count );
490
491/**
492 * Save the meta previously set
493 *
494 * \param inst LibVLC instance
495 * \param p_md the media descriptor
496 * \return true if the write operation was successful
497 */
499 libvlc_media_t *p_md );
500
501/**
502 * Get the current statistics about the media
503 * \param p_md media descriptor object
504 * \param p_stats structure that contain the statistics about the media
505 * (this structure must be allocated by the caller)
506 * \retval true statistics are available
507 * \retval false otherwise
508 */
510 libvlc_media_stats_t *p_stats);
511
512/* The following method uses libvlc_media_list_t, however, media_list usage is optional
513 * and this is here for convenience */
514#define VLC_FORWARD_DECLARE_OBJECT(a) struct a
515
516/**
517 * Get subitems of media descriptor object. This will increment
518 * the reference count of supplied media descriptor object. Use
519 * libvlc_media_list_release() to decrement the reference counting.
520 *
521 * \param p_md media descriptor object
522 * \return list of media descriptor subitems or NULL
523 */
526
527/**
528 * Get duration (in us) of media descriptor object item.
529 *
530 * Note, you need to parse using libvlc_parser_queue() or play the media
531 * at least once before calling this function.
532 * Not doing this will result in an undefined result.
533 *
534 * \param p_md media descriptor object
535 * \return duration of media item or -1 on error
536 */
539
540/**
541 * Get a 'stat' value of media descriptor object item.
542 *
543 * \note 'stat' values are currently only parsed by directory accesses. This
544 * mean that only sub medias of a directory media, parsed with
545 * libvlc_parser_queue() can have valid 'stat' properties.
546 * \version LibVLC 4.0.0 and later.
547 *
548 * \param p_md media descriptor object
549 * \param type a valid libvlc_media_stat_ define
550 * \param out field in which the value will be stored
551 * \return 1 on success, 0 if not found, -1 on error.
552 */
553LIBVLC_API int
554 libvlc_media_get_filestat( libvlc_media_t *p_md, unsigned type, uint64_t *out );
555
556/**
557 * Whether the media has been parsed.
558 *
559 * \param p_md media descriptor object
560 * \return true if the media has been parsed, false otherwise
561 * \version LibVLC 4.0.0 or later
562 */
564
565/**
566 * Sets media descriptor's user_data. user_data is specialized data
567 * accessed by the host application, VLC.framework uses it as a pointer to
568 * an native object that references a libvlc_media_t pointer
569 *
570 * \param p_md media descriptor object
571 * \param p_new_user_data pointer to user data
572 */
573LIBVLC_API void
574 libvlc_media_set_user_data( libvlc_media_t *p_md, void *p_new_user_data );
575
576/**
577 * Get media descriptor's user_data. user_data is specialized data
578 * accessed by the host application, VLC.framework uses it as a pointer to
579 * an native object that references a libvlc_media_t pointer
580 *
581 * \see libvlc_media_set_user_data
582 *
583 * \param p_md media descriptor object
584 */
586
587/**
588 * Get the track list for one type
589 *
590 * \version LibVLC 4.0.0 and later.
591 *
592 * \note You need to parse using libvlc_parser_queue() or play the media
593 * at least once before calling this function. Not doing this will result in
594 * an empty list.
595 *
596 * \see libvlc_media_tracklist_count
597 * \see libvlc_media_tracklist_at
598 *
599 * \param p_md media descriptor object
600 * \param type type of the track list to request
601 *
602 * \return a valid libvlc_media_tracklist_t or NULL in case of error, if there
603 * is no track for a category, the returned list will have a size of 0, delete
604 * with libvlc_media_tracklist_delete()
605 */
608
609/**
610 * Get codec description from media elementary stream
611 *
612 * Note, you need to parse using libvlc_parser_queue() or play the media
613 * at least once before calling this function.
614 *
615 * \version LibVLC 3.0.0 and later.
616 *
617 * \see libvlc_media_track_t
618 *
619 * \param i_type i_type from libvlc_media_track_t
620 * \param i_codec i_codec or i_original_fourcc from libvlc_media_track_t
621 *
622 * \return codec description
623 */
626 uint32_t i_codec );
627
628/**
629 * Get the media type of the media descriptor object
630 *
631 * \version LibVLC 3.0.0 and later.
632 *
633 * \see libvlc_media_type_t
634 *
635 * \param p_md media descriptor object
636 *
637 * \return media type
638 */
641
642/**
643 * Add a slave to the current media.
644 *
645 * A slave is an external input source that may contains an additional subtitle
646 * track (like a .srt) or an additional audio track (like a .ac3).
647 *
648 * \note This function must be called before the media is parsed (via
649 * libvlc_parser_queue()) or before the media is played (via
650 * libvlc_media_player_play())
651 *
652 * \version LibVLC 3.0.0 and later.
653 *
654 * \param p_md media descriptor object
655 * \param i_type subtitle or audio
656 * \param i_priority from 0 (low priority) to 4 (high priority)
657 * \param psz_uri Uri of the slave (should contain a valid scheme).
658 *
659 * \return 0 on success, -1 on error.
660 */
664 unsigned int i_priority,
665 const char *psz_uri );
666
667/**
668 * Clear all slaves previously added by libvlc_media_slaves_add() or
669 * internally.
670 *
671 * \version LibVLC 3.0.0 and later.
672 *
673 * \param p_md media descriptor object
674 */
677
678/**
679 * Get a media descriptor's slave list
680 *
681 * The list will contain slaves parsed by VLC or previously added by
682 * libvlc_media_slaves_add(). The typical use case of this function is to save
683 * a list of slave in a database for a later use.
684 *
685 * \version LibVLC 3.0.0 and later.
686 *
687 * \see libvlc_media_slaves_add
688 *
689 * \param p_md media descriptor object
690 * \param ppp_slaves address to store an allocated array of slaves (must be
691 * freed with libvlc_media_slaves_release()) [OUT]
692 *
693 * \return the number of slaves (zero on error)
694 */
697 libvlc_media_slave_t ***ppp_slaves );
698
699/**
700 * Release a media descriptor's slave list
701 *
702 * \version LibVLC 3.0.0 and later.
703 *
704 * \param pp_slaves slave array to release
705 * \param i_count number of elements in the array
706 */
709 unsigned int i_count );
710
711/** @}*/
712
713# ifdef __cplusplus
714}
715# endif
716
717#include <vlc/libvlc_parser.h>
718
719#endif /* VLC_LIBVLC_MEDIA_H */
struct libvlc_instance_t libvlc_instance_t
This structure is opaque.
Definition libvlc.h:76
int64_t libvlc_time_t
Represents a time value in microseconds.
Definition libvlc.h:79
struct libvlc_media_list_t libvlc_media_list_t
Definition libvlc_media_list.h:40
libvlc_track_type_t
Definition libvlc_media_track.h:45
struct libvlc_media_tracklist_t libvlc_media_tracklist_t
Opaque struct containing a list of tracks.
Definition libvlc_media_player.h:43
LIBVLC_API struct libvlc_media_list_t * libvlc_media_subitems(libvlc_media_t *p_md)
Get subitems of media descriptor object.
LIBVLC_API void libvlc_media_slaves_clear(libvlc_media_t *p_md)
Clear all slaves previously added by libvlc_media_slaves_add() or internally.
LIBVLC_API void libvlc_media_meta_extra_names_release(char **ppsz_names, unsigned i_count)
Release a media meta extra names.
LIBVLC_API libvlc_media_t * libvlc_media_new_fd(int fd)
Create a media for an already open file descriptor.
LIBVLC_API libvlc_media_t * libvlc_media_new_path(const char *path)
Create a media for a certain file path.
LIBVLC_API void libvlc_media_set_meta_extra(libvlc_media_t *p_md, const char *psz_name, const char *psz_value)
Set the meta of the media (this function will not save the meta, call libvlc_media_save_meta in order...
LIBVLC_API libvlc_media_t * libvlc_media_new_as_node(const char *psz_name)
Create a media as an empty node with a given name.
LIBVLC_API libvlc_media_t * libvlc_media_new_callbacks(const struct libvlc_media_open_cbs *cbs, void *cbs_opaque)
Create a media with custom callbacks to read the data from.
LIBVLC_API void libvlc_media_add_option(libvlc_media_t *p_md, const char *psz_options)
Add an option to the media.
LIBVLC_API const char * libvlc_media_get_codec_description(libvlc_track_type_t i_type, uint32_t i_codec)
Get codec description from media elementary stream.
libvlc_media_type_t
Media type.
Definition libvlc_media.h:132
#define VLC_FORWARD_DECLARE_OBJECT(a)
Definition libvlc_media.h:514
LIBVLC_API unsigned libvlc_media_get_meta_extra_names(libvlc_media_t *p_md, char ***pppsz_names)
Read the meta extra names of the media.
LIBVLC_API void libvlc_media_set_user_data(libvlc_media_t *p_md, void *p_new_user_data)
Sets media descriptor's user_data.
LIBVLC_API char * libvlc_media_get_meta(libvlc_media_t *p_md, libvlc_meta_t e_meta)
Read the meta of the media.
LIBVLC_API libvlc_media_t * libvlc_media_retain(libvlc_media_t *p_md)
Retain a reference to a media descriptor object (libvlc_media_t).
LIBVLC_API unsigned int libvlc_media_slaves_get(libvlc_media_t *p_md, libvlc_media_slave_t ***ppp_slaves)
Get a media descriptor's slave list.
LIBVLC_API libvlc_media_t * libvlc_media_duplicate(libvlc_media_t *p_md)
Duplicate a media descriptor object.
LIBVLC_API libvlc_media_tracklist_t * libvlc_media_get_tracklist(libvlc_media_t *p_md, libvlc_track_type_t type)
Get the track list for one type.
LIBVLC_API bool libvlc_media_get_stats(libvlc_media_t *p_md, libvlc_media_stats_t *p_stats)
Get the current statistics about the media.
libvlc_meta_t
Meta data types.
Definition libvlc_media.h:50
LIBVLC_API int libvlc_media_get_filestat(libvlc_media_t *p_md, unsigned type, uint64_t *out)
Get a 'stat' value of media descriptor object item.
LIBVLC_API void libvlc_media_add_option_flag(libvlc_media_t *p_md, const char *psz_options, unsigned i_flags)
Add an option to the media with configurable flags.
LIBVLC_API bool libvlc_media_is_parsed(libvlc_media_t *p_md)
Whether the media has been parsed.
libvlc_media_slave_type_t
Type of a media slave: subtitle or audio.
Definition libvlc_media.h:145
LIBVLC_API int libvlc_media_slaves_add(libvlc_media_t *p_md, libvlc_media_slave_type_t i_type, unsigned int i_priority, const char *psz_uri)
Add a slave to the current media.
LIBVLC_API char * libvlc_media_get_meta_extra(libvlc_media_t *p_md, const char *psz_name)
Read the meta extra of the media.
LIBVLC_API libvlc_media_type_t libvlc_media_get_type(libvlc_media_t *p_md)
Get the media type of the media descriptor object.
LIBVLC_API void libvlc_media_slaves_release(libvlc_media_slave_t **pp_slaves, unsigned int i_count)
Release a media descriptor's slave list.
libvlc_state_t
libvlc media or media_player state
Definition libvlc_media.h:85
LIBVLC_API void * libvlc_media_get_user_data(libvlc_media_t *p_md)
Get media descriptor's user_data.
LIBVLC_API int libvlc_media_save_meta(libvlc_instance_t *inst, libvlc_media_t *p_md)
Save the meta previously set.
LIBVLC_API libvlc_time_t libvlc_media_get_duration(libvlc_media_t *p_md)
Get duration (in us) of media descriptor object item.
LIBVLC_API void libvlc_media_set_meta(libvlc_media_t *p_md, libvlc_meta_t e_meta, const char *psz_value)
Set the meta of the media (this function will not save the meta, call libvlc_media_save_meta in order...
LIBVLC_API libvlc_media_t * libvlc_media_new_location(const char *psz_mrl)
Create a media with a certain given media resource location, for instance a valid URL.
LIBVLC_API char * libvlc_media_get_mrl(libvlc_media_t *p_md)
Get the media resource locator (mrl) from a media descriptor object.
struct libvlc_media_t libvlc_media_t
Definition libvlc_media.h:47
LIBVLC_API void libvlc_media_release(libvlc_media_t *p_md)
Decrement the reference count of a media descriptor object.
@ libvlc_media_type_directory
Definition libvlc_media.h:135
@ libvlc_media_type_file
Definition libvlc_media.h:134
@ libvlc_media_type_stream
Definition libvlc_media.h:137
@ libvlc_media_type_playlist
Definition libvlc_media.h:138
@ libvlc_media_type_disc
Definition libvlc_media.h:136
@ libvlc_media_type_unknown
Definition libvlc_media.h:133
@ libvlc_meta_DiscTotal
Definition libvlc_media.h:76
@ libvlc_meta_Setting
Definition libvlc_media.h:60
@ libvlc_meta_Genre
Definition libvlc_media.h:53
@ libvlc_meta_Season
Definition libvlc_media.h:70
@ libvlc_meta_Title
Definition libvlc_media.h:51
@ libvlc_meta_DiscNumber
Definition libvlc_media.h:75
@ libvlc_meta_Artist
Definition libvlc_media.h:52
@ libvlc_meta_TrackTotal
Definition libvlc_media.h:68
@ libvlc_meta_Rating
Definition libvlc_media.h:58
@ libvlc_meta_TrackNumber
Definition libvlc_media.h:56
@ libvlc_meta_EncodedBy
Definition libvlc_media.h:65
@ libvlc_meta_ArtworkURL
Definition libvlc_media.h:66
@ libvlc_meta_URL
Definition libvlc_media.h:61
@ libvlc_meta_Episode
Definition libvlc_media.h:71
@ libvlc_meta_ShowName
Definition libvlc_media.h:72
@ libvlc_meta_Album
Definition libvlc_media.h:55
@ libvlc_meta_Director
Definition libvlc_media.h:69
@ libvlc_meta_TrackID
Definition libvlc_media.h:67
@ libvlc_meta_Actors
Definition libvlc_media.h:73
@ libvlc_meta_Copyright
Definition libvlc_media.h:54
@ libvlc_meta_Publisher
Definition libvlc_media.h:64
@ libvlc_meta_Compilation
Definition libvlc_media.h:77
@ libvlc_meta_AlbumArtist
Definition libvlc_media.h:74
@ libvlc_meta_Language
Definition libvlc_media.h:62
@ libvlc_meta_Description
Definition libvlc_media.h:57
@ libvlc_meta_Date
Definition libvlc_media.h:59
@ libvlc_meta_NowPlaying
Definition libvlc_media.h:63
@ libvlc_media_slave_type_audio
Definition libvlc_media.h:148
@ libvlc_media_slave_type_generic
Definition libvlc_media.h:147
@ libvlc_media_slave_type_subtitle
Definition libvlc_media.h:146
@ libvlc_media_option_trusted
Definition libvlc_media.h:97
@ libvlc_media_option_unique
Definition libvlc_media.h:98
@ libvlc_Error
Definition libvlc_media.h:92
@ libvlc_Stopped
Definition libvlc_media.h:90
@ libvlc_NothingSpecial
Definition libvlc_media.h:86
@ libvlc_Stopping
Definition libvlc_media.h:91
@ libvlc_Paused
Definition libvlc_media.h:89
@ libvlc_Opening
Definition libvlc_media.h:87
@ libvlc_Playing
Definition libvlc_media.h:88
#define LIBVLC_API
Definition libvlc.h:42
int i_type
Definition httpd.c:1299
vlc_fourcc_t i_codec
Definition image.c:573
LibVLC media track.
LibVLC parser API.
struct defining callbacks for libvlc_media_new_callbacks()
Definition libvlc_media.h:172
void(* close)(void *data)
Callback prototype to close a custom bitstream input media.
Definition libvlc_media.h:242
uint32_t version
Version of struct libvlc_media_open_cbs.
Definition libvlc_media.h:176
int(* seek)(void *data, uint64_t offset)
Callback prototype to seek a custom bitstream input media.
Definition libvlc_media.h:232
int(* open)(void *cbs_opaque, void **datap, uint64_t *sizep)
Callback prototype to open a custom bitstream input media.
Definition libvlc_media.h:202
ptrdiff_t(* read)(void *data, unsigned char *buf, size_t len)
Callback prototype to read data from a custom bitstream input media.
Definition libvlc_media.h:220
A slave of a libvlc_media_t.
Definition libvlc_media.h:156
unsigned int i_priority
Definition libvlc_media.h:159
libvlc_media_slave_type_t i_type
Definition libvlc_media.h:158
char * psz_uri
Definition libvlc_media.h:157
Definition libvlc_media.h:102
uint64_t i_demux_read_bytes
Definition libvlc_media.h:108
uint64_t i_read_bytes
Definition libvlc_media.h:104
uint64_t i_late_pictures
Definition libvlc_media.h:119
uint64_t i_decoded_audio
Definition libvlc_media.h:115
float f_input_bitrate
Definition libvlc_media.h:105
uint64_t i_lost_abuffers
Definition libvlc_media.h:124
uint64_t i_played_abuffers
Definition libvlc_media.h:123
uint64_t i_demux_discontinuity
Definition libvlc_media.h:111
uint64_t i_demux_corrupted
Definition libvlc_media.h:110
uint64_t i_decoded_video
Definition libvlc_media.h:114
float f_demux_bitrate
Definition libvlc_media.h:109
uint64_t i_displayed_pictures
Definition libvlc_media.h:118
uint64_t i_lost_pictures
Definition libvlc_media.h:120
const char * psz_name
Definition text_style.c:33
char psz_value[8]
Definition vout_intf.c:110