Bug 187335 - [WPE][GStreamer] video doesn't loop
Summary: [WPE][GStreamer] video doesn't loop
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Other Linux
: P2 Normal
Assignee: Nobody
URL: http://pauljadam.com/demos/autoplay-l...
Keywords: HTML5
Depends on:
Blocks:
 
Reported: 2018-07-04 23:37 PDT by Karim Gillani
Modified: 2018-08-03 04:02 PDT (History)
4 users (show)

See Also:


Attachments
Log data from running cog <url> with html loop tag (1.94 MB, text/plain)
2018-07-05 10:53 PDT, Karim Gillani
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karim Gillani 2018-07-04 23:37:11 PDT
Built webkit with Igalia/meta-webkit
Version: 2.20.1
Running on Raspberry Pi 3

Noticed my internal digital signage was not looping.
I confirmed looping was not working by running webkit on http://pauljadam.com/demos/autoplay-loop-muted-controls.html

There is also other people with this issue running WebPlatformForEmbedded/WPEWebKit
https://github.com/WebPlatformForEmbedded/WPEWebKit/issues/394
Comment 1 Karim Gillani 2018-07-05 00:52:46 PDT
Version incorrect.  It is: 2.21.1
Comment 2 Karim Gillani 2018-07-05 00:57:39 PDT
It must be late sorry.. the version was correct

wpewebkit_2.20.1.
Comment 3 Karim Gillani 2018-07-05 10:53:35 PDT
Created attachment 344340 [details]
Log data from running cog <url> with html loop tag

You can see where 336 still shows the video is still playing but at stuck the last position: Position 0:00:33.005000000

