libVLC-3

9.media player

LIBVLC_APIlibvlc_media_player_t*libvlc_media_player_new(libvlc_instance_t*p_libvlc_instance)

Create an empty Media Player object.

LIBVLC_APIlibvlc_media_player_t*libvlc_media_player_new_from_media(libvlc_media_t*p_md)

Create a Media Player object from a Media.

LIBVLC_APIvoidlibvlc_media_player_release(libvlc_media_player_t*p_mi)

Release a media_player after use Decrement the reference count of a media player object.

LIBVLC_APIvoidlibvlc_media_player_retain(libvlc_media_player_t*p_mi)

Retain a reference to a media player object.

LIBVLC_APIvoidlibvlc_media_player_set_media(libvlc_media_player_t*p_mi,libvlc_media_t*p_md)

Set the media that will be used by the media_player.

LIBVLC_APIlibvlc_media_t*libvlc_media_player_get_media(libvlc_media_player_t*p_mi)

Get the media used by the media_player.

LIBVLC_APIlibvlc_event_manager_t*libvlc_media_player_event_manager(libvlc_media_player_t*p_mi)

Get the Event Manager from which the media player send event.

LIBVLC_APIintlibvlc_media_player_is_playing(libvlc_media_player_t*p_mi)

is_playing

LIBVLC_APIintlibvlc_media_player_play(libvlc_media_player_t*p_mi)

Play.

LIBVLC_APIvoidlibvlc_media_player_set_pause(libvlc_media_player_t*mp, int do_pause)

Pause or resume (no effect if there is no media)

LIBVLC_APIvoidlibvlc_media_player_pause(libvlc_media_player_t*p_mi)

Toggle pause (no effect if there is no media)

LIBVLC_APIvoidlibvlc_media_player_stop(libvlc_media_player_t*p_mi)

Stop (no effect if there is no media)

LIBVLC_APIvoidlibvlc_video_set_callbacks(libvlc_media_player_t*mp,libvlc_video_lock_cblock,libvlc_video_unlock_cbunlock,libvlc_video_display_cbdisplay, void *opaque)

Set callbacks and private data to render decoded video to a custom area in memory.

LIBVLC_APIvoidlibvlc_video_set_format(libvlc_media_player_t*mp, const char *chroma, unsigned width, unsigned height, unsigned pitch)

Set decoded video chroma and dimensions.

LIBVLC_APIvoidlibvlc_video_set_format_callbacks(libvlc_media_player_t*mp,libvlc_video_format_cbsetup,libvlc_video_cleanup_cbcleanup)

Set decoded video chroma and dimensions.

LIBVLC_APIvoidlibvlc_media_player_set_nsobject(libvlc_media_player_t*p_mi, void *drawable)

Set the NSView handler where the media player should render its video output.

LIBVLC_APIvoid *libvlc_media_player_get_nsobject(libvlc_media_player_t*p_mi)

Get the NSView handler previously set withlibvlc_media_player_set_nsobject().

LIBVLC_APIvoidlibvlc_media_player_set_agl(libvlc_media_player_t*p_mi, uint32_t drawable)

Set the agl handler where the media player should render its video output.

LIBVLC_APIuint32_tlibvlc_media_player_get_agl(libvlc_media_player_t*p_mi)

Get the agl handler previously set withlibvlc_media_player_set_agl().

LIBVLC_APIvoidlibvlc_media_player_set_xwindow(libvlc_media_player_t*p_mi, uint32_t drawable)

Set an X Window System drawable where the media player should render its video output.

LIBVLC_APIuint32_tlibvlc_media_player_get_xwindow(libvlc_media_player_t*p_mi)

Get the X Window System window identifier previously set withlibvlc_media_player_set_xwindow().

LIBVLC_APIvoidlibvlc_media_player_set_hwnd(libvlc_media_player_t*p_mi, void *drawable)

Set a Win32/Win64 API window handle (HWND) where the media player should render its video output.

LIBVLC_APIvoid *libvlc_media_player_get_hwnd(libvlc_media_player_t*p_mi)

Get the Windows API window handle (HWND) previously set withlibvlc_media_player_set_hwnd().

LIBVLC_APIvoidlibvlc_media_player_set_android_context(libvlc_media_player_t*p_mi, void *p_jvm, void *p_awindow_handler)

Set the android context.

LIBVLC_APIvoidlibvlc_audio_set_callbacks(libvlc_media_player_t*mp,libvlc_audio_play_cbplay,libvlc_audio_pause_cbpause,libvlc_audio_resume_cbresume,libvlc_audio_flush_cbflush,libvlc_audio_drain_cbdrain, void *opaque)

