如何在网页上vlc嵌入网页vlc播放器

vlc网页播放器_视频在线观看_百度视频
vlc网页播放器相关视频:
大家都在搜:
百度视频搜索结果源于互联网视频网站,系计算机系统根据搜索热度自动排列,不代表百度赞成被搜索网站的内容或立场。VLC Activex控件(VideoLAN.VLCPlugin.1 VideoLAN.VLCPlugin.2)的所有方法 属性及使用 在一个老外的网站上找到的 -
- ITeye技术网站
无意中在老外的网站上发现了关于VideoLAN.VLCPlugin.1和VideoLAN.VLCPlugin.2所有方法和属性~~公布出来~~以免大家浪费时间去寻找~~(注意你使用的VLC的版本)
o
If you open a link to a video file handled by the VLC plugin (To get the list of handled types, browse to about:plugins) or a page with an embedded video, the plugin should open and read the video.
Build HTML pages that use the plugin (version &= 0.8.5)
The following API description is only valid uptill version 0.8.5 of the mozilla plugin.
Additionally to viewing video on all pages, you can build custom pages that will use the advanced features of the plugin, using Javascript functions to control playback or extract information from the plugin.
The vlc plugin supports the following function calls:
oplay() : Start playing media in the plugin.
opause() : Pause playback.
ostop() : Stop media playback.
ofullscreen() : Switch the video to full screen.
oset_volume(vol) : Set the volume. vol has to be an int in the 0-200 range.
oget_volume() : Get the current volume setting.
omute() : Toggle volume muting.
oset_int_variable(var_name, value) :
oset_bool_variable(var_name, value) :
oset_str_variable(var_name, value) :
oget_int_variable(var_name) :
oget_bool_variable(var_name) :
oget_str_variable(var_name) :
oclear_playlist() : Clear the playlist.
oadd_item(mrl) : Append an item whose location is given by the Media Resource Locator to the playlist.
oprevious()
oisplaying() : return true if the plugin is playing something.
oget_length() : Get the media's length in seconds.
oget_position() : Get the current position in the media in percent.
oget_time() : Get the current position in the media in seconds.
oseek(seconds,is_relative) : If is_relative is true, seek relatively to current time, else seek from beginning of the stream. Seek time is specified in seconds.
Here are a few examples of HTML pages that use the Mozilla plugin.
In this example, the plugin will read an HTTP stream inside the web page. If the user goes fullscreen, he will have to press f to go back in normal view.
&html& &head&&title&Demo of VLC mozilla plugin&/title&&/head& &body& &h1&Demo of VLC mozilla plugin - Example 1&/h1& &embed type="application/x-vlc-plugin" name="video1" autoplay="no" loop="yes" width="400" height="300" target="http://server.example.org/video1.vob" /& &br /& &a href="javascript:;" onclick='document.video1.play()'&Play video1&/a& &a href="javascript:;" onclick='document.video1.pause()'&Pause video1&/a& &a href="javascript:;" onclick='document.video1.stop()'&Stop video1&/a& &a href="javascript:;" onclick='document.video1.fullscreen()'&Fullscreen&/a& &/body& &/html&
Example 2
In this example, the plugin will read a multicast RTP/UDP stream in a dedicated video output window.
&html& &head&&title&Demo of VLC mozilla plugin&/title&&/head& &body& &h1&Demo of VLC mozilla plugin - Example 2&/h1& &embed type="application/x-vlc-plugin" name="video2" autoplay="no" loop="no" hidden="yes" target="rtp://@239.255.12.42:5004" /& &br /& &a href="javascript:;" onclick='document.video2.play()'&Play video2&/a& &a href="javascript:;" onclick='document.video2.stop()'&Stop video2&/a& &a href="javascript:;" onclick='document.video2.fullscreen()'&Fullscreen&/a& &/body& &/html&
Build HTML pages that use the plugin (version & 0.8.5.1)
Additionally to viewing video on all pages, you can build custom pages that will use the advanced features of the plugin, using Javascript functions to control playback or extract information from the plugin.
The vlc plugin exports serveral objects that can be accessed for setting and getting information. When used improperly the API's will throw an exception that includes a string that explains what happened. For example when asking for vlc.input.length when there is no playlist item playing.
The vlc plugin knows the following objects:
oaudio : Access audio properties.
oinput : Access input properties.
oplaylist : Access playlist properties.
ovideo : Access video properties.
olog : Access log properties.
omessages : Access to log message properties.
oiterator : Access to log iterator properties.
The following JavaScript code shows howto get a reference to the vlc plugin. This reference can then be used to access the objects of the vlc plugin.
&html& &title&VLC Mozilla plugin test page&/title& &body& &embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2" width="640" height="480" id="vlc"& &/embed& &script language="Javascript"& &!-- var vlc = document.getElementById("vlc"); vlc.audio.toggleMute(); !--& &/script& &/body& &/html&
Root object
readonly properties
oVersionInfo : returns version information string
read/write properties
ovlc.versionInfo() : returns version information string
Audio object
readonly properties
read/write properties
ovlc.audio.mute : boolean value to mute and ummute the audio
ovlc.audio.volume : a value between [0-200] which indicates a percentage of the volume.
ovlc.audio.track : a value between [0-65535] which indicates the audio track to play or that is playing. (supported in vlc version & 0.8.6)
ovlc.audio.channel : an integer between 1 and 5 that indicates which audio channel mode is used, values can be: "1=stereo", "2=reverse stereo", "3=left", "4=right", "5=dolby". Use vlc.audio.channel to check if setting of the new audio channel has succeeded. (supported in vlc version & 0.8.6)
Audio Channel: &SELECT readonly onChange='doAudioChannel(this.value)'& &OPTION value=1&Stereo&/OPTION'& &OPTION value=2&Reverse stereo&/OPTION'& &OPTION value=3&Left&/OPTION'& &OPTION value=4&Right&/OPTION'& &OPTION value=5&Dolby&/OPTION'& &/SELECT'& &SCRIPT language="javascript"'& &!-- function doAudioChannel(value) { var vlc = getVLC("vlc"); vlc.audio.channel = parseInt(value); alert(vlc.audio.channel); }; --'&
methods
ovlc.audio.toggleMute() : boolean toggle that mutes and unmutes the audio based upon the previous state
Input object
readonly properties
ovlc.input.length : length of the input file in number of milliseconds
ovlc.input.fps : frames per second returned as a float
ovlc.input.hasVout : a boolean that returns true when the video is being displayed, it returns false when video is not displayed
read/write properties
ovlc.input.position : normalized position in multimedia stream item given as a float value between [0.0 - 1.0]
ovlc.input.time : the absolute position in time given in milliseconds, this property can be used to seek through the stream
&!-- absolute seek in stream !--& vlc.input.time = &absolute seek& &!-- relative seek in stream !--& vlc.input.time = vlc.input.time + &relative seek&
ovlc.input.state : current state of the input chain given as enumeration (IDLE/CLOSE=0, OPENING=1, BUFFERING=2, PLAYING=3, PAUSED=4, STOPPING=5, ERROR=6)
ovlc.input.rate : input speed given as float (1.0 for normal speed, 0.5 for half speed, 2.0 for twice as fast, etc.)
Playlist object
readonly properties
ovlc.playlist.itemCount : number that returns the amount of items currently in the playlist
ovlc.playlist.isPlaying : a boolean that returns true if the current playlist item is playing and false when it is not playing
read/write properties
ovlc.playlist.add(mrl) : add a playlist item as MRL (Multimedia Resource Locator). The MRL must be given as a string.
ovlc.playlist.add(mrl,name,options) : add a playlist item as MRL (Multimedia Resource Locator), with metaname 'name' and options 'options'. All input values must be given as string.
ovlc.playlist.play() : start playing the current playlist item
ovlc.playlist.togglePause() : toggle the pause state for the current playlist item
ovlc.playlist.stop() : stop playing the current playlist item
ovlc.playlist.next() : iterate to the next playlist item
ovlc.playlist.prev() : iterate to the previous playlist item
ovlc.playlist.clear() : empty the current playlist, all items will be deleted from the playlist
ovlc.playlist.removeItem(number) : remove the given item number (which cannot be greater then vlc.playlist.itemCount)
Video object
readonly properties
ovlc.video.width : returns the horizontal size of the video
ovlc.video.height : returns the vertical size of the video
read/write properties
ovlc.video.fullscreen : when set to true the video will be displayed in fullscreen mode, when set to false the video will be shown inside the video output size. The property takes a boolean as input.
ovlc.video.aspectRatio : get and set the aspect ratio to use in the video screen. The property takes a string as input value. Valid values are: "1:1", "4:3", "16:9", "16:10", "221:100" and "5:4"
ovlc.video.toggleFullscreen() : toggle the fullscreen mode based on the previous setting
Log object
readonly properties
ovlc.log.messages : returns a messages object
read/write properties
ovlc.log.verbosity : write number [-1,0,1,2,3] for changing the verbosity level of the log messages. The numbers have the following meaning: -1 disable, 0 info, 1 error, 2 warning, 3 debug.
Messages object
readonly properties
omessages.count : returns number of messages in the log
omessages.severity : number that indicates the severity of the log message (0 = info, 1 = error, 2 = warning, 3 = debug)
omessage.name : name of VLC module that printed the log message (e.g: main, http, directx, etc...)
omessage.type : type of VLC module that printed the log message (eg: input, access, vout, sout, etc...)
omessage.message : the message text
read/write properties
omessages.clear() : clear the current log buffer. It should be called as frequently as possible to not overflow the plugins logging buffer. Call this method after the log messages of interest are read.
omessages.iterator() : returns a messages iterator object, which is used to iterate over the messages in the log. Don't clear the log buffer while holding an iterator object.
Iterator object
readonly properties
oiterator.hasNext : returns a boolean that indicates when true, that wheter vlc.log.messages.next() returns the next message.
read/write properties
oiterator.next() : returns the next message object it the log
浏览: 21760 次
来自: 上海
额 LZ能否分享分代码看看啊
我在做网页嵌入vlc播放器
找了好多资料也就是一段 ...求大神帮忙,我想在网页上用vlc插件播放一段视频_html吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:79,927贴子:
求大神帮忙,我想在网页上用vlc插件播放一段视频收藏
我想在网页上用vlc插件播放一段视频,看了几个帖子代码:&HTML&
&HEAD&&TITLE&使用embed来添加Flash动画&/TITLE&
&BODY&&center&
&embed width=700
height=500 src=&snopy.swf&&&/center&
&/BODY&&/HTML&//////////////////////////////////////////////////////////////////////////////几个帖子中,都是用embed,我把src赋值成mp4视频就播放不出来了,只能显示vlc的播放器界面我的代码:&html&&head&&title&插入多媒体示例&/title&&body topmargin=&5& leftmargin=&20&&
&object classid=&clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921& width=&1300& height=&600&
codebase=&&& &embed type=&application/x-vlc-plugin& pluginspage=&& src=&C:\Users\Administrator\Desktop\sample\vg.mp4& width=&400& height=&300&&&/embed&&/object&&br/&
&/body&&/html&那么问题来了,我应该如何修改?
html培训,千锋Html5培训,名企内部推荐就业,面对面教学模式,成就高薪互联网工程师!html培训,企业级项目实战,总监级名师面授,0基础4个月速成为web开发工程师,高薪就业!
html5中有个属性video标签直接插入就行了 &video id=&video1& &
&source src=&mov_bbb.mp4& type=&video/mp4& /&
&source src=&mov_bbb.ogg& type=&video/ogg& /
补充下,还需要你浏览器是否支持video这个标签
&video width=&800& height=&480& controls=&controls&& &source src=&vg.mp4& type=&video/mp4& /& &source src=&vg.rmvb& type=&video/rmvb& /& &source src=&vg.flv& type=&video/flv& /& &object data=&vg.mp4& width=&800& height=&480&& &embed src=&vg.swf& width=&800& height=&480& /& &/object& &/video& &!-- w3sc上的。你看一下。。。 --&
请不要歪楼,同求
登录百度帐号推荐应用
为兴趣而生,贴吧更懂你。或冬至,小编的双手已被封印,是时候远离鼠标键盘多出去走走了。
iPhone意外关机原因已发现,与电池有关,但不是安全问题。
所有 TGA 获得提名的游戏会在全部上架平台(PS/Xbox/Steam)上进行打折活动。
如果你还遇到了其它问题,可以直接到苹果零售店咨询天才吧员工。
从图中我们可以十分清晰地了解到这段期间以来发布的设备都使用了哪些芯片,以及这些iO...
Note7的回收率在截至周三时可能已经达到83%。
苹果的心思或许永远都不会被我们猜透,但说不定哪一天AirPort产品会以另一种形态重新...
苹果向 NHTSA 递交的信中透露出了对自动驾驶汽车进行测试的意向。
图片标注逐渐成为 App 争夺的一个细分领地,随着苹果也在 iOS 10 中加入了原生的图片...
游戏的画面确实非常漂亮,简单的线条同样将各种钻井设施描绘的活灵活现,人设方面也是...
《Post Brutal》作为一款末日丧尸系游戏,本身对于剧情的把握还是比较出色的,并且在...
本作是一款冒险游戏,改编自世界知名童话《睡美人》。
开发商 [adult swim] 。游戏支持中文版本,玩家们体验上不会有太大的障碍,可玩性比较...
在这款游戏之中,玩家将会亲自感受到每一步都要相当心机,因为光靠“躺赢”你可能抵不...
顾名思义!《太阳系》这款应用主要就是希望能够邀请孩子们一起探索太阳系,在太空中遨...
闲来没事摇一摇,手机竟然又满电了。
国内用户应该会最关心App Store商店活动有没有。
如果这封邮件是真实的,那么 AirPods 的推出日期总算是有了眉目~
苹果上个月调查发现,亚马逊平台上所谓的正版充电头以及数据线,有超过 90% 都是冒牌...
在文字输入方面,不少人还是希望能配有一个物理键盘以便能更快更舒服地进行打字操作。
显示 6 到 8 周内发货没多久,又再度回归到无货状态,一小会就卖完了?
随着MFi认证的概念越来越被消费者所熟知,但假冒的也开始增多了。
如果你觉得苹果官方推出的充电保护壳太难看的话,ThinCharge 会是一个不错的选择。
VLC播放的流媒体网址哪里找
注册时间 最后登录
在线时间531 小时 UID
主题帖子人气
白苹果, 积分 1491, 距离下一级还需 9 积分
如题,不久前看到锋友介绍的vlc播放器看电视内容挺丰富的,刚装上却发现楼主留的流媒体网址也被屏蔽了,哪里能找到呢?
注册时间 最后登录
在线时间531 小时 UID
主题帖子人气
回这个帖有风险么?完全被无视了,自己顶.
威锋旗下产品
Hi~我是威威!
沪公网安备 29号 | 沪ICP备号-1
新三板上市公司威锋科技(836555)
增值电信业务经营许可证:
Powered by Discuz!

我要回帖

更多关于 vlc嵌入网页 的文章

 

随机推荐