HTML embed only displays after manually resizing or inspecting element

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
vlcfriend001
New Cone
New Cone
Posts: 2
Joined: 23 Jun 2017 20:40

HTML embed only displays after manually resizing or inspecting element

Postby vlcfriend001 » 23 Jun 2017 20:59

Hello all.

I'm trying to embed a VLC player into a webpage, feeding it a live stream from a camera of mine. Unfortunately, I've encountered an issue that I haven't been able to find a solution for. Nothing at all will display when the page is first loaded, with the stream only appearing after opening or closing the inspect element toolbar or manually resizing the page. Using JS to alter the dimensions of the page does not cause the player to display, though using any other function that alters the size of the window, from maximizing/minimizing to telling the computer to cascade windows does cause the player to display.

Once the player has been made to display through the above means, the feed works perfectly.

The relevant code is:

Code: Select all

<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab" id="vlc" name="vlc" class="vlcPlayer" events="True"> <param name="src" value="rtsp://camera_url_here"> <param name="ShowDisplay" value="True" /> <param name="AutoLoop" value="True" /> <param name="AutoPlay" value="True" /> </object>
Am I forgetting a display setting? I couldn't find a relevant one in the documentation. Alternatively, is there a method I can call on page load that will force the player to display?

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

Re: HTML embed only displays after manually resizing or inspecting element

Postby da2424 » 24 Jun 2017 00:18


vlcfriend001
New Cone
New Cone
Posts: 2
Joined: 23 Jun 2017 20:40

Re: HTML embed only displays after manually resizing or inspecting element

Postby vlcfriend001 » 24 Jun 2017 06:08

That's unfortunate. Luckily, the problem seems to be as inconsistent as most difficult glitches are - putting my code into the production webpage and messing with the size parameters seems to serve as a good enough workaround.

Thanks for the reply.

fsohrabiii
New Cone
New Cone
Posts: 1
Joined: 02 Jan 2018 08:20

Re: HTML embed only displays after manually resizing or inspecting element

Postby fsohrabiii » 02 Jan 2018 08:28

Hi. I want to embed a VLC in EDITED But it doesn't work. I I tried every way but failed.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 10 guests