Set callbacks and private data for decoded audio.

LIBVLC_APIvoidlibvlc_audio_set_volume_callback(libvlc_media_player_t*mp,libvlc_audio_set_volume_cbset_volume)

Set callbacks and private data for decoded audio.

LIBVLC_APIvoidlibvlc_audio_set_format_callbacks(libvlc_media_player_t*mp,libvlc_audio_setup_cbsetup,libvlc_audio_cleanup_cbcleanup)

Set decoded audio format.

LIBVLC_APIvoidlibvlc_audio_set_format(libvlc_media_player_t*mp, const char *format, unsigned rate, unsigned channels)

Set decoded audio format.

LIBVLC_APIlibvlc_time_tlibvlc_media_player_get_length(libvlc_media_player_t*p_mi)

Get the current movie length (in ms).

LIBVLC_APIlibvlc_time_tlibvlc_media_player_get_time(libvlc_media_player_t*p_mi)

Get the current movie time (in ms).

LIBVLC_APIvoidlibvlc_media_player_set_time(libvlc_media_player_t*p_mi,libvlc_time_ti_time)

Set the movie time (in ms).

LIBVLC_APIfloatlibvlc_media_player_get_position(libvlc_media_player_t*p_mi)

Get movie position as percentage between 0.0 and 1.0.

LIBVLC_APIvoidlibvlc_media_player_set_position(libvlc_media_player_t*p_mi, float f_pos)

Set movie position as percentage between 0.0 and 1.0.

LIBVLC_APIvoidlibvlc_media_player_set_chapter(libvlc_media_player_t*p_mi, int i_chapter)

Set movie chapter (if applicable).

LIBVLC_APIintlibvlc_media_player_get_chapter(libvlc_media_player_t*p_mi)

Get movie chapter.

LIBVLC_APIintlibvlc_media_player_get_chapter_count(libvlc_media_player_t*p_mi)

Get movie chapter count.

LIBVLC_APIintlibvlc_media_player_will_play(libvlc_media_player_t*p_mi)

Is the player able to play.

LIBVLC_APIintlibvlc_media_player_get_chapter_count_for_title(libvlc_media_player_t*p_mi, int i_title)

Get title chapter count.

LIBVLC_APIvoidlibvlc_media_player_set_title(libvlc_media_player_t*p_mi, int i_title)

Set movie title.

LIBVLC_APIintlibvlc_media_player_get_title(libvlc_media_player_t*p_mi)

Get movie title.

LIBVLC_APIintlibvlc_media_player_get_title_count(libvlc_media_player_t*p_mi)

Get movie title count.

LIBVLC_APIvoidlibvlc_media_player_previous_chapter(libvlc_media_player_t*p_mi)

Set previous chapter (if applicable)

LIBVLC_APIvoidlibvlc_media_player_next_chapter(libvlc_media_player_t*p_mi)

Set next chapter (if applicable)

LIBVLC_APIfloatlibvlc_media_player_get_rate(libvlc_media_player_t*p_mi)

Get the requested movie play rate.

LIBVLC_APIintlibvlc_media_player_set_rate(libvlc_media_player_t*p_mi, float rate)

Set movie play rate.

LIBVLC_APIlibvlc_state_tlibvlc_media_player_get_state(libvlc_media_player_t*p_mi)

Get current movie state.

LIBVLC_APIfloatlibvlc_media_player_get_fps(libvlc_media_player_t*p_mi)

Get movie fps rate.

LIBVLC_APIunsignedlibvlc_media_player_has_vout(libvlc_media_player_t*p_mi)

end bug

LIBVLC_APIintlibvlc_media_player_is_seekable(libvlc_media_player_t*p_mi)

Is this media player seekable?

LIBVLC_APIintlibvlc_media_player_can_pause(libvlc_media_player_t*p_mi)

Can this media player be paused?

LIBVLC_APIintlibvlc_media_player_program_scrambled(libvlc_media_player_t*p_mi)

Check if the current program is scrambled.

LIBVLC_APIvoidlibvlc_media_player_next_frame(libvlc_media_player_t*p_mi)

Display the next frame (if supported)

LIBVLC_APIvoidlibvlc_media_player_navigate(libvlc_media_player_t*p_mi, unsigned navigate)

Navigate through DVD Menu.

LIBVLC_APIvoidlibvlc_media_player_set_video_title_display(libvlc_media_player_t*p_mi,libvlc_position_tposition, unsigned int timeout)

