Video Player without controls

Adelino Filho

New Member
Hello,
How do I add controls "Pause", "Play", "Stop" and microphone on / off, this video player:
<div id="remoteVideo" class="display"></div>

I've tried to change <video id="remoteVideo" class="display"> </ video> but it does not open.
Someone there could?
Help me please.
 

Max

Administrator
Staff member
Hello

This is a live player for a live real-time stream.
So you have to add custom control buttons.
Examples:
HTML:
<button onClick="stop()" value="Stop"/>
<button onClick="play()" value="Stop"/>
<button onClick="muteAudio()" value="Mute"/>
<button onClick="muteVideo()" value="MuteVideo"/>
etc

Here you can see how mute / unmute controls work for Phone sample
Here you can see how play / stop controls work for Player sample

If you need default controls, you can try to set
Code:
video.controls=true
http://www.w3schools.com/jsref/prop_video_controls.asp
 

Adelino Filho

New Member
Thanks for the answer...
But what part of the JS to execute the button commands?
<Button onclick = "stop ()" value = "Stop" />
<Button onclick = "play ()" value = "Stop" />
<Button onclick = "muteAudio ()" value = "Mute" />
<Button onclick = "muteVideo ()" value = "MuteVideo" />

Not here "player.js" has nothing of the necessary commands.
My test balked in the Player. I'm waiting for help.
 

Adelino Filho

New Member
Hi friend,
Forgive me .. is that I am new in WCS (met yesterday), and am not very experienced in JS.

Do you have any example of Player running with the controls?
Already I researched all demos here, and not found anything.

The instructions that you passed me now, I seem to be very rich, however it would take a few months to understand.
Type: I have to install these "Web SDK" to operate the controls?
 

Max

Administrator
Staff member
Web SDK is just JavaScript API
I'm sorry but you need JavaScript experience to integrate this player with your web page. Or you need a front-end developer who will do that for you.
 

Adelino Filho

New Member
Hello Friend,
First of all, I understand you.
After all, you know how to do, just imagine that the others should understand so easily.
Despite being new here, I'm self-taught .. Incluisve already installed WCS, it set up perfectly .. I even changed some demos.

I really enjoyed the work of you.
If the <video> tag for sure I would have already solved this issue.
But with the example of you, so far not seen anything working with the functions requested here.

My initial interese is only and solely "Two-way streaming".
If Mr. Power me indicate a Player working with these functions, I would be very grateful to them. Also because I intend to hire a monthly license.

If this option does not exist for "Two-way streaming" (believe relamenet not have), please let me know please. I just need an example, working.

Finally, I inormimente appreciate your attention and I apologize for pestering him.
 

Adelino Filho

New Member
Thanks .. I have news!
Getting on / off microphone and pause / play in "local video".
Now I will try the "remote video", on and off the sound.
 
Top