是否有 API 调用或 javascript 来让 Tizen Web 应用程序在电视上以纵向模式全屏运行?

问题描述 投票:0回答:1

我有一台 32 英寸 2023 款三星 The Frame 电视,计划制作不依赖 AR 或看起来像屏幕的移动艺术。如果框架精美,幻觉应该会令人印象深刻。

我在 Tizen Studio 中制作了一个简单的 Web 应用程序,用于循环自动播放视频。它工作完美 - 但仅限于横向。

我需要将电视设为纵向才能正确展示艺术作品。电视现在处于纵向模式,并且完全在纵向模式下运行 - 但我的应用程序只会以 16:9 的比例显示在屏幕中间。

Tizen Studio 中是否有可用的 javascript 或 API 调用?

Photo showing what is happening and what should happen

这是我当前的config.xml

<?xml version="1.0" encoding="UTF-8"?> <widget xmlns:tizen="http://tizen.org/ns/widgets" xmlns="http://www.w3.org/ns/widgets" id="http://yourdomain/EvolmApp01" version="1.0.0" height="3840" width="2160" viewmodes="fullscreen"> <tizen:application id="p8x2vDIuIO.EvolmApp01" package="p8x2vDIuIO" required_version="2.3"/> <author href="https://evolm.com">EVOLM</author> <content src="index.html"/> <description>Live Art</description> <feature name="http://tizen.org/feature/screen.size.all"/> <icon src="icon.png"/> <tizen:metadata key="http://tizen.org/metadata/app_ui_type/base_screen_resolution" value="extensive"/> <name>EvolmApp01</name> <tizen:profile name="tv-samsung"/> <tizen:setting screen-orientation="portrait" context-menu="disable" background-support="enable" encryption="disable" install-location="internal-only" hwkey-event="disable"/> </widget> 

应用程序应以纵向模式全屏显示。我已经在 HTML 和 CSS 中尝试了所有我能想到的方法来使其工作。

有什么想法吗?

tizen samsung-smart-tv tizen-web-app tizen-studio
1个回答
0
投票

这个API可能对您的案例有用。

© www.soinside.com 2019 - 2024. All rights reserved.