Set if, and how, the video title will be shown when media is played.

LIBVLC_APIvoidlibvlc_track_description_list_release(libvlc_track_description_t*p_track_description)

Release (free)libvlc_track_description_t.

LIBVLC_DEPRECATEDLIBVLC_APIvoidlibvlc_track_description_release(libvlc_track_description_t*p_track_description)

10.vlm stream output

LIBVLC_APIvoidlibvlc_vlm_release(libvlc_instance_t*p_instance)

Release the vlm instance related to the given libvlc_instance_t.

LIBVLC_APIintlibvlc_vlm_add_broadcast(libvlc_instance_t*p_instance, const char *psz_name, const char *psz_input, const char *psz_output, int i_options, const char *const *ppsz_options, int b_enabled, int b_loop)

Add a broadcast, with one input.

LIBVLC_APIintlibvlc_vlm_add_vod(libvlc_instance_t*p_instance, const char *psz_name, const char *psz_input, int i_options, const char *const *ppsz_options, int b_enabled, const char *psz_mux)

Add a vod, with one input.

LIBVLC_APIintlibvlc_vlm_del_media(libvlc_instance_t*p_instance, const char *psz_name)

Delete a media (VOD or broadcast).

LIBVLC_APIintlibvlc_vlm_set_enabled(libvlc_instance_t*p_instance, const char *psz_name, int b_enabled)

Enable or disable a media (VOD or broadcast).

LIBVLC_APIintlibvlc_vlm_set_output(libvlc_instance_t*p_instance, const char *psz_name, const char *psz_output)

Set the output for a media.

LIBVLC_APIintlibvlc_vlm_set_input(libvlc_instance_t*p_instance, const char *psz_name, const char *psz_input)

Set a media's input MRL.

LIBVLC_APIintlibvlc_vlm_add_input(libvlc_instance_t*p_instance, const char *psz_name, const char *psz_input)

Add a media's input MRL.

LIBVLC_APIintlibvlc_vlm_set_loop(libvlc_instance_t*p_instance, const char *psz_name, int b_loop)

Set a media's loop status.

LIBVLC_APIintlibvlc_vlm_set_mux(libvlc_instance_t*p_instance, const char *psz_name, const char *psz_mux)

Set a media's vod muxer.

LIBVLC_APIintlibvlc_vlm_change_media(libvlc_instance_t*p_instance, const char *psz_name, const char *psz_input, const char *psz_output, int i_options, const char *const *ppsz_options, int b_enabled, int b_loop)

Edit the parameters of a media.

LIBVLC_APIintlibvlc_vlm_play_media(libvlc_instance_t*p_instance, const char *psz_name)

Play the named broadcast.

LIBVLC_APIintlibvlc_vlm_stop_media(libvlc_instance_t*p_instance, const char *psz_name)

Stop the named broadcast.

LIBVLC_APIintlibvlc_vlm_pause_media(libvlc_instance_t*p_instance, const char *psz_name)

Pause the named broadcast.

LIBVLC_APIintlibvlc_vlm_seek_media(libvlc_instance_t*p_instance, const char *psz_name, float f_percentage)

Seek in the named broadcast.

LIBVLC_APIconst char *libvlc_vlm_show_media(libvlc_instance_t*p_instance, const char *psz_name)

Return information about the named media as a JSON string representation.

LIBVLC_APIfloatlibvlc_vlm_get_media_instance_position(libvlc_instance_t*p_instance, const char *psz_name, int i_instance)

Get vlm_media instance position by name or instance id.

LIBVLC_APIintlibvlc_vlm_get_media_instance_time(libvlc_instance_t*p_instance, const char *psz_name, int i_instance)

Get vlm_media instance time by name or instance id.

LIBVLC_APIintlibvlc_vlm_get_media_instance_length(libvlc_instance_t*p_instance, const char *psz_name, int i_instance)

Get vlm_media instance length by name or instance id.

LIBVLC_APIintlibvlc_vlm_get_media_instance_rate(libvlc_instance_t*p_instance, const char *psz_name, int i_instance)

Get vlm_media instance playback rate by name or instance id.

LIBVLC_APIlibvlc_event_manager_t*libvlc_vlm_get_event_manager(libvlc_instance_t*p_instance)

