0

HTTP Live Streaming problem - ZK callbacks stop the stream

asked 2012-10-22 20:01:17 +0800

ansancle gravatar image ansancle
317 9

I am using the html 5 video tag to stream a live m3u8 stream into my ZK page. This works perfectly, the issue I am having is that any ZK callbacks seems to stop the stream.
For example, if the user clicks a ZK Button on the screen - it stops the stream even if the callback for the button has no code in it.

Is there a way I can get my ZK callbacks without it interrupting the stream? Is there a way to put the stream maybe in its own thread inside the zul?

Simple java button callback :

public void onClick$_testButton(Event event)
{
   // Once the callback is made the stream is stopped, I then have to hit play again on the Ipad.
}



Here is my zul code :

<zk xmlns:h="http://www.w3.org/1999/xhtml" xmlns:zk="http://www.zkoss.org/2005/zk">
<?page title="Virtual Screen"?>
<zscript><![CDATA[	

... More code here that for getting the url passed to the video tag....


]]>
</zscript>
<window id="_liveVideoWindow" border="normal" apply="com.dh.ui.ipad.view.video.DHzDirectTVVirtualScreenView"  height="1000px" width="100%" xmlns:w="http://www.zkoss.org/2005/zk/client">	
<style src="${styleSheet}"/>
......

<html>
<video controls="controls"  preload="auto" width="100%" height="420px"> 
     <source src="${liveStreamUrl}"/>
     </video>
</html>

<button id="_testButton" label="Clicking This stops the stream"/>					

...
</window>
</zk>

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-10-23 20:09:31 +0800

ansancle gravatar image ansancle
317 9

I found out what the issue was, I have a javascript call the plays an audio "click" sound whenever a button is pressed. This click was causing the stream to stop playing, as soon as I removed the call to play the click the issue went away.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-10-22 20:01:17 +0800

Seen: 79 times

Last updated: Oct 23 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More