Customizing video display in the Soundslice embed
Here are the URL parameters that control video display in the Soundslice embed.
By default, Soundslice will choose a video position (either above notation or to the left of notation) depending on the player’s width, and it will automatically choose a video height/width to balance the available notation. The URL parameters on this page let you override our default behavior.
- force_side_video=1
- Forces video to always be displayed to the left of notation, regardless of embed width.
- force_top_video=1
- Forces video to always be displayed above notation, regardless of embed width.
- narrow_video_height
- Specifies the video’s height when the video is above notation. You can specify the height in two ways:
- Pixels. For example,
narrow_video_height=150
sets the video’s height to 150 pixels. - Percentage of total embed iframe height. Put a
p
at the end of the value for this. For example,narrow_video_height=30p
sets the video’s height to 30% of the iframe’s height, making it responsive.
- Pixels. For example,
- side_video_width
- Specifies the video’s width when the video is on the left of notation. You can specify the width in two ways:
- Pixels. For example,
side_video_width=500
sets the video’s width to 500 pixels. - Percentage of total embed iframe width. Put a
p
at the end of the value for this. For example,side_video_width=50p
sets the video’s width to 50% of the iframe’s width, making it responsive.
- Pixels. For example,
- flippable=0
- By default, each slice that has a non-YouTube video will include a “Flip video” button overlayed on the video. For some videos (such as piano videos), flipping the video isn’t useful. Use
flippable=0
to hide the “Flip video” button. - vfs=0
- By default, each video gets a “full-screen” icon in its upper right. Use
vfs=0
to hide this icon so that people cannot make videos full-screen. Note you can still use thesetNotationVisibility
JavaScript API call to control full-screen (aka notationless) video yourself.