Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

using playAd function with skipoffset or type


Hi there

We are trying to use different ad urls, depending on the device being mobile or not.
Since we can't use jw8 getEnvironment method before instantiating jwplayer we need to use playAd method for ads
However playAd gets only tag as string
How can we pass type or skipoffset to that method?

Thanks in advance

3 Community Answers

George

JW Player Support Agent  
0 rated :

Hello Hasan,

You can call jwplayer(“YOUR_DIV_ID”); and then use the getEnvironment() function before you call setup.

Please let me know if you have any other questions or concerns.

Hasan Kahveci

User  
0 rated :

can you provide a sample page please?
I tried that but I was unable to do so.

George

JW Player Support Agent  
0 rated :

Hello Hasan,

Here’s a test page:
http://qa.jwplayer.com.s3.amazonaws.com/~george/is_mobile_get_environment_vast.html

Please let me know if you have any other questions or concerns.

This question has received the maximum number of answers.