google-code-export / flowplayer-core

Automatically exported from code.google.com/p/flowplayer-core
2 stars 0 forks source link

iPad plugin 3.2.9 cannot start clip with javascript api when simulating iDevice #596

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to produce the error:

1. Use the first clip in the playlist as the splash image. e.g.

    args.playlist = [
        {
          url:data.target_video.icon_uri,
          urlEncoding: true
        },
        {
          url:data.target_video.video_uri,
          ipadUrl: data.target_video.http_video_uri,
          autoPlay: false,
          autoBuffering: true
        }
      ];

2. Install Flowplayer and enable iPad plugin with simulateiDevice equals TRUE

3. Cannot call $f().play() or $f().play(1) to start playing the second clip. 
You have to manually click the video controlbar to let playback begin before 
being able to use $f().play()

Tested both 3.2.9 and the latest r.1931 build. Both of them have the problem.

BTW can you remove the debug messages in the ipad plugin (at least in the min 
version?)

Original issue reported on code.google.com by zhou.e...@gmail.com on 18 Jun 2012 at 1:58

GoogleCodeExporter commented 9 years ago
This happens with simulateiDevice _only_, and only in desktop browsers right?

Clicking on the button in
http://flowplayer.blacktrash.org/test/ipadurl.html
starts playing - at least on my ipod. Can you confirm?

Also the playlist based splash image is not needed, just clip.autoBuffering: 
true.

Might be a tricky one, as obviously the main thing is to make it work on iOS.

We can think about outcommenting those log messages, although there are not 
horribly distracting, I think.

Original comment by blacktrashproduct on 26 Jun 2012 at 3:32

GoogleCodeExporter commented 9 years ago
Thanks for responding. I think I need to give you the background of my work. 
I'm using Flowplayer for streaming videos on RTMP but also need to fall back to 
HTML5 when Flash is not available (on both iPad and computers). To make it 
consistent with our other videos played through the Youtube API, we need to use 
splash image in playlist.

My problem is I cannot use javascript (e.g. $f().play(); ) to start the video 
playback when:

1) I use splash image as the first clip in playlist
2) In HTML5 mode (namely simulateiDevice=true)

If I don't use splash image then all work fine. I think it's the splash image 
interfering with the play() command. Can you help fix this? Thanks a lot!

Original comment by zhou.e...@gmail.com on 29 Jun 2012 at 1:56

GoogleCodeExporter commented 9 years ago
As for your example, indeed it plays on iPhone when I clicked the Play button. 
But the Play button does not work on computer (chrome).

Original comment by zhou.e...@gmail.com on 29 Jun 2012 at 1:59

GoogleCodeExporter commented 9 years ago
Indeed it does not work in simulation mode, but it works for its intended use.

Therefore lowering priority.

Original comment by blacktrashproduct on 10 Aug 2012 at 12:50