PennController for IBEX › Forums › Support › resize Media Recorder Elements
- This topic has 7 replies, 4 voices, and was last updated 4 years, 1 month ago by
nasimbhmn.
-
AuthorPosts
-
January 19, 2021 at 6:34 pm #6533
srrosenParticipantHi, is there a way to resize the elements of a Media Recorder (the text within the button)? The css command for buttons don’t seem to work: newMediaRecorder("recording", "audio").css("font-size", "1.5em")
Similarly, is there a way to change the font size of the text associated with InitateRecorder, meaning the “not recording”, “recording”, and permission screen? Thank you!January 19, 2021 at 7:42 pm #6534
JeremyKeymasterHi,
You can upload a file named global_z.css in your Aesthetics (css_includes) folder with the following code:
.PennController-MediaRecorder button { font-size: 1.5em; }Unfortunately the ‘recording’ label does not have its own class name, but this should be specific enough to target it (add this to global_z.css too):
body > div:last-child { font-size: 0.75em; }Jeremy
January 23, 2021 at 11:39 am #6541
avsParticipantHi,
is it possible to initiate only a Record/Stop button when calling Media Recorder without activating the feedback player along with it?
Thanks in advance.January 25, 2021 at 1:01 pm #6543
JeremyKeymasterHi,
You can code this manually:
newMediaRecorder("recorder","audio").log() , newButton("Record").print().wait().remove() , getMediaRecorder("recorder").record() , newButton("Stop").print().wait().remove() , getMediaRecorder("recorder").stop()Jeremy
October 26, 2021 at 10:26 am #7432
nasimbhmnParticipantHi Jeremy,
I need to change the text on the “record”/”stop” button. The above solution only adds another button next to the test recorder, but does not remove the default button. Is there any way to get rid of it or to customize its text?
I also need to change the text of InitateRecorder “recording”/”not recording” text. Is it possible in PCIbex? If it is not a relevant question here, I can open a new topic.
October 26, 2021 at 11:38 am #7433
nasimbhmnParticipantOctober 26, 2021 at 1:14 pm #7439October 26, 2021 at 8:09 pm #7441
nasimbhmnParticipantThanks.
-
AuthorPosts
- You must be logged in to reply to this topic.