0:00:35.552402809  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:32.651587301
0:00:35.727776326  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:32.403151927
0:00:35.728469569  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:32.403877551
0:00:35.801595961  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:32.641972789
0:00:35.802272484  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:32.642698412
0:00:35.802886819  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:32.902108843
0:00:35.803421882  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:32.902653061
0:00:35.906942202  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:950:handleMessage: Message eos received from element play
0:00:35.907097518  2606 0x6eb046a0 INFO       webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:1824:didEnd: Playback ended
0:00:35.907547266  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:35.908262957  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:35.908822969  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:35.909198236  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:35.909383448  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:615:paused: Paused: false
0:00:35.909913927  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:35.910531856  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:35.910654775  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:1576:updateStates: State: PLAYING, pending: VOID_PENDING
0:00:35.910750246  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:1645:updateStates: Old state: PAUSED, new state: PLAYING (requested: VOID_PENDING)
0:00:35.911367758  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:35.911892456  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:35.912413508  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:35.913052271  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:35.914268597  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:35.915502215  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:35.916031600  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:35.916754479  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:35.917688872  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:35.918222268  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:35.918998429  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:35.919517294  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:35.919579847  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:603:paused: Ignoring pause at EOS
0:00:35.919741256  2606 0x6eb046a0 INFO       webkitmediaplayer MediaPlayerPrivateGStreamerBase.cpp:659:muted: Player is muted: true
0:00:35.919797091  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:364:changePipelineState: Rejected state change to PLAYING from PLAYING with VOID_PENDING pending
0:00:35.919868082  2606 0x6eb046a0 INFO       webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:419:play: Play
0:00:35.978073968  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:32.653492063
0:00:35.978796586  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:32.654217687
0:00:36.061453527  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:32.901836734
0:00:36.062105467  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:32.902562358
0:00:36.062611623  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:36.165975065  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:950:handleMessage: Message eos received from element play
0:00:36.166138558  2606 0x6eb046a0 INFO       webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:1824:didEnd: Playback ended
0:00:36.166586275  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:36.167295716  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.167862186  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.168291777  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:36.168476729  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:615:paused: Paused: false
0:00:36.168844549  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:36.169373257  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.169435550  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:1576:updateStates: State: PLAYING, pending: VOID_PENDING
0:00:36.169572219  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:1645:updateStates: Old state: PAUSED, new state: PLAYING (requested: VOID_PENDING)
0:00:36.170265202  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.170923236  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.171502309  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.172017372  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.173385680  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.174706331  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.175246237  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.175947553  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.176863873  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.177399821  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.178193066  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.178712399  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.178774171  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:603:paused: Ignoring pause at EOS
0:00:36.178923654  2606 0x6eb046a0 INFO       webkitmediaplayer MediaPlayerPrivateGStreamerBase.cpp:659:muted: Player is muted: false
0:00:36.178981519  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:364:changePipelineState: Rejected state change to PLAYING from PLAYING with VOID_PENDING pending
0:00:36.179100428  2606 0x6eb046a0 INFO       webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:419:play: Play
0:00:36.228329314  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:32.903741496
0:00:36.228994640  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:32.904467120
0:00:36.311875699  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:36.312788270  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:36.313230257  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:36.340724966  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:950:handleMessage: Message eos received from element play
0:00:36.340921845  2606 0x6eb046a0 INFO       webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:1824:didEnd: Playback ended
0:00:36.341400344  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:36.342102232  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.342762193  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.343354080  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:36.343543875  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:615:paused: Paused: false
0:00:36.343914508  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:36.344490092  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.344554364  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:1576:updateStates: State: PLAYING, pending: VOID_PENDING
0:00:36.344609938  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:1645:updateStates: Old state: PAUSED, new state: PLAYING (requested: VOID_PENDING)
0:00:36.345128229  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.345644385  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.346445339  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.346970401  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.347815574  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.348332095  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:454:durationMediaTime: Time duration query failed for webkit+http://content.bitsontherun.com/videos/bkaovAYt-52qL9xLP.mp4
0:00:36.348391158  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:603:paused: Ignoring pause at EOS
0:00:36.348583714  2606 0x6eb046a0 INFO       webkitmediaplayer MediaPlayerPrivateGStreamerBase.cpp:659:muted: Player is muted: false
0:00:36.348640903  2606 0x6eb046a0 DEBUG      webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:364:changePipelineState: Rejected state change to PLAYING from PLAYING with VOID_PENDING pending
0:00:36.348709863  2606 0x6eb046a0 INFO       webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:419:play: Play
0:00:36.478745184  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:36.562632826  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:36.563141274  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:36.563549824  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:36.563946706  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:36.729066834  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
0:00:36.729643824  2606 0x6eb046a0 LOG        webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:336:playbackPosition: Position 0:00:33.005000000
Comment 4 Philippe Normand 2018-07-05 15:18:20 PDT
Thanks for the report, I'll try to have a look soon.
Comment 5 Philippe Normand 2018-07-06 05:52:36 PDT
I can't reproduce this issue on my imx6 board.
Comment 6 Karim Gillani 2018-07-06 12:43:25 PDT
Interesting.  I will remove all the layers not needed for webkit to see if there is an issue with one of the other layers.  

Philippe Normand, what layers did you have? 

BBLAYERS ?= " \
  /home/gillani/yocto-rpi3-wpe/poky/meta \
  /home/gillani/yocto-rpi3-wpe/poky/meta-poky \
  /home/gillani/yocto-rpi3-wpe/poky/meta-yocto-bsp \
  /home/gillani/yocto-rpi3-wpe/meta-openembedded/meta-oe \
  /home/gillani/yocto-rpi3-wpe/meta-openembedded/meta-python \
  /home/gillani/yocto-rpi3-wpe/meta-openembedded/meta-multimedia \
  /home/gillani/yocto-rpi3-wpe/meta-openembedded/meta-networking \
  /home/gillani/yocto-rpi3-wpe/meta-raspberrypi \
  /home/gillani/yocto-rpi3-wpe/meta-sbc \
  /home/gillani/yocto-rpi3-wpe/meta-mender/meta-mender-core \
  /home/gillani/yocto-rpi3-wpe/meta-mender/meta-mender-demo \
  /home/gillani/yocto-rpi3-wpe/meta-webkit \
Comment 7 Karim Gillani 2018-07-06 20:58:57 PDT
I confirmed still not working with the following layers:

BBLAYERS ?= " \
  /home/gillani/yocto-rpi3-wpe/poky/meta \
  /home/gillani/yocto-rpi3-wpe/poky/meta-poky \
  /home/gillani/yocto-rpi3-wpe/poky/meta-yocto-bsp \
  /home/gillani/yocto-rpi3-wpe/meta-openembedded/meta-oe \
  /home/gillani/yocto-rpi3-wpe/meta-openembedded/meta-python \
  /home/gillani/yocto-rpi3-wpe/meta-raspberrypi \
  /home/gillani/yocto-rpi3-wpe/meta-webkit \

Local.conf:

MACHINE = "raspberrypi3"

# Webkit Configuration
GPU_MEM_256 = "128"
GPU_MEM_512 = "196"
GPU_MEM_1024 = "396"
EXTRA_IMAGE_FEATURES = "debug-tweaks"
IMAGE_FEATURES_append = " ssh-server-dropbear hwcodecs"
PREFERRED_PROVIDER_virtual/wpebackend = "wpebackend-rdk"
PACKAGECONFIG_pn-wpebackend-rdk = "rpi"
IMAGE_INSTALL_append = " wpewebkit cog"
DISTRO_FEATURES_append = " opengl wayland"
IMAGE_INSTALL_append = " gstreamer1.0-omx"
LICENSE_FLAGS_WHITELIST_append = " commercial"
# End of WebKit Config


Any suggestions?
Comment 8 Karim Gillani 2018-07-06 21:00:06 PDT
Additional build info:

Build Configuration:
BB_VERSION           = "1.36.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "raspberrypi3"
DISTRO               = "poky"
DISTRO_VERSION       = "2.4.3"
TUNE_FEATURES        = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard cortexa7"
TARGET_FPU           = "hard"
meta
meta-poky
meta-yocto-bsp       = "rocko:9589076fed41fe9c5749445e9210406fea362277"
meta-oe
meta-python          = "rocko:352531015014d1957d6444d114f4451e241c4d23"
meta-raspberrypi     = "rocko:acfb857227f1216cd64767952f0c25d633df10b8"
meta-webkit          = "master:7936d77842ae39123d24bdf60a234f38257fd928"
Comment 9 Karim Gillani 2018-07-07 07:43:18 PDT
It seems there is something wrong with the Rocko branch as the sumo branch works fine.  Interestingly enough there is an error when I build in master.
Comment 10 Philippe Normand 2018-07-08 13:14:05 PDT
(In reply to Karim Gillani from comment #9)
> It seems there is something wrong with the Rocko branch as the sumo branch
> works fine. 

Which GStreamer version is built on those?

> Interestingly enough there is an error when I build in master.

What error?
Comment 11 Karim Gillani 2018-07-08 13:38:20 PDT
For rocko, gstreamer version is: 1.12.2
For sumo, gstreamer version is: 1.12.4

Confirmed from build
Confirmed from git repot: https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-multimedia/gstreamer?h=rocko
https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-multimedia/gstreamer?h=sumo)

I will re-build with master and let you know.

I tried to add gstreamer 1.12.4 to my build, but I kept getting build errors probably because I don't know the procedure.  I copied the gstreamer 1.12.4 directory into it's own layer and added PREFERRED_VERSION_gstreamer = "1.12.4"  I am thinking I am missing a bunch of other dependencies. 

Thanks
Comment 12 Philippe Normand 2018-07-09 01:19:29 PDT
I use 1.14.1... Please check you can reproduce this issue outside of Yocto, by building only WPE: https://trac.webkit.org/wiki/WPE
Comment 13 Karim Gillani 2018-07-10 07:04:29 PDT
For you previous question, when I build from meta-wpe webkit from master, I get the following error:

Build Configuration:
BB_VERSION           = "1.39.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "raspberrypi3"
DISTRO               = "poky"
DISTRO_VERSION       = "2.5+snapshot-20180710"
TUNE_FEATURES        = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard cor                                                                                                 texa7"
TARGET_FPU           = "hard"
meta
meta-poky
meta-yocto-bsp       = "master:3e610d7e20fa2b9f9b0dde98c9da03aa7b6457ab"
meta-oe
meta-python          = "master:b56fc26fefff498b10236ea6486a5d5624f726cc"
meta-raspberrypi     = "master:efa848ca84a5ed541d4a755d19e66855214bfa23"
meta-perl            = "master:b56fc26fefff498b10236ea6486a5d5624f726cc"
meta-webkit          = "master:7936d77842ae39123d24bdf60a234f38257fd928"

Initialising tasks: 100% |#######################################| Time: 0:00:02
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home                                                                                                 /gillani/yocto/build/tmp/work/raspberrypi3-poky-linux-gnueabi/core-image-minimal                                                                                                 /1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=debug -y -c /home/gi                                                                                                 llani/yocto/build/tmp/work/raspberrypi3-poky-linux-gnueabi/core-image-minimal/1.                                                                                                 0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/gillani/yocto/build/tmp/wor                                                                                                 k/raspberrypi3-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/etc/yum.repos                                                                                                 .d --repofrompath=oe-repo,/home/gillani/yocto/build/tmp/work/raspberrypi3-poky-l                                                                                                 inux-gnueabi/core-image-minimal/1.0-r0/oe-rootfs-repo --installroot=/home/gillan                                                                                                 i/yocto/build/tmp/work/raspberrypi3-poky-linux-gnueabi/core-image-minimal/1.0-r0                                                                                                 /rootfs --setopt=logdir=/home/gillani/yocto/build/tmp/work/raspberrypi3-poky-lin                                                                                                 ux-gnueabi/core-image-minimal/1.0-r0/temp --nogpgcheck install run-postinsts cog                                                                                                  gstreamer1.0-omx wpewebkit packagegroup-core-boot' returned 1:
DNF version: 2.7.5
cachedir: /home/gillani/yocto/build/tmp/work/raspberrypi3-poky-linux-gnueabi/cor                                                                                                 e-image-minimal/1.0-r0/rootfs/var/cache/dnf
Added oe-repo repo from /home/gillani/yocto/build/tmp/work/raspberrypi3-poky-lin                                                                                                 ux-gnueabi/core-image-minimal/1.0-r0/oe-rootfs-repo
repo: using cache for: oe-repo
not found deltainfo for: oe-repo
not found updateinfo for: oe-repo
oe-repo: using metadata from Tue 10 Jul 2018 02:01:01 PM UTC.
Last metadata expiration check: 0:00:00 ago on Tue 10 Jul 2018 02:01:02 PM UTC.
--> Starting dependency resolution
--> Finished dependency resolution
Error:
 Problem 1: conflicting requests
  - nothing provides gstreamer1.0-plugins-bad-opengl needed by wpewebkit-2.20.1-                                                                                                 r0.cortexa7t2hf_neon_vfpv4
 Problem 2: package cog-20180703-r0.cortexa7t2hf_neon_vfpv4 requires libWPEWebKi                                                                                                 t-0.1.so.0, but none of the providers can be installed
  - conflicting requests
  - nothing provides gstreamer1.0-plugins-bad-opengl needed by wpewebkit-2.20.1-                                                                                                 r0.cortexa7t2hf_neon_vfpv4

ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/gillani/yocto/build/tmp/work/raspberr                                                                                                 ypi3-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.48602
ERROR: Task (/home/gillani/yocto/poky/meta/recipes-core/images/core-image-minima                                                                                                 l.bb:do_rootfs) failed with exit code '1'
Comment 14 Karim Gillani 2018-07-10 14:26:02 PDT
I am going to try to change the following to see if the master branch build issue gets resolved:

