Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat(UI): Allow play in VR in all compatible devices
Since VR movement can be controlled with specific methods we should not limit its use
  • Loading branch information
avelad committed Oct 27, 2025
commit c22050295dbbf87309298c38f209765ddc8f13bb
11 changes: 1 addition & 10 deletions ui/vr_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,16 +383,7 @@ shaka.ui.VRManager = class extends shaka.util.FakeEventTarget {
* @private
*/
getGL_(canvas) {
if (!canvas) {
return null;
}
// The user interface is not intended for devices that are controlled with
// a remote control, and WebGL may run slowly on these devices.
const device = shaka.device.DeviceFactory.getDevice();
const deviceType = device.getDeviceType();
if (deviceType == shaka.device.IDevice.DeviceType.TV ||
deviceType == shaka.device.IDevice.DeviceType.CONSOLE ||
deviceType == shaka.device.IDevice.DeviceType.CAST) {
if (!canvas || !window.WebGLRenderingContext) {
return null;
}
const webglContexts = [
Expand Down
Loading