thecowan/wallpanel-android

[BUG] Can't play video in full screen mode

Opened this issue · 5 comments

Describe the bug
Try to use {"url": "https://vjs.zencdn.net/v/oceans.mp4"} to play video in wallpannel, but the full screen button in player is disabled, I can't click it to enter full screen mode, but this url in chrome for Android is normal, I can click and enter full screen.

To Reproduce
curl --location --request POST 'http://192.168.8.9:2971/api/command' --header 'Content-Type: application/json;charset=UTF-8' --data-raw '{"url": "https://vjs.zencdn.net/v/oceans.mp4"}'

Smartphone (please complete the following information):

  • Device: Nexus 7, Android TV
  • OS: [Android 10/11]
  • Applicaiton version [ v0.9.5-beta.6]

Chrome is not the same as "WebView" component used internally for Android apps. Why not launch the video with an intent to open chrome. Otherwise, we'd have to add a player inside the app that opens videos. This is something I think the Home Assistant companion app does.

@thanksmister Thanks for reply, I want to turn wallpanel into a web player, just like Google Chrome cast.
No need add a player inside the wallpanel, In fact, wallpanel can play MP4 directly by send url(https://vjs.zencdn.net/v/oceans.mp4) command, The only problem is the full screen button on player in wallpanel is disabled, can't click it. But the same video url in chrome or other default browser(use same webview as wallpanel) can fullscreen when click the button on player.

You think it’s possible to use a service call when clicking on the video stream to open an external browser window to play the videos? You can use the MQTT or REST commands to launch an external browser application with the stream url.

We have a ticket already to launch an external video player from within the application but this will take time to implement. This might be a hack for now.

They reason we would add another library to play videos is because of performance and also to have better control over the video, full screen for example. I think there is a limitation with the Android WebView but it’s possible it’s also a permission issue.

Any plans in your roadmap to replace video player in Wall Panel?
I want to add, in Home Assistant app full screen works indeed, but there is no possible to stream video using WebRTC protocol. In android chrome everything works the best, Fully kiosk app as well.