Results 1 to 4 of 4

Thread: Issue in Re-sizing the embedded video player received from the server

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    7
    Vote Rating
    0
      0  

    Default Issue in Re-sizing the embedded video player received from the server

    Hi,

    I have an <iframe> tag consisting of an embedded video player that is received from the server.
    The problem is, I am unable to resize this player on my panel. It gets stretched and goes beyond the panel's width & height.

    Options that I tried out :-
    1. Obtain the device's size (height and width). Calculate the player's height and width to be 60% of the device's size. Assign the width and height attributes to the <iframe> tag.
    2. Made use of the <table> tag. Assigned the width to be 60%. Placed the iframe tag in this table.

    The first option works fine when it comes to displaying it on a machine/tablet. It fails in case of a mobile device.
    Thanks in advance.

    Regards,
    Vaidehi

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    Why do you have it in an iframe?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    7
    Vote Rating
    0
      0  

    Default

    This is how I receive the embedded player from the server. Cannot change it.

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    The issue is the video needs to be sized properly to the document body within the iframe. If you can get the source of the video then you can use it outside of the iframe which is preferred.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •