Inserting HTML5 video using JavaScript for iPad

前端 未结 3 1641
误落风尘
误落风尘 2020-12-28 22:10

I am trying to insert a video into HTML using jQuery for iPad but all I see is a black screen. If I add the video tag directly to the HTML page all seems to work fine.

3条回答
  •  萌比男神i
    2020-12-28 22:44

    The reason I am planning a JavaScript is that I have few videos on the same page and wanted the user to select a video to be viewed as oppose to a single video on a page... Any idea around that will also help

    Place all the videos on the page, each with a style "display: none". Then .show() the appropriate div on the click event.

提交回复
热议问题