Change from:
${@bb.utils.contains('PACKAGECONFIG', 'gst_gl', 'gstreamer1.0-plugins-bad-opengl', '', d)} \
To: 
${@bb.utils.contains('PACKAGECONFIG', 'gst_gl', 'gstreamer1.0-plugins-base-opengl', '', d)} \

From <https://github.com/Igalia/meta-webkit/blob/master/recipes-browser/wpewebkit/wpewebkit.inc> 

This is based on the following:
"The OpenGL plugin was moved to -base in 1.14. So you need gstreamer1.0-plugins-base-opengl"  from https://github.com/OSSystems/meta-gstreamer1.0/issues/20
Comment 15 Karim Gillani 2018-07-10 18:24:13 PDT
confirmed the following change allows for a successful build.

Change from:
${@bb.utils.contains('PACKAGECONFIG', 'gst_gl', 'gstreamer1.0-plugins-bad-opengl', '', d)} \
To: 
${@bb.utils.contains('PACKAGECONFIG', 'gst_gl', 'gstreamer1.0-plugins-base-opengl', '', d)} \

From <https://github.com/Igalia/meta-webkit/blob/master/recipes-browser/wpewebkit/wpewebkit.inc> 

Can you update?  or would you like a pull request?
Comment 16 Karim Gillani 2018-07-10 20:30:23 PDT
(In reply to Philippe Normand from comment #12)
> I use 1.14.1... Please check you can reproduce this issue outside of Yocto,
> by building only WPE: https://trac.webkit.org/wiki/WPE

I am struggling with the build but will keep working on it.  Some more interesting info though:

I installed gstreamer1.0 using raspbian-stretch which uses an older version.  Then running luakit or kweb produce the same issue where the video doesn't loop after the initial run.

I am starting to think it's a gstreamer1.0 issue.  Is there a way to run webkit with something else like vlc or ffmpeg?

Thanks for your patience...
Comment 17 Philippe Normand 2018-07-19 05:58:10 PDT
(In reply to Karim Gillani from comment #15)
> confirmed the following change allows for a successful build.
> 
> Change from:
> ${@bb.utils.contains('PACKAGECONFIG', 'gst_gl',
> 'gstreamer1.0-plugins-bad-opengl', '', d)} \
> To: 
> ${@bb.utils.contains('PACKAGECONFIG', 'gst_gl',
> 'gstreamer1.0-plugins-base-opengl', '', d)} \
> 
> From
> <https://github.com/Igalia/meta-webkit/blob/master/recipes-browser/wpewebkit/
> wpewebkit.inc> 
> 
> Can you update?  or would you like a pull request?

This change depends on recent versions of GStreamer (1.14) so it needs to be applied carefully, only for those versions. We'll try to find a solution but this bug tracker is off-topic for this issue.

(In reply to Karim Gillani from comment #16)
> (In reply to Philippe Normand from comment #12)
> > I use 1.14.1... Please check you can reproduce this issue outside of Yocto,
> > by building only WPE: https://trac.webkit.org/wiki/WPE
> 
> I am struggling with the build but will keep working on it.  Some more
> interesting info though:
> 
> I installed gstreamer1.0 using raspbian-stretch which uses an older version.
> Then running luakit or kweb produce the same issue where the video doesn't
> loop after the initial run.
> 

The raspbian packages are indeed too old, and IIRC they heavily patch gst-omx...

> I am starting to think it's a gstreamer1.0 issue.  Is there a way to run
> webkit with something else like vlc or ffmpeg?
> 

No.
Comment 18 Philippe Normand 2018-08-03 04:02:51 PDT
Closing as per Comment 5. Can't reproduce this issue.