You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

r1.js 859B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // make the App think you resized the window
  2. function dispatch_resize(store = APP.store) {
  3. // store.dispatch(clientResized_dev(innerWidth, innerHeight));
  4. store.dispatch({
  5. type: "CLIENT_RESIZED",
  6. clientHeight:innerHeight,
  7. clientWidth:innerWidth,
  8. });
  9. // clog("dispatch_resize")
  10. }
  11. // unused old fn to add pseudo videos
  12. function add_spans(n=1,xtra=0){
  13. var s = `
  14. <span class="pseudo_vid videocontainer"></span>
  15. `
  16. $(".pseudo_vid").remove()
  17. if (!xtra){
  18. n = n - APP.store.getState()["features/base/participants"].length
  19. }
  20. var k,v
  21. for (var i = 0; i < n; i++) {
  22. // Things[i]
  23. clog("..",i)
  24. $("#filmstripRemoteVideosContainer").append(s)
  25. }
  26. dispatch_resize()
  27. }
  28. fs_dec_list = [
  29. "resizeThumbnailsForHorizontalView",
  30. "resizeThumbnailsForVerticalView",
  31. // "resizeThumbnailsForTileView",
  32. ]
  33. dec_fns = {}