I have created an simple application which loads the HTML page in webview(contains js,css) which has the video play. When we run the the APK file in mobile, the video runs inside the webview. But when We install the same APK inside the Google TV, and play the video , it plays in other player instead inside the webview.
Asked
Active
Viewed 918 times
0
-
Can you clarify what you mean by "it plays in other player instead inside the webview"? WebView is not a good candidate for playing video. – Krispy Jun 04 '13 at 15:36
-
It means, it doesnot embed inside the webview, when i play the video, it opens as fullscreen in other player in Google TV. – B2Mobile Jun 05 '13 at 05:00
-
What is the format of the video? – Leon Nicholls Jun 05 '13 at 14:24
1 Answers
0
Google TV devices utilize what is called "Trusted Video Path" technology. The implication of this is that there is a different media playback stack on Google TV vs an Android phone or tablet. WebView on Google TV is not going to support video playback the way you want. If you are building a web application for TV that plays video then I would recommend creating an android application that launches Chrome with your site being provided in the intent extras. If you are keen on building an Android app for Google TV then the recommendation is to use a VideoView for playback of the content. There is currently no good way to mix HTML5 apps and Android apps in the same interaction space without it being a hack that wont work consistently.

Krispy
- 1,098
- 1
- 7
- 11
-
Thanks Krispy, i eventually went with your suggestion and loaded the url in the chrome outside the app. But would have loved to run the embed video inside the app. – B2Mobile Jun 06 '13 at 05:44
-
Thanks krispy, I have a similar kind of question. http://stackoverflow.com/questions/20244867/webview-not-loading-the-url-in-google-tv Please look at it and help me – Ramachandra Reddy Avula Dec 03 '13 at 06:25