How to resolve the issue with JW player that keeps playing audio despite switching to another player
Recently we have introduced a live streaming feature in our application. For that, we have used a JW player as it is easy to show youtube videos first and then streaming live events. We have also implemented a feature for an alternate player option for the end-user if there is any streaming issue. For that, we have used Flow player as it is lightweight and powerful. So we have JW Player as the default player and Flow player as an alternative. We have integrated the JW player library into our application from here and the flow player library from here.
Routing with Sammy.js
Traditionally web applications were dependent on back end for routing as A request is made to a server and based on the URL being requested the server responds by HTML.But now a days due to advanced browsers and need for speedy response more advanced code started being moved from the backend to the frontend. Sammy.js is a tiny(Above theory is good for starting so now lets move on with example of sammy js using type script. public addRoute(url: string, action: (context: Sammy.EventContext) => void) { this.routeTable[url] = action; } Above is the typescript method which take