-1

I am developing an app where i have to play a video from a url. The video plays fine on simulator but when i play it on iphone, i cannot hear the sound without pluggin in the headphones.

Here's the code Alloy View

<Window>
<VideoPlayer id="VideoPlayer1" autoplay="false" height="300" width="Ti.UI.FILL" backgroundColor="black" fullscreen="true"></VideoPlayer>
</Window>

controller.js

$.VideoPlayer1.url = "SOME_URL";
$.VideoPlayer1.play();

Are there any extra setting which i have to add or delete in TiApp.XML. Am I missing a parameter or something or a property ?

323go
  • 14,143
  • 6
  • 33
  • 41
Hemant Bavle
  • 3,297
  • 1
  • 24
  • 30

1 Answers1

0

I found the solution for this . Just needed to set the volume property.

$.VideoPlayer1.volume = 1.0;
Hemant Bavle
  • 3,297
  • 1
  • 24
  • 30