1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Old Video Code Doesn't work on Mobile Theme - Help?:

Discussion in 'Styling and Customization Questions' started by CritiKiL, Apr 6, 2013.

  1. CritiKiL

    CritiKiL Active Member

    This is a simple coding question, not about the addon itself. I want my Forum to show a Livestream visible from any mobile device. It shows up perfectly from a computer-view, except it's 'blank' when viewing from a mobile device. The livestream "would work" if the code was in <iframe></iframe> format, but it only provides the old video html code. Here is the code I need to use:
    <object type="application/x-shockwave-flash" width="300" height="168" id="esports_streams_player_hero" data="https://secure.jtvnw.net/widgets/live_embed_player.swf?channel=callofdutyalpha" bgcolor="#000000">
    <param name="allowFullScreen" value="true"/>
    <param name="allowScriptAccess" value="always"/>
    <param name="allowNetworking" value="all"/>
    <param name="movie" value="https://secure.jtvnw.net/widgets/live_embed_player.swf"/>
    <param name="flashvars" value="hostname=www.twitch.tv&channel=callofdutyalpha&auto_play=true&start_volume=100"/>
    How can I:
    1. Convert this code into <iframe></iframe>?
    2. Make the old code 'viewable' from any mobile device?
  2. EQnoble

    EQnoble Well-Known Member

    what kind of mobile devices is this not working from...(iphone won't play this)

    I don't think they offer the live stream in an iframe...just the chat.
  3. CritiKiL

    CritiKiL Active Member

    Doesn't matter 'which one', I need it to work on them all. And Yes I already know that they do not offer their livestreams in iframe format, but I DO know that there is a work around possible (ex: I used .php on another site and got this same code to work and 'show' from ANY mobile device). But I cannot use .php inside of the Xenforo templates). So I'm asking if there is a conversion anyone "knows any" work arounds here on Xenforo. Believe me, I have already done my homework on this before posting. ;-)
  4. EQnoble

    EQnoble Well-Known Member

    Are you using a bbcode to do this? Is this hard coded to a template?

    If you show me the work around I may be able to integrate it for you pending what your workaround involves.

    I ask which device because this will never work on a non-jailbroken iphone as far as I know. If you are testing on a device that should playback the video and it doesn't then you have two problems.
  5. CritiKiL

    CritiKiL Active Member

    No offense EQnoble, but I don't think you can help. You bring up too many variables which do not apply here. Let me see if anyone else knows IF they can convert the "above" code into <iframe></iframe>, or another way that code can show on Any mobile Device inside of wherever I place it, in my Xenforo forum? The fact that you don't see how I'm using html (not BBCode!) means that you are making my request seem more complicated than it really is, and whether a phone is jailbroken or not, is totally irrelevant for what I'm asking for - Thanks ;-)

    I did this site (below) using .php and it allows the Livestream channel to play from any mobile device. But I cannot place .php code inside of an area on my XenForo template, that is html. However, <iframe></iframe> DOES work, so I need to simply convert that code into <iframe></iframe>:

  6. EQnoble

    EQnoble Well-Known Member

    Your request IS complicated....if they don't offer a non flash solution you can't do it with out having the assets to do so. End of story. Also you are comparing apples and oranges...you are asking about twitch and showing an example with ustream.

    I don't think you can make a page like vidamusica.net using twitch.
  7. DRE

    DRE Well-Known Member


    ^^^Won't work on iphone lol
  8. RobParker

    RobParker Well-Known Member

    As others have said, no it won't. Your videos are flash which can't be played on iPhones.
  9. CritiKiL

    CritiKiL Active Member

    Ok I have it working now. I don't think I explained it properly but I was 'just looking to have an <object> code changed to <iframe>', and I would take it from there. My mobile app provides the livestreaming and I wasn't trying to play a video on an iphone. But with the code it would 'show the video' on my forum front page and THEN people could just "click on the play screen image" (which the <iframe>shows out of the code), where it would take them to view the video 'raw' in my app. Thanks anyway guys, I'll take it from here...




    Attached Files:

Share This Page