1. ? ?
  2. PowerServer 2020 or older (Obsolete)
  3. Wednesday, 4 August 2021 06:45 AM UTC

比如我网络有个这样的视频地址;  http://192.168.0.166/shiping/123.mp4

 

我怎样在手机端实现即时播放?

谢谢

Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 11 August 2021 00:03 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

你好,

看起来跟手机设置有关系,你可以尝试创建一个网页播放视频,然后再webview中打开网页,比如:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>
Document
</title>
</head>
<body>
<video id="video1" height="240" width="320" controls="controls">
<source src="/t1.mp4" type="video/mp4">
</video>
</body>
</html>

 

Regards,
ZhaoKai

Comment
There are no comments made yet.
? ? Accepted Answer Pending Moderation
  1. Tuesday, 10 August 2021 04:45 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

还是没用,我在电脑上用浏览器输入地址,还是提示下载的,如果选择播放器再播放,就可以播放

在手机上用还是没反映,换了两部手机都这样

算了吧,真是有问题

Attachments (1)
Comment
  1. Miguel Leeuwe
  2. Tuesday, 10 August 2021 06:01 AM UTC
this might be because you have chosen some day that the default behaviour of your browser is to download instead of open the file.
  1. Helpful
There are no comments made yet.
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 10 August 2021 03:31 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 3

你好,

1 appeon_workarounds.pbl在server机器的C:\inetpub\wwwroot\appeon\developTempFile目录
2 我在手机的chrome浏览器上访问http://192.168.168.97/mp4/t1.mp4是可以播放的,而不是下载。

附件是我使用的appeon_workarounds.pbl和MP4文件,请参考。

Regards,
ZhaoKai

Attachments (1)
Comment
There are no comments made yet.
? ? Accepted Answer Pending Moderation
  1. Tuesday, 10 August 2021 01:14 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 4

或者会不会是 我的 appeon_workarounds.pbl 有问题,从而控件功能有问题,或者你发个最新版本的 appeon_wordarounds.pbl我,我的好像还是pb2013的,我搜索了下最新pb2019的里面好像没找到最新的appeon_workarounds.pbl 文件 , 好像还有个  appeon_cordova.pbl

Comment
There are no comments made yet.
? ? Accepted Answer Pending Moderation
  1. Tuesday, 10 August 2021 00:49 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 5

谢谢,我先把 http://192.168.0.166/shiping/123.mp4  地址在手机浏览器上运行,提示我下载,不会直接播放视频,我接着试程序运行,也是没任何反映,为什么我的提示下载?你说你的会直接播放视频,是怎样设置的呢?

我是把视频文件夹shiping/123.mp4 直接放在 wwwroot目录下面的

是哪里弄错了吗?

Attachments (1)
Comment
There are no comments made yet.
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 10 August 2021 00:02 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 6

你好,

附件是我的案例,请确认你的URL在手机浏览器上能正常播放。

Regards,
ZhaoKai

Attachments (1)
Comment
There are no comments made yet.
? ? Accepted Answer Pending Moderation
  1. Monday, 9 August 2021 07:50 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 7

我试了下,不成功,不能播放,你能发下你的例子程序我吗,我用你的例子程序试试,谢谢

Comment
There are no comments made yet.
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Friday, 6 August 2021 00:08 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 8

你好,

你可以在appeon_workarounds.pbl/eon_mobile_webview控件中打开连接,我测试Android和iOS都可以播放MP4, 比如:
UO_1.of_startloading('http://192.168.0.166/shiping/123.mp4')

详细信息请参考下面在线文档。
https://docs.appeon.com/ps2020/workarounds_and_api_guide/webview.html

Regards,
ZhaoKai

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.