Get libvlc_event_manager from a vlm media.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末卧秘,一起剝皮案震驚了整個(gè)濱河市篡九,隨后出現(xiàn)的幾起案子犀被,更是在濱河造成了極大的恐慌瘾婿,老刑警劉巖雾鬼,帶你破解...
    沈念sama閱讀 211,194評(píng)論 6 490
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件擎鸠,死亡現(xiàn)場離奇詭異腺阳,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī)于置,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,058評(píng)論 2 385
  • 文/潘曉璐 我一進(jìn)店門茧吊,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人八毯,你說我怎么就攤上這事搓侄。” “怎么了话速?”我有些...
    開封第一講書人閱讀 156,780評(píng)論 0 346
  • 文/不壞的土叔 我叫張陵讶踪,是天一觀的道長。 經(jīng)常有香客問我泊交,道長乳讥,這世上最難降的妖魔是什么筹麸? 我笑而不...
    開封第一講書人閱讀 56,388評(píng)論 1 283
  • 正文 為了忘掉前任,我火速辦了婚禮雏婶,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘白指。我一直安慰自己留晚,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 65,430評(píng)論 5 384
  • 文/花漫 我一把揭開白布告嘲。 她就那樣靜靜地躺著错维,像睡著了一般。 火紅的嫁衣襯著肌膚如雪橄唬。 梳的紋絲不亂的頭發(fā)上赋焕,一...
    開封第一講書人閱讀 49,764評(píng)論 1 290
  • 那天,我揣著相機(jī)與錄音仰楚,去河邊找鬼隆判。 笑死,一個(gè)胖子當(dāng)著我的面吹牛僧界,可吹牛的內(nèi)容都是我干的侨嘀。 我是一名探鬼主播,決...
    沈念sama閱讀 38,907評(píng)論 3 406
  • 文/蒼蘭香墨 我猛地睜開眼捂襟,長吁一口氣:“原來是場噩夢啊……” “哼咬腕!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起葬荷,我...
    開封第一講書人閱讀 37,679評(píng)論 0 266
  • 序言:老撾萬榮一對情侶失蹤涨共,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后宠漩,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體举反,經(jīng)...
    沈念sama閱讀 44,122評(píng)論 1 303
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,459評(píng)論 2 325
  • 正文 我和宋清朗相戀三年扒吁,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了照筑。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 38,605評(píng)論 1 340
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡瘦陈,死狀恐怖凝危,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情晨逝,我是刑警寧澤蛾默,帶...
    沈念sama閱讀 34,270評(píng)論 4 329
  • 正文 年R本政府宣布,位于F島的核電站捉貌,受9級(jí)特大地震影響支鸡,放射性物質(zhì)發(fā)生泄漏冬念。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,867評(píng)論 3 312
  • 文/蒙蒙 一牧挣、第九天 我趴在偏房一處隱蔽的房頂上張望急前。 院中可真熱鬧,春花似錦瀑构、人聲如沸裆针。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,734評(píng)論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽世吨。三九已至,卻和暖如春呻征,著一層夾襖步出監(jiān)牢的瞬間耘婚,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 31,961評(píng)論 1 265
  • 我被黑心中介騙來泰國打工陆赋, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留沐祷,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 46,297評(píng)論 2 360
  • 正文 我出身青樓攒岛,卻偏偏與公主長得像戈轿,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個(gè)殘疾皇子阵子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 43,472評(píng)論 2 348

推薦閱讀更多精彩內(nèi)容

  • 1.playlist libvlc_playlist_play(libvlc_instance_t*p_insta...
    hello_math閱讀 3,457評(píng)論 0 1
  • 7.LIBVLC_APIlibvlc_media_list_t*libvlc_media_list_new(lib...
    hello_math閱讀 1,153評(píng)論 0 1
  • 在我小時(shí)候思杯,是日漫在中國最后的黃金時(shí)期,以及國漫尚未粗制濫造的時(shí)候挠进。各大衛(wèi)視為了蹭一波熱度色乾,均設(shè)有專播動(dòng)畫的欄目。...
    光年旋律閱讀 148評(píng)論 0 0
  • 他會(huì)在熱鬧喧囂中緘默到讓世界忘卻领突,亦會(huì)在安靜里嘟囔個(gè)不停暖璧。他不記得上次聚會(huì)她有沒出現(xiàn),沒太在意君旦,所以連記憶都顯得應(yīng)...
    vpt閱讀 212評(píng)論 0 0
  • 是的澎办,你沒有看錯(cuò),本小仙女又來了金砍,今天我不想寫什么技術(shù)文章局蚀,不想寫什么生活美好,大好河山恕稠,我今天只想講講我的男票—...
    炒雞可耐的小葵花閱讀 394評(píng)論 5 1